CVS Update: xmlpull-api-v1/src/java/api/org/xmlpull/v1
Aleksander Andrzej Slominski <[email protected]> Sun, 1 Feb 2004 13:49:32 -0500 (EST)
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
aslom 04/02/01 13:49:32 Modified: src/java/api/org/xmlpull/v1 XmlSerializer.java Log: added attribute(prefix, ...) proposal Revision Changes Path 1.15 +77 -57 xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlSerializer.java Index: XmlSerializer.java =================================================================== RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlSerializer.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -t -w -r1.14 -r1.15 --- XmlSerializer.java 1 Feb 2004 16:57:31 -0000 1.14 +++ XmlSerializer.java 1 Feb 2004 18:49:31 -0000 1.15 @@ -250,6 +250,25 @@ // throws IOException, IllegalArgumentException, IllegalStateException; // // /** + // * Write an attribute. Calls to attribute() MUST follow a call to + // * startTag() immediately. + // * <br />If there is no prefix defined (prefix == null) for the given namespace, + // * a prefix will be defined automatically. + // * <br />If explicit prefixes is passed (prefix != null) then it will be used + // * and namespace declared if not already declared or + // * throw IllegalStateException the same prefix was already set on this + // * element (setPrefix()) and was bound to different namespace. + // * <br />If namespace is null then prefix must be null too or IllegalStateException is thrown. + // * <br />If namespace is null then no namespace prefix is printed but just name. + // * <br />If namespace is empty string then serializer will make sure that + // * default empty namespace is declared (in XML 1.0 xmlns='') + // * or throw IllegalStateException if default namespace is already bound + // * to non-empty string. + // */ + // public XmlSerializer attribute (String prefix, String namespace, String name, String value) + // throws IOException, IllegalArgumentException, IllegalStateException; + // + // /** // * Write end tag. Repetition of namespace, prefix, and name is just for avoiding errors. // * <br />If namespace or name arguments are different from corresponding startTag call // * then IllegalArgumentException is thrown, if prefix argument is not null and is different @@ -261,6 +280,7 @@ // * <p><b>Background:</b> in kXML endTag had no arguments, and non matching tags were // * very difficult to find...</p> // */ + // ALEK: This is really optional as prefix in end tag MUST correspond to start tag but good for error checking // public XmlSerializer endTag (String prefix, String namespace, String name) // throws IOException, IllegalArgumentException, IllegalStateException; Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/xmlpull-dev/ To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/