jQuery in Action, 3rd edition
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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Help! How pass Schema to LSInput if both schema/XML are strings?
 
It's not a secret anymore!