O
Olumide
Would this be the proper method of declaring an XML element Foo that
cannot have a child element or other content?
<xs:element name="Image" type="xs:string" fixed="" nillable="true" />
The valid uses of this element in an XML document would be:
<Foo></Foo>
<Foo />
Anything else would be invalid, e.g.:
<Foo>stuff</Foo>
Thanks,
- Olumide
PS:
Its just occurred to me that
<Foo>
</Foo>
might be invalid also because of the newline character and other
whitespace characters that appear between the <Foo> and </Foo>
cannot have a child element or other content?
<xs:element name="Image" type="xs:string" fixed="" nillable="true" />
The valid uses of this element in an XML document would be:
<Foo></Foo>
<Foo />
Anything else would be invalid, e.g.:
<Foo>stuff</Foo>
Thanks,
- Olumide
PS:
Its just occurred to me that
<Foo>
</Foo>
might be invalid also because of the newline character and other
whitespace characters that appear between the <Foo> and </Foo>