muttley73 / jlibs

Automatically exported from code.google.com/p/jlibs
0 stars 0 forks source link

java.lang.IllegalArgumentException: no prefix found for uri #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

when trying to generate sample XML file from XSD which imports multiple 
undelying XSD files, there appears response that the prefix was not found.

Piece of code:
XSInstance xsInstance = new XSInstance();
            xsInstance.minimumElementsGenerated = 2;
            xsInstance.maximumElementsGenerated = 4;
            xsInstance.generateOptionalElements = Boolean.TRUE; // null means random

            XSModel xsModel = new XSParser().parse(SOATF_HOME + "\\schema\\SOATestingFrameworkInterfaceConfiguration\\SOATestingFrameworkInterfaceConfiguration.xsd");

            QName rootElement = new QName("http://www.ibm.com/SOATF/Config/Interface", "soaTestingFrameworkInterfaceConfiguration", "stfconf");
            XMLDocument sampleXml = new XMLDocument(new StreamResult(System.out), true, 4, null);
            xsInstance.generate(xsModel, rootElement, sampleXml);

I attached whole XSD folder.

Original issue reported on code.google.com by archenr...@gmail.com on 17 Nov 2013 at 5:54

Attachments:

GoogleCodeExporter commented 9 years ago
I tested above code with 1.1-Snapshot
It is working fine and no exceptions found.

could you test with 1.1-Snapshot.
also please attach complete stacktrace

Original comment by santhosh.tekuri@gmail.com on 20 Nov 2013 at 10:25

GoogleCodeExporter commented 9 years ago
Well, sorry, that idea didn't come into my mind to check the latest snapshot, I 
will test and let you know.

Original comment by archenr...@gmail.com on 20 Nov 2013 at 10:54

GoogleCodeExporter commented 9 years ago
marking fixed.

Original comment by santhosh.tekuri@gmail.com on 29 Nov 2013 at 9:40