Fu Bo Xia wrote:[color=blue]
> anyone know a Java (or Java usable) package that converts XML Schema (XSD)
> documents into a tree form?
>
>
> thanks,
> fu bo
>
>[/color]
Fu Bo,
First, remember that XML Schema must also be valid XML files. So
really, if you find an XML tool that does what you want, you are golden.
Are you looking for (open) source code you can build on a tool?
The premium domain xmlbuddy.com is for sale on fruits.co. Secure the domain now and start your online success story. Safe payment and quick transfer are guaranteed.
"Fu Bo Xia" <fubo.x@optusho me.com.au> wrote in message
news:3f5c5c35$0 $14560$afc38c87 @news.optusnet. com.au...[color=blue]
> anyone know a Java (or Java usable) package that converts XML Schema (XSD)
> documents into a tree form?
>
>
> thanks,
> fu bo
>
>[/color]
We market a shareware product called DTDChart that displays a document
structure as a tree chart. You would have to convert the XSD into a DTD
first. Not sure if this is the kind of thing you are looking for.
"Fu Bo Xia" <fubo.x@optusho me.com.au> wrote in message
news:3f5c5c35$0 $14560$afc38c87 @news.optusnet. com.au...[color=blue]
> anyone know a Java (or Java usable) package that converts XML Schema (XSD)
> documents into a tree form?
>
>
> thanks,
> fu bo
>
>[/color]
i'm looking for a java API that will convert a XML Schema (XSD) document
from a textual representation to a tree representation that's stored in a
tree structured object. for example if i have the following XSD:
Fu Bo Xia wrote:[color=blue]
> sorry let me clearify my question,
>
> i'm looking for a java API that will convert a XML Schema (XSD) document
> from a textual representation to a tree representation that's stored in a
> tree structured object. for example if i have the following XSD:
>[/color]
Why don't you just parse it as XML using Xerces, for example? Then you
will have a standard DOM structure which is very tree-like.
[color=blue]
>
> this will convert to a tree similar to the one pictured here:
> http://tinyurl.com/mt9t
> of course there's no way to capture every detail of a XSD into a tree, but
> that's not what i'm looking for.
>
> alternatively, could you point to a some good Java XML parsing tutorials.
>[/color]
Comment