Urieal
Programmer
- Jan 29, 2009
- 3
I am trying to write a schema with some basic types.
See the following:
<xs:complexType name="Paragraph">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="myattribute" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
I would like this "Paragraph" type to have any number of child paragraphs
ie...the XML would look something like this
<paragraph myattribute="abc">
this is my text and i like it
<paragraph myattribute="efg">
this is some more of my text
</paragraph>
</paragraph>
basically I need the paragraph to be able to hold 0 to unbounded # child paragraphs...
how do I accomplish this?
See the following:
<xs:complexType name="Paragraph">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="myattribute" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
I would like this "Paragraph" type to have any number of child paragraphs
ie...the XML would look something like this
<paragraph myattribute="abc">
this is my text and i like it
<paragraph myattribute="efg">
this is some more of my text
</paragraph>
</paragraph>
basically I need the paragraph to be able to hold 0 to unbounded # child paragraphs...
how do I accomplish this?