Thanx John,
that helped a little bit, but there is still an error, i have the
following XSD-snippet:
<xs:element name="CAdata" minOccurs="0" maxOccurs="1" >
<xs:complexType mixed="true">
<xs:sequence>
<xs:any namespace="##any" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="CAname" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
and the xml
<XXX>
........
<CAdata CAname="foo">bar</CAdata>
</XXX>'
And i got the error:
error: cvc-complex-type.2.4d: Expected element(s) in element
[EMAIL PROTECTED]://www......
Psoroulas John wrote:
> Stefan,
>
> you can use a "mixed" content type. In the definition of your element in
> XSD, declare the attribute "mixed" as "true".
>
> Regards,
>
> John
>
>
>
> On Mon, March 10, 2008 13:10, Stefan Lischke wrote:
>
>> Hi,
>>
>>
>> It may be OT, but maybe you can help me, i need an xsd expression to
>> allow text-content or any other node like
>>
>> <node>text</node>
>>
>>
>> or
>>
>> <node><anynode/></node>
>>
>>
>> when using xs:any i cannot put in simple text there
>>
>> any idea?
>>
>> thanx in advance
>>
>> Stefan
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]