Skip to main content
Known Participant
January 14, 2009
Question

Parsing XML

  • January 14, 2009
  • 11 replies
  • 2287 views
I'm a bit of a noob with parsing XML with coldfusion and I could use some help with an issue.

I'm trying to parse the following XML file;
http://www.bbc.co.uk/travelnews/tpeg/en/local/rtm/rtm_tpeg.xml

and I get the following error;

Character conversion error: "Illegal ASCII character, 0xe9" (line number may be too low).
The error occurred on line 9.

I can post my code if this is helpful? But it works fine when parsing a different XML file.

Any ideas?
This topic has been closed for replies.

11 replies

Inspiring
January 14, 2009
Sam_Ham wrote:
> I'm a bit of a noob with parsing XML with coldfusion and I could use some help
> with an issue.
>
> I'm trying to parse the following XML file;
> http://www.bbc.co.uk/travelnews/tpeg/en/local/rtm/rtm_tpeg.xml
>

Well the first thing I can tell you is that Firefox says this is not
well formed XML file. And as such can't be processed as XML.

If Firefox can't do it, I doubt that ColdFusion can.

Participating Frequently
January 14, 2009
The dtd of that XML doc is:
http://www.bbc.co.uk/travelnews/xml/tpegml_en/tpegML.dtd
Which also points to:
tpegMLDataTypes.dtd
locML.dtd
ptiML.dtd
rtmML.dtd

rtmML.dtd gets its entity definitions from:
rtmML.ent

This is where I stopped digging. Your entities are all defined in .ent files that you'll have to pull down.
Sam_HamAuthor
Known Participant
January 14, 2009
Thanks Kronin,

You'll have to excuse my ignorance with XML.

How do I pull these entities down and use them?