This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 12761
    
    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
 
Don't get me started about those stupid light bulbs.
 
subject: Schema parsing using JDOM
 
Similar Threads
regex question
StringBuffer
Parsing Schema using JDOM
Array Speed Issue
Difference