I want to parse an XMI file using jdom2, but I can't seem to get information from it. Here's an example:
element.getAttributes() -> [[Attribute: xsi:type="coremodel:Place"],[Attribute: id="p_InitialNode1"], [Attribute: OutArcs="out_InitialNode1"]]
element.getAttributeValue("id") -> p_InitialNode1
element.getAttributeValue("xsi:type") -> null
I don't understand why I have null, when I expected coremodel:Place
.
What am I doing wrong?