[xsd-users] Namespace mapping for XML schema error...
Pushkar Kolhe
robotpushkar at gmail.com
Tue Mar 2 20:51:53 EST 2010
Hi,
My XSD has the following schema:
file.xsd
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mes="urn:OffLineMessage" targetNamespace="urn:OffLineMessage"
elementFormDefault="qualified" attributeFormDefault="unqualified">
...
</xs:schema>
I tried to create a C++ tree with:
xsd.exe cxx-tree file.xsd
I get an error saying Cannot map XML schema namespace 'urn:OffLineMessage'
to C++ namespace. I tried to add --namespace-map with:
xsd.exe cxx-tree --anonymous-regex "#.* (.+)/(.+)#$1_$2#" --namespace-map
"http://www.w3.org/2000/09/xmldsig#=XMLDSig" file.xsd
I get the same error again!
--p
More information about the xsd-users
mailing list