Hi. I have the following xml file: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE foo [ <!ENTITY extern SYSTEM "ext.xml"> ]> <foo> <foo_info> <id >2011_0101</id> <foo_name>foo foo</foo_name> &extern; </foo_info> </foo>
in "ext.xml" I have additional xml tags. I am using xerces 3.1.1 to parse the xml file using the following function: xercesc::XercesDOMParser xml_parser; XmlParserErrorHandler error_handler; xml_parser.setErrorHandler(&error_handler); xml_parser.setLoadExternalDTD(false); xml_parser.setSkipDTDValidation(true); xml_parser.parse(*current_input_source); xercesc::DOMDocument *doc = xml_parser.getDocument(); xercesc::DOMElement *root = doc->getDocumentElement(); The problem I have is that the external ENTITY &extern is not resolved, the parsed file in doc is missing it. Does anyone have a suggestion on how to make xerces resolve it before parsing? Thanks, Aleksey Dobrunov
