on 04-15-2010 11:50 AM
Hi Experts,
I am preparing one XSD with two namespaces but it's throwing following error:
My xsd is looks like following:
<?xml version="1.0" encoding="UTF-8"?>
<sh:schema xmlns:sh="http://www.w3.org/2001/XMLSchema" xmlns:eanucc="urn:ean.ucc:2">
<sh:element name="StandardBusinessDocument">
</sh:element>
<eanucc:element name="Message">
</eanucc:element>
</sh:schema>
Error: Element <eanucc:element> is not allowed under element <sh:schema>
Please let me know how do I correct this error.
Thanks-
Rams.
If I am not wrong only sh will be allowed as a prefix....may be you can cross-check by changing eanucc with sh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> This is the reason I am preparing my XSD with two namespaces
You have to distinguish between namespace ot target structure and the namespace of XSD itself.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.