Page 1 of 1

Problem with recursive XML schema

Posted: Mon Jun 07, 2004 5:40 pm
by zas
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

Posted: Wed Jun 09, 2004 7:39 pm
by george
Hi Stephan,

Thanks for pointing this out. What happens is that the generation of required content enters in an infinite loop.
Oxygen 4.1 will handle nillable types and also has a limit on the depth of the generated content.

Best Regards,
George