CVS Update: xmlpull-api-v1/addons/java/xmlrpc/src/org/xmkpull/v1/xmlrpc

Stefan Haustein <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
haustein    03/01/20 17:16:02

  Modified:    addons/java/xmlrpc/src/org/xmkpull/v1/xmlrpc
                        XmlRpcParser.java
  Log:
  array parsing fix
  
  Revision  Changes    Path
  1.2       +8 -1      xmlpull-api-v1/addons/java/xmlrpc/src/org/xmkpull/v1/xmlrpc/XmlRpcParser.java
  
  Index: XmlRpcParser.java
  ===================================================================
  RCS file: /l/extreme/cvspub/xmlpull-api-v1/addons/java/xmlrpc/src/org/xmkpull/v1/xmlrpc/XmlRpcParser.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -t -w -r1.1 -r1.2
  --- XmlRpcParser.java	20 Jan 2003 22:12:39 -0000	1.1
  +++ XmlRpcParser.java	20 Jan 2003 22:16:02 -0000	1.2
  @@ -120,12 +120,19 @@
   
       Vector parseArray() throws IOException, XmlPullParserException {
           Vector v = new Vector();
  +        
           parser.require(parser.START_TAG, "", "array");
  +        parser.nextTag();
  +        parser.require(parser.START_TAG, "", "data");
   
           while (parser.nextTag() == parser.START_TAG)
               v.addElement(parseValue());
   
  -        parser.require(parser.END_TAG, "", "array");
  +
  +        parser.require(parser.END_TAG, "", "data");
  +        parser.nextTag();   
  +        parser.require(parser.START_TAG, "", "array");
  +
           return v;
       }
   
  
  
  


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Flexible Keyboard is the ideal accessory for PDA users that are on the move.
http://us.click.yahoo.com/dCBVZC/WnCFAA/xGHJAA/2U_rlB/TM
---------------------------------------------------------------------~->

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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.