46
| You could use an external (parsed) general entity.
You declare the entity like this:
Then you reference it like this:
A complete example:
When the XML parser reads the file, it will expand the entity reference and include the referenced XML file as part of the content.
If the "otherFile.xml" contained:
<baz>this is my content</baz>
Then the XML would be evaluated and "seen" by an XML parser as:
A few references that might be helpful:
|
Rants and ravings of a semi-autistic developer who has a hard time remembering idiotic nonsense details. Why remember it, when you know where to find it.
Thursday, April 2, 2015
Importing XML file in an XML file...
Subscribe to:
Posts (Atom)