Trying to use XInclude with Java and resolving the fragment with xml:id
问题 I've been trying to get XInclude working in my XML document and finally have it working in Oxygen XML, which I'm using to author the XML documents. I then went to my app, written in Java, but it doesn't seem to support any form of XPointer resolution except using something like: element(/1/2). This is, obviously, an awful scheme to have to use since every time the document is edited the XPointer needs changing to reflect the new position of the node in the XML! The scheme I had working simply