What's wrong with my XML?
May 25, 2006 12:13 PM
Subscribe
XML Character Woes: I'm getting the error Reference to undefined entity 'ldquo' (and 'rdquo, etc) when I try to open my XML files with IE or Firefox. Can you help me fix it?
I know the parser is seeing it as an entity and looking for a definition, but I can't define them in the DTD because I don't know what entities might be coming in.
I've set the elements to CDATA hoping the parser would ignore it, but that doesn't change anything. I've also tried changing the entities to the various numerical entities.
My goal is just to have valid XHTML entities in the text. These files are certainly going to be converted to HTML at some point but who knows where else they'll go. They might go back into InDesign, etc.
In case it matters: I'm getting the content from InDesign and running it against some scripts to fix them up. InDesign is giving me Unicode, and I'm converting the Unicode special characters to the 'rdquo' style html entities
posted by miniape to computers & internet (9 comments total)
1 user marked this as a favorite
Would & quot ; work better? (spaces because without them it looks like ")
posted by utsutsu at 12:34 PM on May 25, 2006