This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Trying to "generate sample xml" from an XSD (xml schema) with one recursive element, Netbeans enters into an infinite loop. This is the xsd source: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xml.netbeans.org/schema/RecursiveSchema" xmlns:tns="http://xml.netbeans.org/schema/RecursiveSchema" elementFormDefault="qualified"> <xsd:complexType name="product_type"> <xsd:sequence> <xsd:element name="part" type="tns:part_type"></xsd:element> <xsd:element name="product" type="tns:product_type"></xsd:element> </xsd:sequence> <xsd:attribute name="name" type="xsd:string"/> </xsd:complexType> <xsd:complexType name="part_type"> <xsd:sequence/> <xsd:attribute name="name" type="xsd:string"/> </xsd:complexType> <xsd:element name="product" type="tns:product_type"/> </xsd:schema> This generates: <ns0:product xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns0='http://xml.netbeans.org/schema/RecursiveSchema' xsi:schemaLocation='http://xml.netbeans.org/schema/RecursiveSchema RecursiveSchema.xsd'> <ns0:part name=""></ns0:part> <ns0:part name=""></ns0:part> <ns0:part name=""></ns0:part> <ns0:part name=""></ns0:part> <ns0:part name=""></ns0:part> <ns0:part name=""></ns0:part> <ns0:part name=""></ns0:part> AND NEVER ENDS. Thank you.
Sonali, please extend from one of the visitors that break cycles.
*** Issue 144860 has been marked as a duplicate of this issue. ***
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss