-
Notifications
You must be signed in to change notification settings - Fork 101
xs:any namespace="##any" processContents="skip" not returning data #16
Comments
Reported by ggregory |
Was assigned to kohsuke |
ggregory said: |
File: request.xsd |
ggregory said: |
File: ResultSetJaxbParser.java |
ryan_shoemaker said: |
ryan_shoemaker said: |
File: test.xsd |
ggregory said: |
File: bindings.xjb |
kohsuke said: |
kohsuke said: The JAXB 1.0 spec doesn't support the mapping to DOM, so the RI is not The good news is, you can do this by using XJC vendor customization. AFAIK, the JAXB 2.0 spec is indeed considering this sort of binding as a default |
kohsuke said: |
File: test.xsd |
Marked as incomplete on Thursday, April 14th 2005, 10:28:43 am |
This issue was imported from java.net JIRA JAXB-16 |
Weekly build 20031215.
I am trying to specify that an element can contain anything with (see request.xsd):
<xs:element name="Request">
xs:complexType
xs:sequence
<xs:element name="Input">
xs:complexType
xs:sequence
<xs:any namespace="##any"
processContents="skip"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attributeGroup ref="req:requestAttributeGroup"/>
</xs:complexType>
</xs:element>
The reason for this is that we have some legacy XML that we need to integrate in
a containing document. That legacy XML can be pretty much anything and has its
own pile of non-Jaxb code to handle it.
I want to use Jaxb for the containing document and then pass on the string or
DOM Node or /whatever/ down to our other code pile.
This Schema snippet allows my example document to be validated in XMLSpy as well
as parsed by the generated Jaxb code but the "contents" are
null in the attached Java example.
Is it possible to get Jaxb to give me /something/ for the contents of ?
Thank you,
Gary
Environment
Operating System: Windows XP
Platform: PC
Affected Versions
[JWSDP1.6 (JAXB1.0.5)]
The text was updated successfully, but these errors were encountered: