From: "Brian W. Young" <[EMAIL PROTECTED]>
> Hi,
>
> We have a need to parse a schema and basically denormalize it- expand
> everything out into one document.  For example, if the schema includes 4
> other schemas and references complex datatypes, we'd like to be able to
> run this schema thru some engine and get back a document that has been
> expanded out to include the 4 separate schemas, and the complex
> datatypes should be expanded out into basic individual types.
>
> Any ideas?  Is MSV an option?  I've looked at it but it doesn't look
> like it does what I want right off the bat, and I'm not sure I could
> figure it out enough to make something work.

Could you use XSLT for this? Essentially copying everything through as is
but just processing the <xsd:include> elements to actually include, in
place, the referenced schema documents?

Or you could just parse the document as a dom4j Document object then find
the <include> elements then swap them with the root elements of the included
documents.

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to