[xml] Fatal error 5 for libxml 2.9.0 but working in 2.6.32



I have a 13 MB xml file that is causing problems for libxml 2.9.0 but works fine for 2.6.32.

I am using PHP 5.3.25 with the domdocument loadxml function.

2 weird circumstances:
1) The offending entry doesn't cause problems in smaller XML files.
2) The offending entry only causes problems if it is the last entry in the XML file.

My temporary fix is to add an extra entry at the end of the XML document. Notice that the good XML is larger.
13108670 http://signbank.org/signpuddle2.0/data/spml/sgn28.good.xml
13108514 http://signbank.org/signpuddle2.0/data/spml/sgn28.bad.xml

I've zipped the XML as well.
3245550 http://signbank.org/signpuddle2.0/data/spml/sgn28.good.zip
3245530 http://signbank.org/signpuddle2.0/data/spml/sgn28.bad.zip

I was able to generate an error message:
---Fatal Error 5: Extra content at the end of the document Line: 98323 Column: 3
--<term><![CDATA[Hebrews08v06b--NLT]]></term>

The problem line appears to be the previous line:
<text>M582x518S2ff00482x483S1dc02510x484S1f502567x483S28806542x497 M571x518S32107482x483S15a37548x494S15a37522x494 M519x518S1f727482x496S22f07498x483 M543x544S14401515x462S14409457x481S22522500x457S22526487x475S2e854517x494S2e818469x512 M540x520S10011519x490S2ff00482x483S2df08518x462 M536x518S20500498x507S20500465x507S10043506x483S2d600473x493 M544x522S15340508x497S15348477x497S2890a515x478S28912456x478 M568x530S2ff00482x483S1f502553x497S15d01498x507S28806526x518 M518x634S10010487x514S15a56491x622S37700499x595S15a20494x568S2ff00482x483 R566x518S32107482x483S1f748523x482S1f740546x482 R518x518S2ff00482x483S15a10494x432S22a04494x464S32107482x483 S38700463x496 M514x537S15a5a487x464S14c50487x486S2e732486x521 M519x519S15a57481x486S15a51496x496S22a04506x481 M568x530S2ff00482x483S1f502553x497S15d01498x507S28806526x518 M518x599S10010486x513S2ff00482x483S22f04481x549S20348480x584S15a51484x572 S38800464x496</text>

Any ideas or suggestions would be appreciated.

Regards,
∼Steve


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]