From: Tom B. <to...@tb...> - 2008-07-28 19:02:31
|
Escaping it as it's output from PHP is the only way to do it properly. Have your PHP convert the & to &. As is, it's not well-formed XML. -- Thomas Bradford http://www.tbradford.org/ On Jul 28, 2008, at 10:55 AM, Peter Saffrey wrote: > > I have a PHP page that builds an XML file and uploads into an eXist > database. One of the elements in these files is a URL and I've run > into problems when the URL contains arguments. As an example, if I > have the element: > > <bib:url>hbmedcentral.nih.gov/botrender.fcgi? > blobtype=html&artid=1316260\\</bib:url> > > When uploading, I get the error message > > org.xml.sax.SAXParseException: The reference to entity "artid" must > end with the ';' delimiter. > > I'm sure there is some way of escaping this string to have it upload > exactly as it is, without trying to interpret the & as a control > character. Any ideas? > > Peter > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open |