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
What is an xml namespace prefix?
How are comments used in xml?
What program opens xsd files?
What is application of xml?
What is Coding? Difference between Coding & Tagging
What are the advantages of using xml?
How do I set up google rss feed?
Write a program to use the stylesheet element?
Are xml elements ordered?
How do I subscribe to rss feeds?
What are the two types of xml parsers?
How do I create my own document type?
Explain about xml canonicalization?
What is the function of qualified names?
When should I use a cdata marked section?