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

What is namespace in xslt?

480


What is XPath Query ?

1648


What is an rss email?

486


What are the various advantages of xsl?

500


What is difference between xml and html?

477






What is xsl apply templates?

511


Is xml format or content-driven?

507


How do I subscribe to an rss feed?

445


What is a pdf xml file?

485


what are the predefined entities in XML ?

1735


Do I need to use xml namespaces?

490


What is difference between xml and xsl?

451


What is xml parser function?

508


What is an atom syndication feed?

489


How do I convert pdf to xml?

462