> Using Castor XML, is it possible to produce bindings from a Schema that
> has <xs:any>  which becomes AnyNode but then add a String under this node
> that represents a series of nested elements that I would like to be
> embedded if I marshall the root element java class.
> 
> That's my key question but in more detail what I'm trying to do is deal
> with a 'composite' style document and XML binding e.g :-
> 
> - Take in a large XML document that contains some <xs:any> element types
> - For each <xs:any> element, take the AnyNode java class invoke toString()
> to get out the XML as a String. 
> - Unmarshall the String of XML into a separate set of Java XML Bound
> classes, which were generated from an XSD that represents the <xs:any>
> sub-XML schema.
> Up to this point I think it should all be possible
> - Put back into the 'large' XML document at the AnyNode element position,
> an XML instance that conforms to the XML sub-schema. This XML would come
> from java XML bound classes that match the sub-schema. So I could Marshall
> the root of the sub-schema to get String of XML, but how can I insert in
> the AnyNode element in the large XML document.
> 
> Any ideas would be most appreciated.
> 
> I did start to go down the route of having a composite XML Schema that
> represents the main schema plus the <xs:any>  replaced by sub-schemas, but
> this is quite restrictive and element name collisions/duplicates will crop
> up.
This transmission is confidential and intended solely for the person or
organisation to whom it is addressed.  It may contain privileged and
confidential information.  If you are not the intended recipient, you should
not copy, distribute or take any action in reliance on it. If you have
received this transmission in error, please notify the sender immediately.
Any opinions or advice contained in this e-mail are those of the individual
sender except where they are stated to be the views of RDF Group or EMS plc.
All messages passing through this gateway are virus scanned.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to