Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Schema parsing using JDOM

 
Rabia Younus
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to parse a Schema (xsd) which is a Stringbuffer with xml using JDOM.Can anyone suggest how I do it when schema is a StringBuffer and not a file
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If JDOM is anything like the standard Java library, the parsers take Reader or InputSource or some similar generalized stream of characters and are not locked in to reading Files only.

You can get a String from the StringBuffer and then make a Reader.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic