I use the following code to initialize my XercesDOMParser to parse the >xml and perform Schema Validation but it doesn't perform the validation. > > static const XMLCh gLS[] = { chLatin_L, chLatin_S, chNull }; > DOMImplementation *impl = > DOMImplementationRegistry::getDOMImplementation(gLS); > //DOMBuilder *parser = >(DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, >0); > > valSchem = XercesDOMParser::Val_Always; > XercesDOMParser *parser = new XercesDOMParser; > parser->setValidationScheme(valScheme); > parser->setDoNamespaces(true); > parser->setDoSchema(true); > parser->setValidationSchemaFullChecking(true); > //parser->setCreateEntityReferenceNodes(true); > > >My XML files processing instructions and attributes are: > >XML: ><?xml version="1.0" encoding="UTF-8"?> ><!--comment out DOCTYPE for castor jaxb binding--> ><!DOCTYPE event_sim_input SYSTEM "event_sim_input.dtd"> ><event_sim_input version="1.0" >xmlns:xsi='http://sdsc.geongrid.org/components/application/synseis/e3dinputxml/xmlschema' > xsi:noNamespaceSchemaLocation='event_sim_input.xsd'> > >XSD: ><?xml version="1.0" encoding="UTF-8"?> ><xs:schema > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xml:lang="EN" > elementFormDefault="qualified" > attributeFormDefault="qualified" >targetNamespace="http://sdsc.geongrid.org/components/application/synseis/e3dinputxml/xmlschema" > >xmlns:myns="http://sdsc.geongrid.org/components/application/synseis/e3dinputxml/xmlschema"> > > >Any suggestions? > >Thanks
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]