Basics of validating xmls with a given schema in C++. 1. Create parser instance. SAX2XMLReader* parser = XMLReaderFactory::createXMLReader(); 2. Set required features to parser instance as follow. // Enable the parser’s schema support parser->setFeature(XMLUni::fgXercesSchema, true); // Schema validation requires namespaceContinue reading… xerces-c: C++ SAX2 Parser
Tag: xml
xerces-c: C++ SAX2 Parser
Basics of validating xmls with a given schema. 1. Create parser instance. SAX2XMLReader* parser = XMLReaderFactory::createXMLReader(); 2. Set required features to parser instance as follow. // Enable the parser’s schema support parser->setFeature(XMLUni::fgXercesSchema, true); // Schema validation requires namespace processing toContinue reading… xerces-c: C++ SAX2 Parser