Community
Participate
Working Groups
In 3.0.1, the wizard always generates the root element with a start/end tag pair separated by a line delimiter. When the root element is defined as having EMPTY content, given that this makes little sense, the wizard will generate an invalid document.
This is still reproducible in WTP 3.2
What specific schema or DTD did you use?
Created attachment 162154 [details] Example DTD with empty root element This is the example DTD I used.
Yeah, there's some logic in org.eclipse.wst.xml.core.internal.contentmodel.util.DOMWriter.XMLVisitor.visitElement(Element) which says to always print a new line if the element is the root element, regardless of whether or not it has element content.
Created attachment 172711 [details] Patch changed if statement.
Looks good to me. Thanks, Rakesh.
Code committed.