Forum Moderators: open

Message Too Old, No Replies

how to include musicmoz directory xlm

         

tyggemannen

10:03 am on Mar 19, 2006 (gmt 0)

10+ Year Member



Hi.
i want to use the data from musicmoz on my site directory and have downloaded a big xml file (65mb) with all the data. How can I show this data on my site?

I try to do as I do with my news page, to include it, but I get:

[CaRP] XML error: not well-formed (invalid token) at line 34724

choster

9:18 pm on Mar 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Short answer: it appears that your input XML is not valid because of a stray or bad character. Not being familiar with either Carp or the schema used by MusicMoz, I would guess the most likely cause is some improperly coded character or entity—XML is picky about how characters are represented. Contact MusicMoz about fixing it.

Longer answer: there are only five non-numeric character entities in XML: & < > " and '. HTML entities like   or © have no meaning in plain jane XML, but sometimes they make their way into the document because of a sloppy conversion or failure to validate input.

For example, let's take ö. The character which ö represents in HTML should be entered in an XML document directly as ö or as a numeric entity like ö (decimal) or ö (hex). Or if you plan to output as HTML and want to preserve the entity, the ampsersand needs to be escaped as ö. But there's no such thing as ö in standard XML, so your parser will throw a fit if it sees it.

Again, that's just a guess, but that's where I'd start.