Re: Metadata.xml files bomb out as a result of the &

From Gordon Paynter
DateMon, 4 Feb 2002 18:37:13 -0800
Subject Re: Metadata.xml files bomb out as a result of the &
In-Reply-To (20020202175945-A23179-goblin-cs-waikato-ac-nz)
Jared Potter wrote:

> > I have noticed that if there is an ampersand(&) in the metadata.xml
> > file, it will ignore the whole file. Does anyone know of any hacks
> > to get around this, and are there any other characters that I don't
> > know about that do the same?

I think your problem is that you can't use an & in a #PCDATA field
except to encode a character entity like   or & or > or
& or similar. The data in Greenstone XML are probably PCDATA
(which means either printable character data or parsable character
data, depending where you look). You'll have to escape your & to
& other wise the file will (correctly) fail to parse and be
ignored.

Gordon