[xsd-users] Help me: How to find out what is the type of a class

James Mei jxmei3 at gmail.com
Wed Oct 21 11:03:02 EDT 2009


Hi Boris

Sorry I forgot this time. I was in a hurry. I will remember to cc to
xsd-users.

Thanks for the help, I will use xml_schema::flags::keep_dom to keep the DOM
tree.

Best regards
James

On Wed, Oct 21, 2009 at 10:22 PM, Boris Kolpackov
<boris at codesynthesis.com>wrote:

> Hi James,
>
> In the future please keep your replies CC'ed to the xsd-users mailing
> list as discussed in the posting guidelines:
>
> http://www.codesynthesis.com/support/posting-guidelines.xhtml
>
>
> James Mei <jxmei3 at gmail.com> writes:
>
> > May I also know if the class contain the actual name of the element in
> > string form ?
>
> No.
>
>
> > I have tried
> > scl.get()->Header()._node()->getNodeName(), which
> > scl.get()->Header()._node() should be the *DOMNode, but it is NULL all
> the
> > time.
>
> Yes, you can do this but you will need to turn on DOM association during
> parsing. See Section 5.1, "DOM Association" in the C++/Tree Mapping User
> Manual for more information:
>
>
> http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/manual/#5.1
>
> Boris
>


More information about the xsd-users mailing list