Hi, I am using xerces 1.4.3 to validate xml documents. The following xml file is to be validated against a schema (say ABC.xsd), ignoring MSGschema.xsd that is specified in its root attribute (This is achieved by using the EntityResolver property of the parser). ABC.xsd is derived from XYZ.xsd. Both, ABC.xsd and XYZ.xsd have their grammars defined in the namespace http://www.abc.com. Is it possible to validate the following xml document without specifying the schemaLocation in the xml?
<?xml version="1.0" encoding="UTF-8"?> <MSG xmlns="http://www.abc.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.abc.com http://localhost:7001/XML/MSGschema.xsd"> <sometag> ............. ......... ........... </MSG> i.e <?xml version="1.0" encoding="UTF-8"?> <MSG xmlns="http://www.abc.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <sometag> ............. ......... ........... </MSG> Would the above xml be validated? ?If so, what would be the changes that are to be made in the parser? TIA, abhishek. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
