milesegan / xmls

simple xml parser in common lisp
http://common-lisp.net/project/xmls/
Other
7 stars 1 forks source link

XMLS bug? - embedded processing instructions #1

Open alanruttenberg opened 13 years ago

alanruttenberg commented 13 years ago

Hi,

XMLS is dying on what is apparently legal XML (live and learn) that contains a processing instruction inside a tag. I include the portion below. Both emacs nxml mode and W3C's XML validator agree it is legal. Example below. The error occurs at "<?xpacket" as the element parsing code next calls content, which doesn't allow for pis.

-Alan

<?xml version="1.0" encoding="ISO-8859-1" ?>

xmp:CreatorToolSkim: cgpdftops CUPS filter/xmp:CreatorTool xmp:CreateDate2011-10-10T17:13:18-04:00/xmp:CreateDate xmp:ModifyDate2011-10-10T17:13:18-04:00/xmp:ModifyDate /rdf:Description dc:formatxml/dc:format dc:title rdf:Alt CDT_2011_Chapter1.pdf/rdf:li /rdf:Alt /dc:title dc:creator rdf:Seq rdf:liAlan Ruttenberg/rdf:li /rdf:Seq /dc:creator /rdf:Description pdf:ProducerAcrobat Distiller 10.1.1 (Macintosh)/pdf:Producer /rdf:Description xmpMM:DocumentIDuuid:5f798648-e9f4-d14e-b3a3-d0dfe11d9d34/xmpMM:DocumentID
milesegan commented 13 years ago

Thanks for the bug report. I must admit I haven't given this library much attention for quite a while now. These days I'm pretty busy writing iOS apps. If you're willing to submit a patch I'd be grateful but it's unlikely I'll have time to look into this myself.