This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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: 12792
    
    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
 
GeeCON Prague 2014
 
subject: Schema parsing using JDOM