phpxpath-users Mailing List for Php.XPath (Page 25)
Brought to you by:
bs_php,
nigelswinson
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(346) |
Nov
(8) |
Dec
(21) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(30) |
Feb
(13) |
Mar
|
Apr
(3) |
May
(70) |
Jun
(26) |
Jul
(48) |
Aug
(22) |
Sep
(1) |
Oct
(4) |
Nov
|
Dec
|
| 2003 |
Jan
(3) |
Feb
(3) |
Mar
(11) |
Apr
(3) |
May
(4) |
Jun
(3) |
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(2) |
| 2004 |
Jan
(4) |
Feb
(2) |
Mar
(2) |
Apr
(2) |
May
|
Jun
|
Jul
(12) |
Aug
(8) |
Sep
(2) |
Oct
(2) |
Nov
(3) |
Dec
|
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2006 |
Jan
(3) |
Feb
(7) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
|
From: <ti...@di...> - 2001-10-05 10:31:49
|
I am looking for an alternative to the following syntax
$courts = $xml->evaluate($result . '/COURTS_SEARCHED/COURT');
foreach ($courts as $court):
$courtinfo = $xml->get_attributes($court);
print $courtinfo['NAME'];
endforeach;
is there a shorter way of getting at that attribute.
I triad a variety of @ syntax but nothing I did seems to work.
:wq
Tim Uckun
US Investigations Services/Due Diligence
http://www.diligence.com/
--
This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../
|
|
From: <bs...@us...> - 2001-10-05 10:31:44
|
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 <bs...@us...>
===========================
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 <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../
|
|
From: <ti...@di...> - 2001-10-05 10:30:11
|
At 09:51 PM 9/20/2001 +0000, you wrote: >I have an xml document that looks like this.. ><?xml version="1.0"?> <RESULTS COUNT="0"/> > >When I use the load from string function it causes an error message not >allowing me to get at the count=0 part. Isn't that a valid XML structure? Nevermind my bad.. :wq Tim Uckun US Investigations Services/Due Diligence http://www.diligence.com/ -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <pe...@zu...> - 2001-10-05 10:30:00
|
> I clicked on the link at the bottom but I can't read German. > How do you unsubscribe from this list?? First you have to login with eMail an passwort. Then you get on a page where you have to click on the button named "Abmelden". If you do'nt know your password, write your email-address on the first page in the section "Passwort vergessen". Then you get a mail. Petra -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <lu...@sa...> - 2001-10-05 10:29:47
|
En réponse à d_o...@we...: > PEAR), but I think that these are too > complex and a bit inconsistent. Oswald, Don't take what follows as agressive: I you want to rewriyte alone a "better PEAR" I'm not sure this is the best way to go.. joining PEAR very actiuve community would probably be a better approach (except if the next step in your agenda is "TODO : Reinvent the wheel") Luc -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <le...@en...> - 2001-10-05 10:29:23
|
I completely agree with this! :( HTML mails really s.... Dejan >RE: [phpXML] Bug in setAttributesHi folks, > >would you all be so kind and switch off that ugly HTML in your >eMails? > >TIA, Axel. >-- >FLYnet FLYer Kommunikationsgesellschaft mbH >Weender Landstr. 46 37073 Gttingen 0551-499750 >http://www.flynet.de a.t...@fl... -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <big...@ya...> - 2001-10-05 10:29:21
|
I know the evaluate function is under review right now and I realize
that it is very complex...however, I thought of one out that should
definitely be in place...if a user specifies the full path
like /root[1]/node[1]/child[1]
it should just return immediately
if(in_array($path,array_keys($this->nodes))) {
return array($path);
}
why even look?
Dan Allen
--
This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../
|
|
From: <bs...@us...> - 2001-10-05 10:29:18
|
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 <bs...@us...> =========================== 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 <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <lu...@sa...> - 2001-10-05 10:27:45
|
You're right Sam, I wrote too quickly without checking...
Luc
En réponse à bs...@us...:
> Maybe missing '/'
> Try :
>
> foreach ($listofNews as $news) {
> $t = $xml->getAttributes ("/NewsML/Catalog");
> echo $t['Href'];
> echo $xml->getData("/NewsML[1]/NewsEnvelope[1]/DateAndTime[1]");
> }
>
> --
--
This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../
|
|
From: <bs...@us...> - 2001-10-05 10:26:13
|
>How do I sort in phpxml on a certain attribute? >Oliver Talens ?? be more specific. give an sample. -- Sam Blum <bs...@us...> =========================== 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 <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <bs...@us...> - 2001-10-05 10:25:26
|
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 <bs...@us...> =========================== 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 <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <ti...@di...> - 2001-10-05 10:25:02
|
I have an xml document that looks like this.. <?xml version="1.0"?> <RESULTS COUNT="0"/> When I use the load from string function it causes an error message not allowing me to get at the count=0 part. Isn't that a valid XML structure? :wq Tim Uckun US Investigations Services/Due Diligence http://www.diligence.com/ -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <bs...@in...> - 2001-10-05 10:24:56
|
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 response we send you ;-) Sam -- sb <bs...@in...> -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <lu...@sa...> - 2001-10-05 10:23:23
|
En réponse à nig...@us...: > Ok, I have finished bouncing all the messages so far to this list to > geocrawler and there is now a searchable archive of this list dating > back to the weekend of it's creation. Nigel you're fantastic..; :: Luc -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <a.t...@fl...> - 2001-10-05 10:23:17
|
RE: [phpXML] Bug in setAttributesHi folks, would you all be so kind and switch off that ugly HTML in your eMails? TIA, Axel. -- FLYnet FLYer Kommunikationsgesellschaft mbH Weender Landstr. 46 37073 Göttingen 0551-499750 http://www.flynet.de a.t...@fl... -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <ber...@or...> - 2001-10-05 10:21:46
|
Litl question: what is the array $entities for ? The content is not converted as it should be, nothing happens - or I just didnt get the point. Why I need this: a must use breaks ( <br> ), &, and other special characters... Hope someone understands me.... Cheers ben -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <lu...@sa...> - 2001-10-05 10:21:42
|
Typo..typo...typo.. Its version 1N4 not 1.0 At 20:09 19/09/01 +0000, you wrote: >Boulat, > >Version 1 has a fucntion to load a string : > >$xml->load_string ($mywonderfullstring); > >You can get it from : >http://sourceforge.net/projects/phpxmldb > >Luc -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <bs...@us...> - 2001-10-05 10:21:37
|
Get the newest version! -- Sam Blum <bs...@us...> =========================== 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 <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <lu...@sa...> - 2001-10-05 10:21:32
|
Nigel, Before releasing 1N6 it would be a Good Thing (tm) to release a 1N5-style version of original examples (government for example) to avoid the zillions of question I have about : "how does this new way of Xpath.class.php-ing work ???" Luc -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <lu...@sa...> - 2001-10-05 10:20:43
|
En réponse à lu...@sa...: > $firstname = $xml->get_attributes($buddy ."/firstname[1]"); is obviously : $firstname = $xml->get_content($buddy ."/firstname[1]"); Luc -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <Adm...@ne...> - 2001-10-05 10:19:11
|
Hi... I clicked on the link at the bottom but I can't read German. How do you unsubscribe from this list?? Addam -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <rem...@he...> - 2001-10-05 10:19:08
|
Hello, Is it possible to get phpxml to work with php3 ?? Remco -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
|
From: <mf...@mr...> - 2001-10-05 10:16:13
|
Hoi,
I had the same problem.=20
Very simple: Mehl don't initialize his arrays. He wants the array values =
to be 0, "" or false then and this works with some php configurations =
but not with yours and mine.
So take the xml.php and insert the line
if ( !isset($this->ids[$path]) ) $this -> ids[$path] =3D 0;
before line 433 and your problem should be solved. Be aware that the =
problem occurs also on other lines in xml.php.
Unfortunately, after your change your xml.php has another line count =
then and discussion with other users is dependend on same line number.
success!
--=20
Marko Faldix
M+R infosysteme
Hubert-Wienen-Str. 24 52070 Aachen
Tel.: 0241-93878-16 Fax.:0241-875095
E-Mail: mf...@mr...
----- Original Message -----=20
From: Ni...@Sw...=20
To: us...@li...=20
Sent: Friday, June 29, 2001 1:33 AM
Subject: [phpXML] Undefined Index Line 443 when opening Xml file.
=20
Hi there. Firstly thankyou for phpxml. I think it's greate and can't =
wait to use it!
I've found what I think is a bug though and wondered if you could help =
me. When I try to parse the attached xml file with xmlphp V1 I get the =
following error:
Error=20
scripts/php/xml.php
Line 443: Error: 8: Undefined index: /DownloadDb
I've attached the script that I am running it from too if you want to =
see that I am calling your class correctly. As all I'm doing is =
creating the class, I don't think I'm doing anything wrong! Essentially =
all I am doing is "$xml =3D new XML("downloads.xml");" and I get the =
above error.
Can anyone help me, or has no-one signed up to this list yet. :o)
Also is this list going to be archived somewhere?
Nigel
|
|
From: <tom...@di...> - 2001-10-05 10:16:10
|
Philip:
FWIW - I have _not_ made any of the other changes that have been posted -
so maybe that's part of it.
When you get a chance - set up a test case reverting to the original v1.0
xml.php except with the changes that I made (at least the one so you can
get remote files ;-).
BTW - I am running the RSS/RDF script on both PHP 4.0.6 under Win32
and 4.0.4pl1 on FreeBSD - both running Apache server.
Cheers,
Tom
At 06:14 PM 6/29/01 +0000, phi...@ls... wrote:
>Hi Tom,
>
>Thanks for getting back to me. I believe I have made all of the changes. I
>have made a few changes that people from the list have provided so I dont
>know if there is a conflict somewhere in there. I will double check, but I
>am under the assumption that I have made all of your changes.
>
>
>Philip Cohen
>---------------
>Webmaster
>Large Scale Biology Corporation
>(707) 446-5501 x354
>phi...@ls...
>
> > -----Original Message-----
> > From: tom...@di...
> > [mailto:tom...@di...]
> > Sent: Friday, June 29, 2001 10:46
> > To: us...@li...
> > Subject: [phpXML] Re: [phpXML] My changes to xml.php -and- an RSS/RDF
> > parser
> >
> >
> > Hi Philip,
> >
> > (I'm the one who sent the RSS/RDF parser example)
> >
> > Did you make the changes to the xml.php file that I mentioned in my
> > original post? Just trying to make sure that that isn't the
> > source of the
> > problem before we go any farther.
> >
> > Pls advise...
> >
> > Tom Henry
> >
> > At 05:12 PM 6/29/01 +0000, phi...@ls... wrote:
> > >I am trying to use the RDF/RSS Parser, but I receive the
> > following error for
> > >any file that I try;
> > >
> > >Warning: Invalid range end in /home/httpd/html/xml.php on line 1866
> > >phpXML error: While parsing the XPath expression "//channel" an empty and
> > >therefore invalid node-test has been found.
> > >
> > >Am I missing something?
> > >
> > >
> > >Philip Cohen
> > >---------------
> > >Webmaster
> > >Large Scale Biology Corporation
> > >(707) 446-5501 x354
> > >phi...@ls...
> > >
> > > > -----Original Message-----
> > > > From: tom...@di...
> > > > [mailto:tom...@di...]
> > > > Sent: Thursday, June 28, 2001 17:39
> > > > To: us...@li...
> > > > Subject: [phpXML] My changes to xml.php -and- an RSS/RDF
> > parser example
> > > >
> > > >
> > > > Hello all,
> > > >
> > > > ===================================================
> > > > My changes to "xml.php"
> > > >
> > > > Near line 125
> > > > // var $entities = array ( "&" => "&", "<" => "<", ">" =>
> > > > ">","'" => "&apos", '"' => """ );
> > > > // == Error: in the val for "'" the semicolon is missing in "&apos"
> > > > // Also tried alternates of ’ and ‘ (for "'")
> > > > but no help
> > > > // DANGER The substitutions for ' and " have been removed ==
> > > > by TJH ===
> > > > var $entities = array ( "&" => "&", "<" => "<", ">"
> > > > => ">");
> > > >
> > > >
> > > > Near line 200
> > > > function load_file ( $file )
> > > > {
> > > > // Check whether the file exists and is readable.
> > > > // if ( file_exists($file) && is_readable($file) ) // Does
> > > > not work
> > > > for remote files
> > > > if ( $file ) // === TJH === allows me to read remote
> > > > files (i.e. via
> > > > http:// request)
> > > > // is there a better way to do this for remote files ???????
> > > >
> > > >
> > > > ===================================================
> > > > My first attempt -- a RSS/RDF parser
> > > >
> > > > Attached is for parsing and rendering RSS/RDF files -- I got it
> > > > working but
> > > > I'd appreciate comments on the coding - if feels like a real
> > kludge but I
> > > > see no other way to do it.
> > > >
> > > > Your comments on the coding will be appreciated.
> > > >
> > > > ===================================================
> > > >
> > > >
> > > > Many thanks to M.M. for phpXML!
> > > >
> > > > Sincerely,
> > > > Tom Henry
> > >
> > >
> > >--
> > >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.../
>
>
>--
>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.../
|
|
From: <phi...@ls...> - 2001-10-05 10:16:05
|
Hi Tom,
Thanks for getting back to me. I believe I have made all of the changes. I
have made a few changes that people from the list have provided so I dont
know if there is a conflict somewhere in there. I will double check, but I
am under the assumption that I have made all of your changes.
Philip Cohen
---------------
Webmaster
Large Scale Biology Corporation
(707) 446-5501 x354
phi...@ls...
> -----Original Message-----
> From: tom...@di...
> [mailto:tom...@di...]
> Sent: Friday, June 29, 2001 10:46
> To: us...@li...
> Subject: [phpXML] Re: [phpXML] My changes to xml.php -and- an RSS/RDF
> parser
>
>
> Hi Philip,
>
> (I'm the one who sent the RSS/RDF parser example)
>
> Did you make the changes to the xml.php file that I mentioned in my
> original post? Just trying to make sure that that isn't the
> source of the
> problem before we go any farther.
>
> Pls advise...
>
> Tom Henry
>
> At 05:12 PM 6/29/01 +0000, phi...@ls... wrote:
> >I am trying to use the RDF/RSS Parser, but I receive the
> following error for
> >any file that I try;
> >
> >Warning: Invalid range end in /home/httpd/html/xml.php on line 1866
> >phpXML error: While parsing the XPath expression "//channel" an empty and
> >therefore invalid node-test has been found.
> >
> >Am I missing something?
> >
> >
> >Philip Cohen
> >---------------
> >Webmaster
> >Large Scale Biology Corporation
> >(707) 446-5501 x354
> >phi...@ls...
> >
> > > -----Original Message-----
> > > From: tom...@di...
> > > [mailto:tom...@di...]
> > > Sent: Thursday, June 28, 2001 17:39
> > > To: us...@li...
> > > Subject: [phpXML] My changes to xml.php -and- an RSS/RDF
> parser example
> > >
> > >
> > > Hello all,
> > >
> > > ===================================================
> > > My changes to "xml.php"
> > >
> > > Near line 125
> > > // var $entities = array ( "&" => "&", "<" => "<", ">" =>
> > > ">","'" => "&apos", '"' => """ );
> > > // == Error: in the val for "'" the semicolon is missing in "&apos"
> > > // Also tried alternates of ’ and ‘ (for "'")
> > > but no help
> > > // DANGER The substitutions for ' and " have been removed ==
> > > by TJH ===
> > > var $entities = array ( "&" => "&", "<" => "<", ">"
> > > => ">");
> > >
> > >
> > > Near line 200
> > > function load_file ( $file )
> > > {
> > > // Check whether the file exists and is readable.
> > > // if ( file_exists($file) && is_readable($file) ) // Does
> > > not work
> > > for remote files
> > > if ( $file ) // === TJH === allows me to read remote
> > > files (i.e. via
> > > http:// request)
> > > // is there a better way to do this for remote files ???????
> > >
> > >
> > > ===================================================
> > > My first attempt -- a RSS/RDF parser
> > >
> > > Attached is for parsing and rendering RSS/RDF files -- I got it
> > > working but
> > > I'd appreciate comments on the coding - if feels like a real
> kludge but I
> > > see no other way to do it.
> > >
> > > Your comments on the coding will be appreciated.
> > >
> > > ===================================================
> > >
> > >
> > > Many thanks to M.M. for phpXML!
> > >
> > > Sincerely,
> > > Tom Henry
> >
> >
> >--
> >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.../
--
This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../
|