TreeNodeXML
XMLTreeNode
addTreeNodeAtom
nodeAtom
addChild
newChild
LocalName
ElementText
children
values
TreeNodeAtom
AttributeLocalName
AttributeValue
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="TreeNodeXML" nsURI="http://www.example.org/TreeNodeXML" nsPrefix="TreeNodeXML">
  <eClassifiers xsi:type="ecore:EClass" name="XMLTreeNode">
    <eOperations name="addTreeNodeAtom">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="body" value="getValues().add(nodeAtom);"/>
      </eAnnotations>
      <eParameters name="nodeAtom" eType="#//TreeNodeAtom"/>
    </eOperations>
    <eOperations name="addChild">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="body" value="getChildren().add(newChild);"/>
      </eAnnotations>
      <eParameters name="newChild" eType="#//XMLTreeNode"/>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="LocalName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="ElementText" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
        eType="#//XMLTreeNode" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="values" upperBound="-1"
        eType="#//TreeNodeAtom" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="TreeNodeAtom">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="AttributeLocalName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="AttributeValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"TreeNodeXML","nsURI":"http://www.example.org/TreeNodeXML","name":"TreeNodeXML","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"XMLTreeNode","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"TreeNodeAtom","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"ordered":true,"upperBound":1,"unique":true,"name":"addTreeNodeAtom","lowerBound":0,"id":3,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"unique":true,"name":"addChild","lowerBound":0,"id":4,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"LocalName","changeable":true,"lowerBound":0,"iD":false,"id":5,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"ElementText","changeable":true,"lowerBound":0,"iD":false,"id":6,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"children","changeable":true,"resolveProxies":true,"lowerBound":0,"id":7,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"values","changeable":true,"resolveProxies":true,"lowerBound":0,"id":8,"derived":false},{"ordered":true,"upperBound":1,"unique":true,"name":"nodeAtom","lowerBound":0,"id":9,"many":false,"required":false,"eClass":"EParameter"},{"id":10,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"newChild","lowerBound":0,"id":11,"many":false,"required":false,"eClass":"EParameter"},{"id":12,"eClass":"EGenericType"},{"id":13,"eClass":"EGenericType"},{"id":14,"eClass":"EGenericType"},{"id":15,"eClass":"EGenericType"},{"id":16,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"AttributeLocalName","changeable":true,"lowerBound":0,"iD":false,"id":17,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"AttributeValue","changeable":true,"lowerBound":0,"iD":false,"id":18,"derived":false},{"id":19,"eClass":"EGenericType"},{"id":20,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":1,"target":0},{"source":1,"target":3},{"source":1,"target":4},{"source":1,"target":5},{"source":1,"target":6},{"source":1,"target":7},{"source":1,"target":8},{"source":3,"target":1},{"source":3,"target":9},{"source":9,"target":2},{"source":9,"target":10},{"source":9,"target":3},{"source":10,"target":2},{"source":4,"target":1},{"source":4,"target":11},{"source":11,"target":1},{"source":11,"target":12},{"source":11,"target":4},{"source":12,"target":1},{"source":5,"target":13},{"source":5,"target":1},{"source":6,"target":14},{"source":6,"target":1},{"source":7,"target":1},{"source":7,"target":15},{"source":7,"target":1},{"source":15,"target":1},{"source":8,"target":2},{"source":8,"target":16},{"source":8,"target":1},{"source":16,"target":2},{"source":2,"target":0},{"source":2,"target":17},{"source":2,"target":18},{"source":17,"target":19},{"source":17,"target":2},{"source":18,"target":20},{"source":18,"target":2}],"multigraph":true}