Xerces - Load schema from string

Viewed 825

I would like to load an XML schema from string using Xerces, but until now, I can only load it from an URI:

final XMLSchemaLoader xsLoader = new XMLSchemaLoader();
final XSModel xsModel = xsLoader.loadURI(file.toURI().toString()); 

Available methods for loading:

XSLoader {
    public XSModel load(LSInput is) { }
    public XSModel loadInputList(LSInputList is) { }
    public XSModel loadURI(String uri) { }
    public XSModel loadURIList(StringList uriList) { }
}

Is there any option to load XML schema from a string? In my context, the processing is done on client-side, so URI method cannot be used.

Thank you.

2 Answers
Related