Added by Yee-Ting Li, last edited by Yee-Ting Li on Feb 21, 2007  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Problem

You are trying to include data from another xml document into another.

You use

child XML document
<?xml version="1.0"?>
<!DOCTYPE spec [
<!ENTITY inherit SYSTEM "generic.xml">
]>

<configuration>

&inherit;
</configuration>
generic.xml
<?xml version="1.0"?>
<configuration>
...
</configuration>

Parsing gives the following error:

error in processing external entity reference at line

Solution

You must include the version tag in the <?xml?> begin line in all documents such that:

child XML document
<?xml version="1.0" encoding="ISO-8859-1"?>
...

and

generic.xml
<?xml version="1.0"  encoding="ISO-8859-1"?>

0 Comments