Using xmlbeans-2.0, although I get the same result with 2.1. I have defined an element in a schema as follows:
<xs:element name="blackBox"> <xs:complexType> <xs:sequence> <xs:any minOccurs="0" nameSpace="##any" maxOccurs="unbounded" processContents="skip" /> </xs:sequence> </xs:complexType> </xs:element> I am feeding the compiled schema definition to an XML generator. The element contains content passed to us from a third party, and it may or may not contain valid XML. In any case, we do not have a definition for it. I get it back as a String, and need to write the String out as content for the blackBox element. When I compile the schema, the SchemaType generated shows a content type of 3, or org.apache.xmlbeans.SchemaType.ELEMENT_CONTENT. The XML generator only writes out the value if the content type is NOT_COMPLEX_TYPE || SIMPLE_CONTENT || MIXED_CONTENT. Having it defined as ELEMENT_CONTENT means the generator only outputs elements. I am not familiar with the innards of the compiler, but it seems to me ELEMENT_CONTENT is the wrong thing here. I believe it should be MIXED_CONTENT. Should I put in a bug report? Or does anyone have a workaround? -- Jim McMaster mailto:[EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]