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,
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
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
>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
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
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
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
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
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