TinyXML |
您所在的位置:网站首页 › documentbyclass › TinyXML |
Accept a hierarchical visit of the nodes in the TinyXML-2 DOM. Every node in the XML tree will be conditionally visited and the host will be called back via the XMLVisitor interface. This is essentially a SAX interface for TinyXML-2. (Note however it doesn't re-parse the XML for the callbacks, so the performance of TinyXML-2 is unchanged by using this interface versus any other.) The interface has been based on ideas from: http://www.saxproject.org/ http://c2.com/cgi/wiki?HierarchicalVisitorPatternWhich are both good references for "visiting". An example of using Accept(): XMLPrinter printer; tinyxmlDoc.Accept( &printer ); const char* xmlcstr = printer.CStr();Implements tinyxml2::XMLNode. |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |