Problem with recursive XML schema

Having trouble installing Oxygen? Got a bug to report? Post it all here.
zas

Problem with recursive XML schema

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply