0

I have one node in xml file

<abc>
</abc>

if i try to get element abc's child I m geeting </abc> as result but it must be "null" I m using Saxparser in java

user3131471
  • 71
  • 1
  • 6

1 Answers1

1

DOM Parser loads the whole XML file in its loader. Hence DOM Parser will allow you to check the childnodes of a given node from your given xml.

SAX Parser reads the xml line by line so checking the child node for a given node wont be possible.

For ur reference: What is the difference between SAX and DOM?

Community
  • 1
  • 1
vicky
  • 33
  • 6