-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown xmlns prefix #15
Comments
Having the same issue with a XSD file that has |
@mr-kashif, could you please provide all the XSD files for me to reproduce? |
@isimluk This specification from gaeb (a german standard for b2b communication) triggers the same error.
|
@isimluk , I had the same problem and managed to create a minimal example: <?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- definition of simple elements -->
<xs:element name="name" type="xs:string"/>
<!-- definition of complex elements -->
<xs:element name="referencingthename">
<xs:complexType>
<xs:sequence>
<xs:element ref="name"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema> Could you have a look at it? |
Yes please to the above comment. |
The problem occurs when the parser searches a referenced element without a prefix like <?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="exampleNamespace">
<!-- definition of simple elements -->
<xs:element name="name" type="xs:string"/>
<!-- definition of complex elements -->
<xs:element name="referencingthename">
<xs:complexType>
<xs:sequence>
<xs:element ref="name"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema> |
Not able to generate structs from xsd.
patent-document.xsd
The text was updated successfully, but these errors were encountered: