Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Eclipse IDE - XML/XSD Editor Questions(XML/XSD Editor Template modifications)
Eclipse IDE - XML/XSD Editor Questions [message #1311057] Wed, 23 April 2014 11:19
Karthikeyan Rajendran is currently offline Karthikeyan Rajendran
Messages: 2
Registered: April 2014
Junior Member
Am pretty new to Eclipse and XSDs. I have couple of questions

1. When I add an Element in Design view while creating an XSD, I need to have empty Closed Element rather than Non-Empty Closed element by Default. Any clue on where to change the setting in Eclipse to accomplish this?For example am getting the below source when I add an element in Design view
<xs:element name="NewElement" type="xs:string"></xs:element>
However I want it be like
<xs:element name="NewElement" type="xs:string" />

2. When I add multiple elements into a Type via Design view, the code is getting generated on the same line continuously without a line break. Am getting like this
<xs:complexType name="RootElementType"><xs:sequence><xs:element name="Element1" type="commonids:Element1Type" maxOccurs="1" minOccurs="0"></xs:element>
but I need it to be like
<xs:complexType name="RootElementType">
<xs:sequence>
<xs:element name="Element1" type="commonids:Element1Type" maxOccurs="1" minOccurs="0" />

I appreciate any help on the above.

Thanks
Karthik
Previous Topic:SSE Folding Strategies?
Next Topic:Loading DTD Files from Jars
Goto Forum:
  


Current Time: Fri Aug 22 08:03:33 EDT 2014

Powered by FUDForum. Page generated in 0.01745 seconds