Explain difference between sax parser and dom parser?



Explain difference between sax parser and dom parser?..

Answer / Km. Parveen Khan

SAX (Simple API for XML) and DOM (Document Object Model) are both methods of parsing XML data, but they differ in how the data is processed. SAX reads the XML as a stream, processing it event by event, making it more memory-efficient for large documents. DOM, on the other hand, loads the entire XML into memory as a tree structure, allowing random access to any element.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Tell me what is iphone os?

1 Answers  


Difference b/w collectionView & uitableview?

1 Answers  


Who developed ios?

1 Answers  


What is swift and what is objective-c?

1 Answers  


What is retain in ios?

1 Answers  


What is block in ios?

1 Answers  


What is @synthesize in objective-c ?

1 Answers  


Explain app's state transitions when it gets launched?

1 Answers  


What is difference between category and extension in ios?

1 Answers  


Will the new design mean I have to completely relearn how to use my phone?

1 Answers  


How to install an iphone application for testing?

1 Answers  


what are all instruments available in Xcode?

1 Answers  


Categories