what is the difference between xpath document and xml document?

Answers were Sorted based on User's Feedback



what is the difference between xpath document and xml document?..

Answer / 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

what is the difference between xpath document and xml document?..

Answer / nithin chacko ninan

mainly it is a part of xsl ,it is a language that is used to
acess different parts of an xml document, such as element
and attributes.

xml document usually begins with the xml declaration
statement also called PI(processing instruction).

Is This Answer Correct ?    2 Yes 0 No

what is the difference between xpath document and xml document?..

Answer / nithin chacko ninan

mainly it is a part of xsl ,it is a language that is used to
acess different parts of an xml document, such as element
and attributes.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More XML XSLT RSS Interview Questions

What is utf in xml?

0 Answers  


Whether root element is required for XML? If so, how many root elements are required?

0 Answers  


How do I run an xsl file in eclipse?

0 Answers  


What is a Processing Instruction in XML?

0 Answers  


What is rss feed url?

0 Answers  


What is difference between xsd and xml?

0 Answers  


What is the difference between CDATA and PCDATA?

0 Answers  


Are atom feed files xml documents?

0 Answers  


What is difference between xsd and dtd?

2 Answers   Accenture, Penta Pearl,


How to validate an atom 1.0 feed file?

0 Answers  


How to connect xml with the database?

0 Answers  


Where can I find my rss feed on wordpress?

0 Answers  


Categories