Results 1 to 2 of 2

Thread: Sax Parse xml

  1. #1
    siddheshwar is offline Member
    Join Date
    Jun 2011
    Posts
    1
    Rep Power
    0

    Default Sax Parse xml

    Hi All,
    I am trying to parse xml using sax parser.
    It is working fine.
    I want to go to previous tag after parsing.
    e.g.<abc data="value" >
    <some more fields>

    </abc>
    <xyz data="value">
    <some fields>
    </xyz>


    after completing parsing of abc tag sax parser moves to next tag xyz.But i want to go again to abc tag.

    Please provide solution for this.

  2. #2
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default

    SAX doesn't work that way. But you could save the values your handler received when the abc tag was parsed.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. Parse HTML
    By gab in forum New To Java
    Replies: 1
    Last Post: 02-21-2011, 10:53 PM
  2. How can I parse the data ?
    By krr in forum CLDC and MIDP
    Replies: 5
    Last Post: 08-21-2010, 03:01 PM
  3. How to parse this value
    By Ajitha in forum New To Java
    Replies: 2
    Last Post: 06-03-2010, 07:26 AM
  4. using parse
    By mustachMan in forum New To Java
    Replies: 2
    Last Post: 01-15-2010, 01:32 AM
  5. SAX Parse
    By bluefloyd8 in forum New To Java
    Replies: 1
    Last Post: 01-25-2008, 03:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •