Hi,
Is there a way to add text to an element of type MIXED?
Consider:
<xs:complexType name="IntervalValueType" mixed="true">
<xs:sequence>
<xs:element name="MinValue" minOccurs="0" maxOccurs="1" type="xs:string"
/>
<xs:element name="MaxValue" minOccurs="0" maxOccurs="1" type="xs:string"
/>
</xs:sequence>
</xs:complexType>
and the corresponding pyxb binding:
# Complex type IntervalValueType with content type MIXED
class IntervalValueType (pyxb.binding.basis.complexTypeDefinition)
Using the above class, how can I output
<value>5</value>, where value is of IntervalValueType?
I have tried all combinations of constructors and appends but I wasn't able to
achieve that - I always get
<value><MinValue>5</MinValue></value>
Thanks,
Dim
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
pyxb-users mailing list
pyxb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyxb-users