CVS Update: xmlpull-api-v1/src/java/api/org/xmlpull/v1

Aleksander Andrzej Slominski <[email protected]> Sun, 1 Feb 2004 11:57:31 -0500 (EST)
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
aslom       04/02/01 11:57:31

  Modified:    doc      changes.html
               src/java/api/org/xmlpull/v1 XmlSerializer.java
  Log:
  proposed (only as comments!) addition to XmlSerializer to allow
  specifying prefix for startTag, endTag and attribute()
  
  Revision  Changes    Path
  1.52      +1 -0      xmlpull-api-v1/doc/changes.html
  
  Index: changes.html
  ===================================================================
  RCS file: /l/extreme/cvspub/xmlpull-api-v1/doc/changes.html,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -b -t -w -r1.51 -r1.52
  --- changes.html	15 Jan 2004 17:17:11 -0000	1.51
  +++ changes.html	1 Feb 2004 16:57:31 -0000	1.52
  @@ -19,6 +19,7 @@
   <h3><a name="XMLPULL_1_1_3_*"></a>2004-01- (XMLPULL_1_1_3_*)</h3>
   <ul>
   
  +<li>2004-01-20: stronger serializer tests for case when char values &lt; 32&quot; (TestSerialize.java)</li>
   <li>added <code>target="1.1"</code> to make sure that compiled code can work with JDK 1.1
   (as described in <a href="http://ant.apache.org/manual/CoreTasks/javac.html">ANT Javac Task documentation</a>: (...)
   Generate class files for specific VM version (e.g., 1.1 or 1.2).
  
  
  
  1.14      +34 -0     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.13
  retrieving revision 1.14
  diff -u -b -t -w -r1.13 -r1.14
  --- XmlSerializer.java	31 Jan 2003 04:41:45 -0000	1.13
  +++ XmlSerializer.java	1 Feb 2004 16:57:31 -0000	1.14
  @@ -230,6 +230,40 @@
       public XmlSerializer endTag (String namespace, String name)
           throws IOException, IllegalArgumentException, IllegalStateException;
   
  +
  +//    /**
  +//     * Writes a start tag with the given namespace and name.
  +//     * <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 startTag (String prefix, String namespace, String name)
  +//        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
  +//     * from corresponding starTag then IllegalArgumentException is thrown.
  +//     * <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='').
  +//     * <p><b>Background:</b> in kXML endTag had no arguments, and non matching tags were
  +//     *  very difficult to find...</p>
  +//     */
  +//    public XmlSerializer endTag (String prefix, String namespace, String name)
  +//        throws IOException, IllegalArgumentException, IllegalStateException;
  +
       /**
        * Writes text, where special XML chars are escaped automatically
        */
  
  
  


 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/2U_rlB/TM
---------------------------------------------------------------------~->

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/