Is there a possibility to get the XML element name of an EObject.
I used eObject.eClass().getName(). But in cases where xml structure is with xsi types, it gives the specific type instead of the generic element.
Eg: I have an xml tag <GENERIC attr1="String" xsi:type="SPECIFIC"/>
When i do eObject.eClass().getName() I get SPECIFIC. However i need GENERIC as the value.
Yes, or more generally, to get the actual XML name if there is extended
metadata, and to deal with features in feature maps, you'd to use
On 13/05/2013 3:48 PM, Pierre-Charles David wrote:
> Try eObject.eContainingFeature().getName().
> The XML tag name does not correspond to a type name but to the name of
> the (containment) feature through which the parent element/object
> contains this one.