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

Iain Sharp isharp at atis.org
Wed Aug 23 04:47:47 EDT 2017


Thanks.

I actually also noticed another problem in the same document:
"2.9.1 Element Types

The generation of element types is requested with the --generate-element-map option."

I think you mean "...with the --generate-element-type option."

Regards

Iain

Regards

Iain


-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: 23 August 2017 09:05
To: Iain Sharp <isharp at atis.org>
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] Question on XSD C++/Tree Mapping User Manual

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