[phpXML] Re: [phpXML] Re: substringData doesn't work

2001-10-01 Thread bs_php
Maybe missing '/' Try : foreach ($listofNews as $news) { $t = $xml->getAttributes ("/NewsML/Catalog"); echo $t['Href']; echo $xml->getData("/NewsML[1]/NewsEnvelope[1]/DateAndTime[1]"); } -- Sam Blum <[EMAIL PROTECTED]> === For the most recent version of phpxml,

[phpXML] Re: [phpXML] substringData doesn't work

2001-10-01 Thread bs_php
Send nice, little and *complete* samples with a *litte* XML sample. I'm I have to study longer then 3 min I won't help. -- Sam Blum <[EMAIL PROTECTED]> === For the most recent version of phpxml, V1.N.X, and an archive of this list visit: http://www.sourceforge.net/pro

[phpXML] sorting

2001-10-01 Thread bs_php
There is no such thing like sorting or sorted input. XPath supports you with *finding* and fetching. You will have to sort by your own. -- Sam Blum <[EMAIL PROTECTED]> === For the most recent version of phpxml, V1.N.X, and an archive of this list visit: http://www.sour

[phpXML] Re: [phpXML] RE: [phpXML] Bug in setAttributes

2001-09-30 Thread bs_php
>How do I sort in phpxml on a certain attribute? >Oliver Talens ?? be more specific. give an sample. -- Sam Blum <[EMAIL PROTECTED]> === For the most recent version of phpxml, V1.N.X, and an archive of this list visit: http://www.sourceforge.net/projects/phpxmldb -- T

[phpXML] Re: [phpXML] Re: [phpXML] [xpath.class.php] Question (stupid one ?)

2001-09-30 Thread bs_php
Hi Luc, my answer will be surprising: "Everything is OK". The problem is in the code of M.Mehl you use to do the query. It's missing quotes !: Sample: //person/*[contains(., 'Jos')]/..( Not//person/*[contains(., Jos)]/.. ) Correct line 134 (+/-) $government = $xml->evaluat

[phpXML] Re: [phpXML] problem with the class

2001-09-28 Thread bs_php
Get the newest version! -- Sam Blum <[EMAIL PROTECTED]> === For the most recent version of phpxml, V1.N.X, and an archive of this list visit: http://www.sourceforge.net/projects/phpxmldb -- This message has been sent through the user discussion list. To unsubscribe, p

[phpXML] Re: [phpXML] RE: [phpXML] Patches since 1.N.5

2001-09-27 Thread bs_php
Answer to > What do you mean by this correction (or I don't see the difference): > 1997c2000 > < if (ereg('^\w*$', $predicate)) { > --- > > if (ereg('^\w*$', $predicate)) { There the same, except for a space at the end of line. You are looking at CVS diff. CVS default diff also to recon

[phpXML] Help us make XPath.class.php (former XML.php) even better.

2001-09-26 Thread bs_php
To all that use XPath.class.php (former XML.php) Oliver Talens posed the question: "Did anyone check the code before releasing it?" Indeed I actually wrote a test bench with about 60 tests. But all current tests are only querying a XML file NOT modifying it. With help of the test bench I wa

[phpXML] [phpXML] Error

2001-09-06 Thread bs_php
Sorry but to help you you must: 1) Use the newest version unter https://sourceforge.net/projects/phpxmldb/ 2) To analyse the problem pass *the* (=1) query you are trying to evaluate and the XML sample (as simple as possible) that delivers the wrong set of paths. 3) Don't lose the respon