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
Whether graphics can be used in XML? If so, How?
Is xsl and xslt the same?
how can I handle embedded html in my xml ?
Why do we need xsd?
Can we use graphics in XML?
How do I add an rss feed to my website?
Does the scope of an xml namespace declaration ever include the dtd?
What is the use of rendering in xsl?
How to tell web browsers that your web pages have atom feeds?
What is the use of xml data binding?
What is a pdf xml file?
How does rss work?
How you can enhance your XSL test?
What is the main focus of xsl?
What is DiffGram in XML?