wiztools / xsd-gen

Java cli tool for generating XSD from an XML
MIT License
81 stars 29 forks source link

BUGFIX: did not properly refer to namespace prefix when copying namespaces #10

Closed FrodeRanders closed 7 years ago

FrodeRanders commented 7 years ago

When trying to generate XSD from instance, XsdGen barfed on:

<SetGroupageServiceStatusRequest xmlns="http://www.psv3.de/Server/Interfaces/Xml/MessageTypes" xmlns:psv3processtypes="http://www.psv3.de/Server/Interfaces/Xml/ProcessTypes" ...

XsdGen did not use prefix "psv3processtypes" when adding second namespace ProcessTypes, instead referring to the global 'nsPrefix' (instead of nsPrefix2).

subwiz commented 7 years ago

Released with the bug fix: https://github.com/wiztools/xsd-gen/releases/tag/0.2.2

Uploading in Maven repo will take some time.

FrodeRanders commented 7 years ago

Godspeed! :)