Hi Alex,

MS> I've solved this problem by making the datatype (in the schema) a mixed
MS> type, which results in Castor generating get/setContent methods. These
work
MS> fine with any type of text.
A> Can you send example part of XML schema with such
A> specification? Is it possible to define such type in DTD?

I define a type like this:

<xsd:complexType name="DataType" mixed="true">
        <xsd:sequence>
                <xsd:any namespace="##any" processContents="skip"/>
        </xsd:sequence>
</xsd:complexType>

This type allows me to add any kind of text (mixed), as well as any kind of
xml tree (xsd:any).
And I use it in an entity like this:

<xsd:element name="Data" type="DataType"></xsd:element>

I'm not very familiar with DTDs but if I convert the xsd in XMLSpy I get
this definition:

<!ELEMENT Data ()>

I recommend using schemas, since they have more options as well as being in
xml format.

Hope this helps,
 Michel

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to