[xsd-users] Question on XSD C++/Tree Mapping User Manual

Iain Sharp isharp at atis.org
Tue Aug 22 14:00:09 EDT 2017


In the XSD C++/Tree Mapping User Manual section 5.1 there is a code fragment that begins:

"  std::auto_ptr<type> r (root (
    "root.xml",
     xml_schema::flags::keep_dom |
     xml_schema::flags::dont_initialize));

  DOMNode* n = root->_node ();
  assert (n->getNodeType () == DOMNode::ELEMENT_NODE);
...etc..."

Should the declaration of n in fact read:
DOMNode* n = r ->_node ();

?


Regards

Iain



More information about the xsd-users mailing list