Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic