aspose 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
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!
 
 
subject: Help! How pass Schema to LSInput if both schema/XML are strings?