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

Boris Kolpackov boris at codesynthesis.com
Wed Aug 23 04:04:46 EDT 2017


Iain Sharp <isharp at atis.org> writes:

> 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 ();

Yes, that's correct. I've fixed this, thanks for the report!

Boris



More information about the xsd-users mailing list