Again, the schemas can be declared either as part of the XML data set or in the program. In general, though, it is a good idea to keep all the declarations together in one place.) To declare the schemas to use for the preceding example in the data set, the XML code would look something like the following.declaration consists of entry pairs, where the first entry in each pair is a fully qualified URI that specifies the namespace, and the second entry contains a full path or a relative path to the schema definition. In that way, only one copy of the schema will tend to exist.
At the end of this section, you will also learn how to use an XML Schema definition to validate a document that contains elements from multiple namespaces. Does the parsers package contain JAXP APIs which are the SAX and DOM APIs? Thank you "The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years.And there are two parsers one is the SAX and one is the DOM? I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing.while JAXP is the API that is developed by Sun, by integrating these two above mentioned APIs with the addidtion of parser package which give some good implementation of the interfaces and abstract classes of DOM and SAX.Infact JAXP was developed for some project X (Sun's implementstion).