Problem with recursive XML schema
Posted: Mon Jun 07, 2004 5:40 pm
Hi
when I create an XML and assign the following XML schema I cannot choose a document root from the combo box.
If I assign the schema by hand I cannot type '<' after '</name>'.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="sub">
<xs:sequence>
<xs:element name="name" type="xs:string" nillable="true"/>
<xs:element name="owner" type="sub" nillable="true"/>
</xs:sequence>
</xs:complexType>
<xs:element name="root" type="sub"/>
</xs:schema>
Without the 'owner' element it works fine.
Best Regards
Stephan
when I create an XML and assign the following XML schema I cannot choose a document root from the combo box.
If I assign the schema by hand I cannot type '<' after '</name>'.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="sub">
<xs:sequence>
<xs:element name="name" type="xs:string" nillable="true"/>
<xs:element name="owner" type="sub" nillable="true"/>
</xs:sequence>
</xs:complexType>
<xs:element name="root" type="sub"/>
</xs:schema>
Without the 'owner' element it works fine.
Best Regards
Stephan