Author Topic: XML_parser -- wrapper generality/Xerces use  (Read 552 times)

paul424

  • Guest
XML_parser -- wrapper generality/Xerces use
« on: 14 January 2014, 14:25:29 »
Well I read the Xml_parser day and night to write similar one for OpenDungeons ;)
From what I deduced and learned from IRC Xml_parser is pure wrapper class, Well I found some scratches in it :
The actulaly used XML parser should depend on
 
Code: [Select]
enum xml_engine_parser_type {
XML_XERCES_ENGINE = 0,
XML_RAPIDXML_ENGINE = 1
} ;

static xml_engine_parser_type DEFAULT_XML_ENGINE = XML_RAPIDXML_ENGINE;

Does it ?

Well there are functions which still depend on Xerces classes , regardless of what above variable is set to .

Code: [Select]
XmlNode(XERCES_CPP_NAMESPACE::DOMNode *node, const std::map<string,string> &mapTagReplacementValues);
Code: [Select]
XERCES_CPP_NAMESPACE::DOMElement *buildElement(XERCES_CPP_NAMESPACE::DOMDocument *document) const;
Code: [Select]
XmlAttribute(XERCES_CPP_NAMESPACE::DOMNode *attribute, const std::map<string,string> &mapTagReplacementValues);
Is seems either I don't get something or it;s just harsh-nissness of your implementation ?
regards :)


 

anything