{
Structure item = (Structure)groupEnum.nextElement();
if (item.getStructureType() == Structure.ELEMENT)
{
ElementDecl elementDecl = (ElementDecl)item;
Element childElem;
if (elementDecl.getSchema() != null) {
if (elementDecl.getSchema().getElementFormDefault() != null) {
if (elementDecl.getSchema().getElementFormDefault().isQualified()) {
childElem = new Element(elementDecl.getName(), "ns1", partElem.getNamespaceURI());
}
else
childElem = new Element(elementDecl.getName());
}
else
childElem = new Element(elementDecl.getName());
}
else
childElem = new Element(elementDecl.getName());
XMLType xmlType = elementDecl.getType();
if(xmlType != null && xmlType.isComplexType())
{
buildComplexPart((ComplexType)xmlType, childElem);
}