[xsde-users] unexpected element encountered
Vertleyb, Arkadiy
Arkadiy.Vertleyb at 247realmedia.com
Fri Jan 27 09:45:42 EST 2012
Thanks Boris, now it's working.
I just used the constructor w/o namespace parameter (copied the example from somewhere). Sorry for nor figuring this out myself.
Regards,
Arkadiy
________________________________________
From: Boris Kolpackov [boris at codesynthesis.com]
Sent: Thursday, January 26, 2012 7:36 AM
To: Vertleyb, Arkadiy
Cc: xsde-users at codesynthesis.com
Subject: Re: [xsde-users] unexpected element encountered
Hi Arkadiy,
Vertleyb, Arkadiy <Arkadiy.Vertleyb at 247realmedia.com> writes:
> The parser complains about the following line:
>
> <DE_Data xmlns="http://schemas.247realmedia.com/DE_Data_post_11_3">
The most common cause is the incorrect root namespaces as passed
to the document_pimpl constructor. If you are using C++/Parser,
then it should be:
xml_schema::document_pimpl doc_p (
de_data_p,
"http://schemas.247realmedia.com/DE_Data_post_11_3", // root element namespace
"DE_Data"); // root element name
If using C++/Hybrid and aggregates, then it should be:
xml_schema::document_pimpl doc_p (
de_data_p.root_parser (),
de_data_p.root_namespace (),
de_data_p.root_name ());
Boris
More information about the xsde-users
mailing list