phpxpath-users Mailing List for Php.XPath (Page 23)
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: <jb....@ca...> - 2001-10-08 13:45:50
|
* nig...@us...: > Check out http://sourceforge.net/projects/phpxmldb Thanks a lot, I didn't know of this URL. The last version fixes all of my problems. What I don't understand is why phpxml.org contains outdated information... Thanks again! -- Jean-Baptiste Quenot -- 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-08 13:45:30
|
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 was able to track down most bugs in V 1.N.4 (that only passed 70% of the test), so that V1.N.5 now passes 100%. We could now use a little help form YOU. Do you happen to have code and samples that could be of use in our test bench? Then please send it to me (bs...@us...) or Nigel (nig...@us...) We will then try to integrated those tests and track down any bugs that should show up on the way. Regards 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: <nig...@us...> - 2001-10-08 13:43:55
|
> Do you know if the maintainer of this has changed now? > Is anybody interested in forking this to be a fast, small read only XML > parser and xpath evaluator? Michael is not the maintainer anymore, he's been silent for the last 2.5 months. I seem to be looking after if for now at least. Still here, and trying very hard to find the time to be active on this project. You can get the development version from CVS, and V1.N.5 will be out as soon as we've made the development version "consistent". If you are new to the list, check out the archive, as we're looking at a 50% speed increase in 1.N.5 and you'll find 200+ messages about the development so far. I agree most usage is read only, so that will certainly be the path that we will optimise for. Cheers Nigel =========================== 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: <ph...@pe...> - 2001-10-08 13:42:21
|
On Saturday 07 July 2001 21:50, you wrote: > Daniel, > > Un petit mot ... > >Support-Assistance PHP/MySql de «Internet Pour Tous» > >http://www.i-p-t.com.fr/ :::XML/XSLT - Sablotron::: and an ISP that actually provides php with-sablot. how about that! -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <bl...@io...> - 2001-10-08 13:39:16
|
I am relatively new to the XML realm but have some good experience with PHP. I was wondering if anyone could send a code sample of a simple use of the get_file() function used as follows: 1. Read in XML and write out the contents to a new XML document. I am really just look for the behavior of the function. 2. Using a form to submit data, formatting that based on a coded template in XML string and writing out to file. If anyone has some code samples of this, I would greatly appreciate viewing them. Thank you, Robby ______________________________________________ Robby Black Consultant intercode Technologies p: 865.406.6999 f: 419.818.0185 http://www.intercodetechnologies.com/ -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <mp...@ph...> - 2001-10-08 13:37:31
|
Hi! > It becomes dramatically urgent to set up a sourceforge-like > CVS system or all this will become quickly a real mess :-)) I'm just back from the weekend and have already setup and account at sourceforge.net. Please mail your sourceforge.net usernames to mp...@ph... and I will make you to developers of the project. Best regards... Michael -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <an...@is...> - 2001-10-08 13:35:56
|
What kind of XPath expression can I use to select the names of all the child nodes? That is, given the following fragment: <publication> <foo1> .. </foo1> <foo2> .. </foo2> .. </publication> I want to get the names of all nodes under <publication>. Thanks, -Andrei * How would this sentence be different if Pi was equal to three? * -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <nig...@us...> - 2001-10-08 13:34:23
|
Good idea. Will do. Managed to get documentation sent out with 1.N.5, but didn't manage to get examples though. Will try to get this done soon. Any volunteers? :oD =========================== For the most recent version of phpxml, V1.N.X, and an archive of this list visit: http://www.sourceforge.net/projects/phpxmldb ----- Original Message ----- From: <lu...@sa...> To: <us...@li...> Sent: Wednesday, September 26, 2001 12:39 PM Subject: [phpXML] Before 1N6 > 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.../ > -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <sd...@ga...> - 2001-10-08 13:32:50
|
When I get the cdata content of an xml tag using phpxml it seems to strip out the new line characters, is that true and if so how can I have them left in? Platform is Win. Thanks, Steve Dowell Garrison Technologies -- 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-08 13:31:17
|
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 NAt 19:54 19/09/01 +0000, bo...@fi... wrote: >Hi, > >Im trying to understand how to use phpxml library >for parsing xml documets. > >The problem is, I have an xml document that is stored in >database. It is not stored in a file. Im able to >retrive it from db into a string. However I >dont know how to parse that string using phpxml. > >You have a load_file function that reads a file and >parses the XML data. In my case I need the same thing to be >done, the only problem is I dont have a file with xml >I have a string. So how do I parse a string using your phpxml library? >Note: the xml tags in that string are unknown and can be arbitrary. >I need to parse it into a structure. > >Regards, >Boulat -- 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-08 13:29:43
|
This is really incredible, this xml parser you have put together. XML in php (or more like the lack of) has been the one thing preventing our company from using PHP over some stupid priority language. Anyway, I was wondering if I could ask you a few questions about your parser (I have played with the examples and get the general gist). Is it possible to count the number of nodes matching a certain pattern...is it possible to retrieve the contents of a search...like take a chunk out of the xml data to store in another variable or object...so that you can then get subsets of that in later calls. Perhaps I could contact you a few times to get started on writing my first application with your parser so that I can be off and running? My second question is, what is the status of development on the project...are you working on Xpath more or are you beginning to focus on other aspect of the xml? Regards! 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: <ti...@di...> - 2001-10-08 13:27:46
|
> >Ultimately there should be some kind of solution where you call getData() >instead of getAttribute() with evaluate() returning an array of You know intuitively what I want to do is this. $courts = $xml->evaluate($result . '/COURTS_SEARCHED/COURT'); foreach ($courts as $court): print $court->attributes['NAME']; endforeach; I tried to make that work using the XML-DOM functions in php but something seems to be broken in the xpath function. I must say php is behind all other languages when it comes to XML and SOAP functions. I hope they have solid support with the next version. ---------------------------------------------- Tim Uckun Mobile Intelligence Unit. ---------------------------------------------- "There are some who call me TIM?" ---------------------------------------------- -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <nig...@us...> - 2001-10-08 13:27:39
|
> I've done some tests using phpXML (1.N.4) and the way it works is really > awesome, however, it does seems to crawl with larger XML documents. Agreed. And also with complex XPath on smaller/medium XML documents > I'd like to use it on a contract i'm starting in a couple of weeks, but > performance will affect my descision to use it. > > I'm really interested in what you've said below. What are the chances > phpxml/xmltree projects /will/ merge and will it provide a significant > performance increase ? If the projects don't merge, then phpxml will certainly be using the evaluate() code from xmltree. The performance increase is extremely significant. Dietrich could make better estimates than I, but I think you are talking about something in the region of 70% saving on execution time. Is that significant enough for you ;o) Nigel -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <flo...@co...> - 2001-10-08 13:26:02
|
Hi! Is there any explicit documentation about phpxml, with some usefull exemples? Thank's! -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <mp...@ph...> - 2001-10-08 13:24:28
|
Hi! I already established a sourceforge.net project for <phpXML/>, but when I tried to upload <phpXML/> to the CVS server (using WinCVS) I always receive error messages telling me that I'm allowed to write to the repository. Does anyone have experiences with sourceforge.net? Can anybody help me? Best regards... Michael -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <an...@is...> - 2001-10-08 13:22:52
|
How can I select nodes according to a wildcard, i.e. select all nodes that start with 'image'. I have nodes called 'image1', 'image2', 'image3', and so on. Does XPath support this? -Andrei "Tomorrow the sun will rise. And who knows what the tide will bring?" - Tom Hanks, in "Cast Away" -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <nig...@us...> - 2001-10-08 13:21:19
|
Are you using 1.N.4? Your attached file implies it isn't... A regex evaluate() is on the cards for V1.N.5. Check out the list archive for messages relating to speed increases and a list of known bugs that were fixed since V1.0. > Okay, now for the code...I added a function called > grab($context,$index)...what it does is, given the $context array > returned from evaluated it uses the index as specified and then rips > that xml out of the tree and spits it out... > > I also added a function for bringing in xml from a string.... > > I documented just like Mike... Cool. I'd been meaning to get round to this for a while now... Nigel =========================== 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: <o.t...@ab...> - 2001-10-08 13:19:45
|
How do I sort in phpxml on a certain attribute? Oliver Talens -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <yf...@co...> - 2001-10-08 13:18:12
|
Hi, Hope this isn't a silly question...why does the Reply-To e-mail header repeat itself almost fifty times in each e-mail I receive through this list? Can that be fixed? Young -- 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-08 13:16:38
|
Oliver, <buddy_list> <buddy id="1"> <lastname>Doe</lastname> <firstname>John</firstname> <isniceguy>Yes</isniceguy> </buddy> </buddy_list> $myatrributesarray = array(); $listofmybuddies = $xml->evaluate('/buddy_list/buddy'); foreach ( $listofmybuddies as $buddy ) { $myatrributesarray = $xml->get_attributes($buddy); $id = $myatrributesarray['id'] $firstname = $xml->get_attributes($buddy ."/firstname[1]"); $lastname = $xml->get_content($buddy ."/lastname[1]"); $isniceguy = $xml->get_content($buddy ."/isniceguy[1]"); } En réponse à o.t...@ab...: > thanks, > > but I know how to use XPath functions. I only don't know how to get > the > functions of xmlphp to work. For example the get_content functions > returns > nothing. The evaluate function works. -- 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-08 13:15:04
|
This refers to the exportAsXml, which then points to the internal _export function. When I try a very simple example "<root><node>hey</node></root>" or "<root><node>hey</node><node>all</node></root>" I get extra lines below the <node> children of <root> and I believe it has to do with the last "\n" that is added in the _export function. I took it out and it seems to work fine, because a few lines up, we are checking whether more children exist (and if so we enter a \n) so it seems this line is unnecessary. Now, I might find that even this solution could cause a problem, but the point it, it isn't right now, so there must be some solution. Later, Dan __________________________________________________ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com -- 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-08 13:13:21
|
En réponse à nig...@us...: > Hi folks. As I hinted earlier, I am trying to set up > an archive for this list. Heloo, This is great news... what could be cool too is a How-TO... (I can help for simple stuff) Luc -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <nig...@us...> - 2001-10-08 13:11:46
|
> By the way the latest release of xml.php is on sourceforge (I don't have the > url handy if you don't find it I'll post it to you this evening) > > Luc The link you are looking for is http://sourceforge.net/projects/phpxmldb I've been trying to get an archive up and running, but the www.geocrawler.com archiver that is supported by sourceforge.net seems to drop messages. ie about 30 dropped in 150. Can anyone out there recommend an alternative, or are we just going to have to make do with only 80% of messages getting archived? http://lists.sourceforge.net/lists/listinfo/phpxmldb-phpxml-arc (Not all the messages are there yet. I've submitted all June and July's messages so far) Cheers, Nigel (Stand in maintainer of PhpXml until Michael breaks his vow of silence....) -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <pie...@wa...> - 2001-10-08 13:10:13
|
Hello, I need some help with the substringData function, it doesn't return anything. Am I doing something wrong? Here is the XML file: --------------------- <NewsML> <Catalog Href="http://www.afp.com/dtd/AFPCatalog.xml"/> <NewsEnvelope> <DateAndTime>20010608T133354Z</DateAndTime> </NewsEnvelope> </NewsML> Here is the code: ----------------- $xml = new XPath($filepath); $newsidentifier_eval = $xml->evaluate("NewsML/NewsEnvelope/DateAndTime"); echo $newsidentifier_eval[0] . " -- line1\n"; echo $xml->nodeName($newsidentifier_eval[0]) . " -- line2\n"; echo $xml->substringData($newsidentifier_eval[0]) . " -- line3\n"; Result: ------- /NewsML[1]/NewsEnvelope[1]/DateAndTime[1] -- line1 DateAndTime -- line2 -- line3 Thanks in advance. -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <an...@is...> - 2001-10-08 13:07:59
|
I see that only version 1.0 is available for download from phpxml.org, but I've seen many error reports and fixes come through this list. Where can I download the latest version? -Andrei * Software never has bugs. It just develops random features. * -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |