Validation of xml with xmlvalidatingreader example
Methods are called for the document, elements, attributes, and other types of nodes.
This type of API is called a "push model" because the document information is pushed from the parser to the client.
The middle part of Figure 1 illustrates the SAX approach to parsing.
The downside of this approach is that keeping track of the current context of an element or attribute in a complex document can be difficult.
The previous article in this series discussed the DOM API for XML data access in the . It models an XML document as a tree of nodes kept in memory while a client is using the document.
The top part of Figure 1 shows how the DOM parser produces a tree of nodes.
Here I am not able to write a method to get XML file as input from the client who is consuming the service.See also: Robin Cover's index of XML Schema materials.XML Schema 1.1 (in two parts) is a W3C Recommendation.I am using Xml Text Reader and Xml Validating Reader to read and validate the XML file.