XML Interview Question and Answers
16. |
What is X Path? |
|
- X Path is formal query language defined by the XML Path Language 2.0 specification.
- An X Path expression is created and passed to an engine that evaluates it.
- The expression is parsed and executed against a data store.
- The returned value may be a set of nodes or a scalar value.
|
|
|
17. |
When the X Path Document is used? |
|
- X Path Document is recommended only when the applications need to query an XML Document.
- It is faster than Xml Document.
- It can be created using Xml Reader to load all or part of a document into it.
|
|
|
18. |
What kinds of documents are generated by the XSLT Processor? |
|
The XSLT Processor generates the variety of documents such as, XML, HTML, and ASPX for a webpage and a PDF document.
|
|
|
19. |
What are the restrictions in the Xml Serialization? |
|
There are some restrictions when applying XML serialization to a class. They are:- Only the public property or field can be serialized.
- The class must contain a public default constructor.
|
|
|
20. |
What are the two ways to represent the XML? |
|
The XML is represented in two basic ways- External document containing embedded data.
- In–memory tree structure known as Document Object Model (DOM)
|
|
|