Hi Scott,

I do use an input stream as parameter.

The corresponding Java Code looks like this:

---
public class TestData {
        
private static final String TEST_XSD = "test.xsd";
private static final String TEST_XML = "test.xml";
        
private static boolean initTypes() {
    try {
        FileInputStream fis = new FileInputStream(TEST_XSD);
        XSDHelper.INSTANCE.define(fis, null);
        fis.close();
        return true;
    } catch (Exception e) {
        e.printStackTrace();
        return false;
    }
}
        
public static void loadStuff() {
    try {
        initTypes();
                        
        FileInputStream fis = new FileInputStream(TEST_XML);
        XMLDocument xmlDoc = XMLHelper.INSTANCE.load(fis);
    } catch (Exception e) {
        e.printStrackTrace();
    }
}

}
--

Best regards, Manuel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to