private static MappingNode createXMLPlan_defect8917() {
Namespace namespace1 = new Namespace("xsi", "http://www.w3.org/2001/XMLSchema-instance"); //$NON-NLS-1$ //$NON-NLS-2$
MappingDocument doc = new MappingDocument(true);
MappingElement root = doc.addChildElement(new MappingElement("Catalogs")); //$NON-NLS-1$
root.addNamespace(namespace1);
{
//FRAGMENT 1
MappingElement cat = root.addChildElement(new MappingElement("Catalog")); //$NON-NLS-1$
MappingElement items = cat.addChildElement(new MappingElement("Items")); //$NON-NLS-1$
MappingElement item = items.addChildElement(new MappingElement("Item")); //$NON-NLS-1$
item.setSource("xmltest.group.items"); //$NON-NLS-1$
item.setMaxOccurrs(-1);
item.addAttribute(new MappingAttribute("ItemID", "xmltest.group.items.itemNum")); //$NON-NLS-1$ //$NON-NLS-2$
item.addChildElement(new MappingElement("Name", "xmltest.group.items.itemName")) //$NON-NLS-1$ //$NON-NLS-2$
.setNillable(true);
item.addChildElement(new MappingElement("Quantity", "xmltest.group.items.itemQuantity")); //$NON-NLS-1$ //$NON-NLS-2$
}
{
//FRAGMENT 2
MappingElement cat = root.addChildElement(new MappingElement("OptionalCatalog")); //$NON-NLS-1$
cat.setMinOccurrs(0);
MappingElement items = cat.addChildElement(new MappingElement("Items")); //$NON-NLS-1$
MappingElement item = items.addChildElement(new MappingElement("Item")); //$NON-NLS-1$
item.setSource("xmltest.group.items"); //$NON-NLS-1$
item.setMaxOccurrs(-1);
item.addAttribute(new MappingAttribute("ItemID", "xmltest.group.items.itemNum")); //$NON-NLS-1$ //$NON-NLS-2$
item.addChildElement(new MappingElement("Name", "xmltest.group.items.itemName")) //$NON-NLS-1$ //$NON-NLS-2$
.setNillable(true);
item.addChildElement(new MappingElement("Quantity", "xmltest.group.items.itemQuantity")); //$NON-NLS-1$ //$NON-NLS-2$
}
{
//FRAGMENT 3
MappingElement cat = root.addChildElement(new MappingElement("OptionalCatalog2")); //$NON-NLS-1$
cat.setMinOccurrs(0);
MappingElement items = cat.addChildElement(new MappingElement("Items")); //$NON-NLS-1$
MappingElement item = items.addChildElement(new MappingElement("Item")); //$NON-NLS-1$
item.setSource("xmltest.group.items"); //$NON-NLS-1$
item.setMaxOccurrs(-1);
item.addChildElement(new MappingElement("Name", "xmltest.group.items.itemName")) //$NON-NLS-1$ //$NON-NLS-2$
.setNillable(true);
}
{
//FRAGMENT 4
MappingElement cat = root.addChildElement(new MappingElement("OptionalCatalog3")); //$NON-NLS-1$
cat.setMinOccurrs(0);
MappingElement items = cat.addChildElement(new MappingElement("Items")); //$NON-NLS-1$
MappingElement item = items.addChildElement(new MappingElement("Item")); //$NON-NLS-1$
item.setSource("xmltest.group.items"); //$NON-NLS-1$
item.setMaxOccurrs(-1);
item.addChildElement(new MappingElement("Name", "xmltest.group.items.itemName")); //$NON-NLS-1$ //$NON-NLS-2$
}
{
//FRAGMENT 5
MappingElement cat = root.addChildElement(new MappingElement("Catalog4")); //$NON-NLS-1$
MappingElement items = cat.addChildElement(new MappingElement("OptionalItems")); //$NON-NLS-1$
items.setMinOccurrs(0);
MappingElement item = items.addChildElement(new MappingElement("Item")); //$NON-NLS-1$
item.setSource("xmltest.group.items"); //$NON-NLS-1$
item.setMaxOccurrs(-1);
item.addChildElement(new MappingElement("Name", "xmltest.group.items.itemName")); //$NON-NLS-1$ //$NON-NLS-2$
}
{
//FRAGMENT 6
MappingElement cat = root.addChildElement(new MappingElement("Catalog5")); //$NON-NLS-1$
MappingElement items = cat.addChildElement(new MappingElement("OptionalItems")); //$NON-NLS-1$
items.setMinOccurrs(0);
MappingElement item = items.addChildElement(new MappingElement("Item")); //$NON-NLS-1$
item.addChildElement(new MappingElement("FixedName")) //$NON-NLS-1$
.setValue("Nugent"); //$NON-NLS-1$
}
{
//FRAGMENT 7
MappingElement cat = root.addChildElement(new MappingElement("Catalog6")); //$NON-NLS-1$
MappingElement items = cat.addChildElement(new MappingElement("OptionalItems")); //$NON-NLS-1$
items.setMinOccurrs(0);
MappingElement item = items.addChildElement(new MappingElement("Item")); //$NON-NLS-1$
item.addChildElement(new MappingElement("EmptyName")); //$NON-NLS-1$
}
return doc;
}