PDA

View Full Version : Which parser is better for edit xml file.



Niamita
13th September 2011, 07:38
Hi

I am using SAX parser for reading the xml file. How to edit a xml file with SAX parser and which one is better for editing the file (DOM or SAX).

Thanks.

ChrisW67
13th September 2011, 08:02
What do you want to do to the file? "Edit it" is rather broad. To change single attributes or element values on a small XML file then DOM is probably better. To filter XML to produce an edited version the SAX might be a good choice. For very large XML files SAX may be the only option.

Niamita
13th September 2011, 08:27
Ok
Can you see my another posted thread related to xml file reading.