[phpXML] Help with DTDs?
Brought to you by:
bs_php,
nigelswinson
From: <Adm...@ne...> - 2001-10-09 04:21:13
|
<<test.zip>> Hi all, Included in the attached test.zip file are 3 files: 1. test.php - an example script for this question 2. xmlfile_faulty.xml - an xml file that does not work with test.php (ie. it does not return the <sub> element as I intended 3. xmlfile_good.xml - an xml file that works correctly with test.php The only difference between the two xml files is at the start of the DTD (and the case of the elements)... xmlfile_good.xml: <!ELEMENT resp (response)> xmlfile_faulty.xml: <!ELEMENT CANCEL (RESPONSE)> [BTW: is XPath case-sensitive? ie. should I change //SUB to //sub?] Can anyone tell me how to change test.php to work with xmlfile_faulty.xml?? Regards, Addam Breen |