File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Help! How pass Schema to LSInput if both schema/XML are strings? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Help! How pass Schema to LSInput if both schema/XML are strings?" Watch "Help! How pass Schema to LSInput if both schema/XML are strings?" New topic
Author

Help! How pass Schema to LSInput if both schema/XML are strings?

Dan Bizman
Ranch Hand

Joined: Feb 25, 2003
Posts: 387
My app gets XML and it's schema as strings (well, they're sent over a socket and written into strings). I am able to pass my string into the LSInput without a problem, but how do I get it the schema?
Dan Bizman
Ranch Hand

Joined: Feb 25, 2003
Posts: 387
In case anyone's wondering, I've solved the problem. You need to do the following:

1. Create a ResourceResolver class that you pass to Xerces by the following:


2. In your resolver, you'll save the target namespace of the XML (which is in the XSD)
and create an LSInput for the XSD which you'll pass from resolveResource.


That's it!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help! How pass Schema to LSInput if both schema/XML are strings?
 
Similar Threads
How can I validate the XML schema with XML files using localpath?
1) good security reference for group; 2) XML Schema question
How to validate an XML schema i.e. Validate an XSD file
XML Schema Help
Where to place the XML Schema