Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XML Embedded in XML

843834Sep 30 2009 — edited Oct 5 2009
What are the ramifications of embedding an XML document in another XML document when the parser is the JAXP DOM parser? Specifically; if my schema says that the embedded XML is of type "string", then the parser chokes when it sees the embedded XML tags in the data region - it comes back complaining that the field is a simple type and must have no children.

Is it common to embed XML in XML like this ...is it an intended/envisioned/supported use of the JAXP parser? If so, there must be a standard way of making it work. In this case an XML message is being used to send an updated (.xsd)Schema - embedded in the XML document as one of its fields.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2009
Added on Sep 30 2009
13 comments
406 views