[phpXML] RE: [phpXML] Help with DTDs?
Brought to you by:
bs_php,
nigelswinson
From: <Adm...@ne...> - 2001-10-09 04:07:15
|
ah... i thought i had tried with //SUB and //sub, but evidently not. xml->evaluate() is INDEED case-sensitive! Thanks Nigel, Addam -----Original Message----- From: Ni...@Sw... [mailto:Ni...@Sw...] Sent: Thursday, 19 July 2001 10:46 AM To: us...@li... Subject: [phpXML] Help with DTDs? > 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 file://SUB to file://sub?] > > > Can anyone tell me how to change test.php to work with xmlfile_faulty.xml?? You seem to be looking for Sub not Subs in test.php. From my experiences phpxml is case sensitive to content, so it is probably case sensitive with element names too. It's easy enough to test. A friend of mine did some investigation and could find no evidence of cas-insensitive matching in the XPath spec. A weakness that we will have to address. I've not researched this myself yet though. Nigel -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |