Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#90 – Invalid for XML

open
nobody
None
5
2008-12-01
2008-12-01
rob_webset
No

Hi David,

We have hit a strange one again :-)

When using the interface to retrieve XML for a given topic. (The one used by ScmBugs Web Reports) we are receiving back - in a certain case, – inside the XML description part.

Unfortunately this means that it is invalid XML.

Perl Error:

[Mon Dec 01 13:00:04 2008] [error] [client 10.100.83.115] , referer: /scmbug-cgi/bug_report.pl?run_report=N
[Mon Dec 01 13:00:04 2008] [error] [client 10.100.83.115] undefined entity at line 7, column 19, byte 218 at C:/Perl/lib/XML/Parser.pm line 187, referer: /scmbug-cgi/bug_report.pl?run_report=N

XML Spy Error:
File test.xml is not valid.
No external markup declarations present - referenced entity '–' must be declared.
Error location: topics / topic / description
Details
WFC: Entity Declared: No external markup declarations present - referenced entity '–' must be declared.

Any ideas how to get around this one?

Thanks

Rob

Discussion

  • David Sitsky
    David Sitsky
    2008-12-02

    Hi Rob,

    If you look at listtopics.xml.tmpl, we are piping through html_entity. There should be a template toolkit filter we can use for xml data. I'm afraid I don't have the time to look at this now. I'm guessing a plugin already exists, or we can write our own, like those in lib/Codestriker/Template/Plugin/.

    Cheers,
    David