xml parsing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sunsom
    New Member
    • Mar 2008
    • 11

    xml parsing

    i have an xml like this ...

    <ROOT>
    <a/>
    <a/>
    <a/>
    </ROOT>

    i want to add tags to the <a/> like this..
    <ROOT>
    <bay>
    <a/>
    </bay>
    <bay>
    <a/>
    </bay>
    <bay>
    <a/>
    </bay>
    </ROOT>


    how to do tis in java.. the file size is more than 10 MB.. kindly suggest a nice parser to use inthis senario... i can use only java 1.4....
  • pronerd
    Recognized Expert Contributor
    • Nov 2006
    • 392

    #2
    With an XML file that big you probably want to use the SAX parser. It is harder to use, but it is much faster.

    Comment

    Working...