I'm trying to parse a processing instruction like this using StAX:
<?item something="<some_element></some_element>"?>
StAX doesn't appear to recognize this as a processing instruction. It finds these events:
< - CharacterEvent
?item something=" - CharacterEvent
<some_element> - StartEvent
</some_element> - EndEvent
"?> - CharacterEvent
Shouldn't the whole thing be considered a single ProcessingInstruction event?