From David.Hardwick at ge.com Fri Aug 8 04:37:53 2008
From: David.Hardwick at ge.com (Hardwick, David (GE Infra, Aviation))
Date: Fri Aug 8 04:39:36 2008
Subject: [xsde-users] Using name spaces?
Message-ID: <4F45D6F2B06CF842BC225557FD80021002CA4476@CINMLVEM26.e2k.ad.ge.com>
Can anyone help?
When I use xsde to parse the following:
TEST
I get the error: line 2: column 56: unexpected element encountered.
Do I need to override something in order to use namespaces/prefixes? I
see that the the multiroot example
customises the the xml_schema::document_pimpl to process the root name
spaces etc. Do I need to do
something similar for the example above?
Regards
From boris at codesynthesis.com Fri Aug 8 04:46:35 2008
From: boris at codesynthesis.com (Boris Kolpackov)
Date: Fri Aug 8 04:54:26 2008
Subject: [xsde-users] Using name spaces?
In-Reply-To: <4F45D6F2B06CF842BC225557FD80021002CA4476@CINMLVEM26.e2k.ad.ge.com>
References: <4F45D6F2B06CF842BC225557FD80021002CA4476@CINMLVEM26.e2k.ad.ge.com>
Message-ID: <20080808084635.GD29145@karelia>
Hi David,
Hardwick, David (GE Infra, Aviation) writes:
> When I use xsde to parse the following:
>
>
>
> TEST
>
>
> I get the error: line 2: column 56: unexpected element encountered.
>
> Do I need to override something in order to use namespaces/prefixes?
No, this should work out of the box. My guess would be you didn't
pass the namespace argument to the document_pimpl c-tor. It should
be something along these lines:
xml_schema::document_pimpl doc_p (
caduRequest_p, // root parser
"http://www.example.com/example", // root element namespace
"caduRequest"); // root element name
If this does not help, can you show your schema as well as the
code you use to parse the above XML document?
Boris