users@jaxb.java.net

raw xml in wildcard content

From: StopSpam <swajixa02_at_sneakemail.com>
Date: Thu, 10 Feb 2005 21:08:40 +0100

Hello,

I need to access raw xml (an octet stream) as mentioned in
http://java.sun.com/webservices/docs/1.5/jaxb/vendorCustomizations.html#dom
for the creation of digital signatures over xml content.
This xml content is embedded inside another xml file and should not
inherit any name spaces
or other references from outside the <XMLData> tags.

<...>
  <...>
  <XMLData> RAW XML DATA HERE </XMLData>
   .......
  <XMLData> RAW XML DATA HERE </XMLData>
  </...>
</...>

So far I can access the content using dom binding, but this destroys the
document for
signature verification purposes as the original RAW XML DATA is modified
during
unmarshalling and by introducing namespaces etc..

Is it possible to read the xml content (or input stream) as presented to
the parser
between the <XMLData> tags?

--Schema at the end of the message.

many thanks in advance

Konrad Lanz
Konrad(dot)Lanz[AT]iaik{dot}at

<xs:element name="XMLData" type="AnyXMLType"/>

    <xs:complexType name="AnyXMLType">
        <xs:sequence>
            <xs:any processContents="lax" maxOccurs="unbounded">

                <xs:annotation>
                    <xs:appinfo>
                        <xjc:dom/>
                    </xs:appinfo>
                </xs:annotation>

            </xs:any>
        </xs:sequence>
    </xs:complexType>