what is the difference between xpath document and xml document?

Answer Posted / sivaramakrishna

XmlDocument and XPathDocument are based on different data
models.
XmlDocument is based on W3C XML DOM, which is object model
that
basically covers all XML syntax, including low level syntax
sugar such
as entities, CDATA sections, DTD, notations etc. That's
document-centric
model and it allows for full fidelity when loading/saving
XML documents.

XPathDocument is based on XPath 1.0 data model which is
read-only XML
Infoset-compatible data-centric object model that covers
only
semantically significant parts of XML, leaving out
insignificant syntax
details - no DTD, no entities, no CDATA, no adjacent text
nodes, only
significant data expressed as a tree with seven types of
nodes. Simple
and lightweight.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I convert an xml file to excel?

717


Can I resolve the uri used as an xml namespace name?

622


How do I convert xml to word?

663


Why rss feed is important?

692


How do I find my rss feed on android?

618


Is xml format or content-driven?

667


How to use filtering in xslt? : xslt

610


What are rss feeds used for?

615


what are the predefined entities in XML ?

1934


Why xslt is used?

613


What are the differences between HTML and XML?

687


How important is an element’s attributes used in xslt?

623


What is the version information in xml?

641


How does xslt transform xml?

615


Why should we go for xml editor instead of notepad?

680