XML IDREF another XML document?

2.1k Views Asked by At

Is there an easy way to use the IDREF attribute to reference an element in a different XML document? If not, any suggestions on how to do it differently? What I'm trying to do is make a digital character sheet for a table-top RPG, and I want the XML document that contains all of the character-specific information to reference a master list of all of the merits. Sorry if this is a dumb question, I'm fairly new to using XML, or even any programming language, and have just discovered how much XML can make things easier.

1

There are 1 best solutions below

0
On BEST ANSWER

An IDREF is a type defined to reference other element IDs within the same document. Therefore, you will first need to use "XInclude" to reference your external file and then use IDREFs as this was one single file. A similar question you might find useful is available here