Re: Patch for parsing CDATA sections.
Lars Magne Ingebrigtsen <[email protected]> Sat, 17 Jul 2004 12:18:45 +0200
| Newsgroups | gmane.lisp.clocc.general |
|---|---|
| Organization | Programmerer Ingebrigtsen |
| Message-ID | <[email protected]> |
Sam Steingold <[email protected]> writes: > Please try the appended patch. Works perfectly; thanks. By the way, in a different feed we got stuff with ' entities in them. This isn't defined in the entities.xml file, but it's supposed to be a single quote. (The w3 page referred to in the entities.xml file doesn't list this entity, but it's apparently a standard entity. But I'm not XML expert. :-) Here's a patch that adds the entity: cvs diff: Diffing . Index: entities.xml =================================================================== RCS file: /home/cvs/backoffice/data/entities.xml,v retrieving revision 1.1 diff -u -w -r1.1 entities.xml --- entities.xml 14 Jul 2004 13:43:11 -0000 1.1 +++ entities.xml 17 Jul 2004 10:13:58 -0000 @@ -1,4 +1,5 @@ <!-- http://www.w3.org/TR/WD-html40-970708/sgml/entities.html --> +<!ENTITY apos CDATA "'" -- single quote --> <!ENTITY nbsp CDATA " " -- no-break space --> <!ENTITY iexcl CDATA "¡" -- inverted exclamation mark --> <!ENTITY cent CDATA "¢" -- cent sign --> -- (domestic pets only, the antidote for overdose, milk.) [email protected] * Lars Magne Ingebrigtsen ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click