aspose file tools*
The moose likes Java in General and the fly likes Schema parsing using JDOM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Schema parsing using JDOM" Watch "Schema parsing using JDOM" New topic
Author

Schema parsing using JDOM

Rabia Younus
Greenhorn

Joined: May 04, 2007
Posts: 2
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

Joined: Mar 22, 2000
Posts: 12769
    
    5
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
 
Consider Paul's rocket mass heater.
 
subject: Schema parsing using JDOM