File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Schema parsing using JDOM

Rabia Younus

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

Joined: Mar 22, 2000
Posts: 13035
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.

I agree. Here's the link:
subject: Schema parsing using JDOM
It's not a secret anymore!