I'm the author of the SchemaTreeTraverser sample visitor in xsom distribution. As Lexi said, you will need to implement your own visitor (as in SchemaTreeTraverser) and bind the relevant (or all) schema artifacts to a tree model in the language of your choice.
Kirill
Aleksei Valikov <valikov_at_gmx.net> wrote: Hi.
> I am now evaluating xsom as you have suggested instead of jaxb. In the
> example included in the xsom download (TreeDumper), the schema was
> tied up with JTree to view the schema. Is it possible also to do this
> using JSF Tree? I am unable to do this. My other option is to parse
> the schema element by element which is very tedious. But if there is a
> way to tied it up with JSF Tree just like JTree, that would be really
> great.
I'm not sure which implementation of tree you mean. If it's tree/tree2
from MyFaces - no big deal to bind any tree-structured data to that.
Just write an appropriate tree model, that's all. I work a lot with
trees and JAXB/XML Schema-driven stuff, functions fine. I needed to
write an extended tree model though. Default tree model from Tree2 is
quite poor.
Bye.
/lexi
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.