-
Notifications
You must be signed in to change notification settings - Fork 21
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
definitions of xmlns:xsi and xmlns:qdt in rsm:CrossIndustryInvoice missing #42
Comments
Probably a bug, but maybe hard to fix if the XML library we use only adds namespaces that are needed |
Thanks for the answer. |
I'm also interested in a solution to this validator error. How do you add namespaces after creation? Just with text based file manipulation? |
|
Thank you for the pointer. Your if statement does not work when attribute is present, so I modified that part to
|
you are right, thanks |
Version 2.4.0 from pypi
Expected:
<rsm:CrossIndustryInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100"
xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100">
rsm:ExchangedDocumentContext
ram:GuidelineSpecifiedDocumentContextParameter
ram:IDurn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.3</ram:ID>
</ram:GuidelineSpecifiedDocumentContextParameter>
</rsm:ExchangedDocumentContext>
rsm:ExchangedDocument
....
but got:
<rsm:CrossIndustryInvoice
xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100">
rsm:ExchangedDocumentContext
ram:GuidelineSpecifiedDocumentContextParameter
ram:IDurn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended</ram:ID>
</ram:GuidelineSpecifiedDocumentContextParameter>
</rsm:ExchangedDocumentContext>
...
ValiTool said:
Das XML ist valide.
Profil: urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended
Korrekte XML Struktur: OK
Korrektes XML Schema: OK
Korrekte XML Namespaces: OK
Korrekte XML Kodierung: OK
Korrekte Code Listen: OK
Gibt es Warnungen? Ja
Details
[VD-Valitool-14]-Der Namespace xmlns:qdt fehlt. Auch wenn dieser in der Instanzdatei nicht benötigt wird, sollte dieser gemäß Spezifikation angegeben werden.
did I forgot something to initialize or is it a failure?
The text was updated successfully, but these errors were encountered: