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 map?
What are the types of XML Parsers?
What is the difference between xml dtd and xml schema or xsd?
What is document object model? Why it is used?
Why do xml namespaces start with http?
What is wsdl and how it works?
what is the role of the doctype declaration in reference to xml?
What is minoccurs 0 in xsd?
Does mixcloud have an rss feed?
Write the steps involved in the creation of a custom schema.
What are the different formatting objects in xsl-fo are categorized into?
Is api a web service?
How do I use patreon rss feed?
What is an xml instance?
Can multiple xml namespace declarations be in scope at the same time?