phpxpath-users Mailing List for Php.XPath (Page 21)
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: <spr...@ho...> - 2001-10-08 15:12:07
|
My first thought was to have a couple methods access and store content in a file until the full xml is requested. Then I realized doing that would not save much memory because the node structure is what's taking up so much space. A previous post about phpxmldb got me thinking about the opposite of phpxmldb. How about creating an SQL schema that maps directly to phpxml's internal structure. That way, any XPath query can be easily converted to an SQL query. The initial parse of an XML file would be quite slow because of all the inserts it would require, but the speed of XPath queries would only be reduced by the time it takes for executing one sql query. The memory problem, which some developers cannot get around, could be eliminated this way. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <ob...@eu...> - 2001-10-08 15:10:34
|
Hello, I have a problem with the class: the order of the elements are not respected. Maybe someone has already encounter this problem and has a fix. See example below. In a tag "Datacontent", there are five tags, 2 named "media" and 3 named "p", the two "media" tags are placed before the others tags when evaluated, but in the source, they are places between the others. Rem: the "DataContent" tag is at the 7th level of the document, it has been simplified for the example. Could you please tell me if it is a normal behaviour of the class? This doesn't happend in other cases. XML Source: ----------- .... <DataContent> <media media-type="image" style="leftSide"><media-reference mime-type="" data-location="#photo0" /></media> <p>Les demi-finales des Internationaux de France de tennis proposent vendredi d'un...</p> <p>Cédric Pioline fut en 1998 le dernier Français demi-finaliste..</p> <media media-type="image" style="rightSide"><media-reference mime-type="" data-location="#photo1" /></media> <p>Grosjean sera beaucoup plus frais...</p> </DataContent> PHP Code: --------- ... $newstext_eval = $xml->evaluate("/DataContent/*"); foreach ($newstext_eval as $partoftext) { echo $partoftext . "\n"; } Result: ------- ... DataContent[1]/media[1] DataContent[1]/media[2] DataContent[1]/p[1] DataContent[1]/p[2] DataContent[1]/p[3] What I expect is: ----------------- ... DataContent[1]/media[1] DataContent[1]/p[1] DataContent[1]/p[2] DataContent[1]/media[2] DataContent[1]/p[3] Thanks __ Olivier -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <inf...@aj...> - 2001-10-08 15:09:00
|
Bonjour phpxml, Le dimanche 8 juillet 2001 à 12:46:26, vous écriviez : >> Un petit mot ppcu> ... >> >Support-Assistance PHP/MySql de «Internet Pour Tous» >> >http://www.i-p-t.com.fr/ :::XML/XSLT - Sablotron::: ppcu> and an ISP that actually provides php with-sablot. how about that! Yes, IPT provides PHP4.0.6 with sablot 0.60 What do you want exactly. Use this private adress : "IPT - Support PHP/MySql" <php...@i-...> -- Cordialement, Daniel mailto:inf...@aj... ---------- Support-Assistance PHP/MySql de «Internet Pour Tous» http://www.i-p-t.com.fr/ :::XML/XSLT - Sablotron::: -- -- 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-08 15:07:06
|
Hoi, > Sorry if my question is stupid.. is this a fork ??? I don't know every technical term yet: What is a fork? Instrument to eat? As long as sourceforge doesn't work I am very relieved Nigel summarizes the different fixes and want him to go ahead with it. -- Marko Faldix M+R infosysteme Hubert-Wienen-Str. 24 52070 Aachen Tel.: 0241-93878-16 Fax.:0241-875095 E-Mail: mf...@mr... -- 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 15:05:32
|
Petra, Try, $CONTENT_list = $xml->evaluate('/CONTENT'); foreach ( $CONTENT_list as $CONTENT ) { $DATE = $xml->get_content($CONTENT.'/DATE[1]'); $CONTENTTYPE = $xml->get_content($CONTENT.'/CONTENTTYPE[1]'); $HEADLINE = $xml->get_content($CONTENT.'/NEW[1]/HEADLINE[1]'); $NEWSBODY = $xml->get_content($CONTENT.'/NEW[1]/NEWSBODY[1]'); echo $HEADLINE.'<p>'.$NEWSBODY.'<hr size="1" noshade>'; } En réponse à pe...@zu...: > Hi ! > > I've testet the XML parser first time today - and it works great. > > I've only one problem: > > XML-Example: > > <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> > <CONTENT> > <DATE value="1">2001-09-06 14:45:12</DATE> > <CONTENTTYPE>plain/text - news</CONTENTTYPE> > <NEW> > <HEADLINE>Motorola bringt das Handy zum Aufziehen</HEADLINE> > <NEWSBODY>06.09.01 - Zum Thema regenerative ....</NEWSBODY> > </NEW> > </CONTENT> > > With the function evaluate I can retrieve the Information in the the > <NEW> tag, with > $CONTENT = $xml->evaluate("//NEW"); > foreach ( $CONTENT as $NEW ) { > $HEADLINE = $xml->get_content($NEW."/HEADLINE[1]"); > $NEWSBODY = $xml->get_content($NEW."/NEWSBODY[1]"); > echo $HEADLINE."<p>".$NEWSBODY."<hr size="1" noshade>"; > } > > > But how can retrieve the information in the DATE and CONTENTTYPE -Tag > ???? > > Thx for help ! > > Petra -- 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 15:03:59
|
On Wed, 18 Jul 2001, Ni...@Sw... wrote: > So write one :o) > > Mail it round we all get to use it. I'll encorporate it into my > version too so that when I mail round 1.N.3 it'll have that in it too. > > Welcome to Open Source. It's not a license to sit back and be lazy, > it's an oppertunity to benefit from others hard work and to share your > own. No need to preach, I'm well aware of what Open Source is. ;-) http://www.zend.com/comm_person.php?id=24 -Andrei -- 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 15:02:19
|
Perfect !!! Thanks a lot Liz At 21:17 03/08/01 +0000, you wrote: >Hi > >You might try here http://apps.xmlschema.com/schema_source.htm for >information about XML Schemas and DTDs available for public use (indistry >dependent too). > >The issue of Attributes VS Elements is a hot debate. Some say one. Some say >the other. > >With XML DTDs you 'do' have a little more control over a DTD, less control >with Elements. >Here is are some articles about the topic. >http://wdvl.com/Authoring/Languages/XML/Tutorials/DoingIt/eltsVSattrs.html > >http://www.personal.u-net.com/~sgml/contexts.doc > >Hope this helps >Liz -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <spr...@ho...> - 2001-10-08 15:00:46
|
I'm using phpXML to export/import object heirarchies in an application server. I haven't run into the memory limit yet, but when the application server starts getting some real use people may want to back up an entire site. I'm thinking of creating an extension of phpXML that stores node content in a temporary file instead of keeping it in memory. The method set_external_content() will write to a file pointer and then set some node attributes like ext_ctnt_position and ext_ctnt_length. The method get_external_content() will use those attributes to seek to that position in the file and grab the specified content. Any thoughts on this? Pitfalls? Interest? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- 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 15:00:19
|
I have the following code: $cats = $xml->evaluate("//SCAN/IP[@value=".$ip_ip."]/VULNS[1]/CAT"); foreach ($cats as $cat) { $cat_atts = $xml->get_attributes($cat); $vuln_cat = $cat_atts["value"]; $vuln_port = $cat_atts["port"]; $vulns = $xml->evaluate("//SCAN/IP[@value=".$ip_ip."]/VULNS[1]/CAT[@value=".$vuln_cat ."]/VULN"); foreach ($vulns as $vuln) { ...................... On the first pass thru $cat I get only the $vulns for that $cat, however on the second $cat I get the $vulns for the first and second $cat as can be seen below. /SCAN[1]/IP[1]/VULNS[1]/CAT[1] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[1] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[2] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[3] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[4] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[5] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[6] /SCAN[1]/IP[1]/VULNS[1]/CAT[2] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[1] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[2] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[3] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[4] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[5] /SCAN[1]/IP[1]/VULNS[1]/CAT[1]/VULN[6] /SCAN[1]/IP[1]/VULNS[1]/CAT[2]/VULN[1] /SCAN[1]/IP[1]/VULNS[1]/CAT[2]/VULN[2] /SCAN[1]/IP[1]/VULNS[1]/CAT[2]/VULN[3] /SCAN[1]/IP[1]/VULNS[1]/CAT[2]/VULN[4] Is this the way its supposed to work and any suggestions on how to get around this would be greatly appreciated. Thanks in advance for any help, Steve Dowell -- 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 14:58:46
|
yes you could not do this yous should use cvs via a ssh shell, and it seems tha wincvs does not allow this you should the do it using a shell Read the doc at sourceforge At 05:55 4/07/01 +0000, you wrote: >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.../ -- 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 14:54:05
|
I agree that we really need some kind of function to insert an XML fragment into the XML tree. Ie Node::InsertNode(DocumentFragment) where DocumentFragment is a string containing an XML fragment. As it is, it would be an absolute nightmare to try to insert something like "This is the <B>sentence</B> data to be held below a child". This function is however a few months away. (Unless someone else writes it?) The $entities array is only actually used in 2 places in the code. One is in the XML character data handler, the other is in the evaluate function to encode your query. Every time I look at this bit of code I have to work out why. If you can work out a better solution, let us know but I'm afraid at the moment I'm struggling to even pin down the problem, never mind suggest a solution... If you try to appendData($path, '<') you will screw up your xml document, so you could insert whatever you like. Probably shouldn't do this, probably should encode it, but at least it allows us some kind of insertion of CDATA/xml fragment. So if you appendData then write to file, then read back in again you will have a valid XPath class again. ... sorry, feel like I'm talking junk here. I should check in my changes and go to bed.... 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: <lu...@sa...> - 2001-10-08 14:52:31
|
At 20:05 03/08/01 +0000, you wrote: >Go immediately over > >http://www.w3.org OK I know the W3C website.. but : 1) regarding my question about phpxml w attributes VS element => I doubt strongly they will publish docs about "is attribute a better choice for a phpxml processing"... 2) About my question regarding a standrd DTD for a normal Website => W3C is an interesting think tank but if you know a precise URL where I could find this kind of stuff pealse give it to me !! I don't need high level discussion about the semantic Web.. I just would like to know is a basic set of DTD suitable for a normal website existe .... Luc -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <sh...@co...> - 2001-10-08 14:50:56
|
I apologize if this may have been asked before, but since there are no list archives available.... My parsing routine is now working fine. However, with large XML files (3MB for example) it runs out of memory. Is there any way around this? I realize I could add more memory but is there any programmatic solution? : Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in Amy Strycula, Creative Director Coolshopping.com http://www.coolshopping.com http://www.coolshopping.tv (412) 366-7545 voice (412) 366-8528 fax -- 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 14:49:22
|
> My file's header just says 1.0, no more details than that. But, I downloaded > the latest and the suspect area seems to be unchanged. Here is what I > believe is suspect. The are that begins as follows, on line 1492: > > // Check whether the operator is a - sign. > if ( $operator == "-" ) > > My xpath looks like this: > file://map/association[translate(@from-class,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','a bcdef > ghijklmnopqrstuvwxyz')='User']"; > > When I remove the hyphen from the dtd, schema, xpath, etc, the query works > find. But, with a hyphen, the class strips the hyphen and returns an empty > result. I could just remove the hyphen forever, but the hyphen is valid as > far as I know. So, I'll continue to look at the code. Known bug. Will be fixed in 1.N.5 (I think). Basically it sees [translate(@from-class,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvw xyz')='User'] And turns it into translate(@from - class,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')='User' The XPath evaluate() function in phpxml thus far is slow and has bugs. It's been completely re-written to use regular expressions and is looking to be much much faster and contain less bugs. So we're on the case, but I ain't promising when you'll see 1.N.5, as I don't want to dissapoint you and be late! :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: <le...@en...> - 2001-10-08 14:47:44
|
Unfortunatelly we should wait untill the author release new versions... Best regards >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=3F > ______________________________ Dejan Lekic developer, MySQL DBA, sysadmin http://dl.9mb.net |
From: <ts...@od...> - 2001-10-08 14:46:13
|
>If there is a strong feeling from the members of this list that I should not discuss 1.N.X releases on this list, >then let me know and I'll stop posting them. Given that there have been 20 or so >downloads to date, I would presume this isn't the case? I believe there is a strong feeling for the opposite. Since Michael seems quite busy this time, it's always nice to have updates. And I don't believe it's a fork, since no work is being done to the original project. You seem to me much more like the current temporary maintainer of the project. I say keep up the good work (since there hasn't been any opposition from Michael himself). TsEA -- 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-08 14:44:35
|
Hi, just patched phpxml 1.N.5: // OLD -------------------------------------------------- function setAttributes($absoluteXPath, $attribute) { // The attributes parameter should be an associative array. if (!is_array($attributes)) return; // Add the attributes to the node. if (isSet($this->nodes[$path]['attributes'])) { $this->nodes[$path]['attributes'] = array_merge($this->nodes[$path]['attributes'], $attributes); } else { $this->nodes[$path]['attributes'] = $attributes; } } Tell me where the $path variableis set and why the parameter $attribute is called $attributes in the function... // NEW -------------------------------------------------- function setAttributes($absoluteXPath, $attributes) { // The attributes parameter should be an associative array. if (!is_array($attributes)) return; // Add the attributes to the node. if (isSet($this->nodes[$absoluteXPath]['attributes'])) { $this->nodes[$absoluteXPath]['attributes'] = array_merge($this->nodes [$absoluteXPath]['attributes'], $attributes); } else { $this->nodes[$absoluteXPath]['attributes'] = $attributes; } } BTW, did anyone check the code before releasing it? How else could one miss those bugs like the "$this ->" thing and the setAttributes-function, that did not work at all. CU, Axel -- a.t...@fl... PS, soory for my bad english... -- 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 14:41:22
|
At 17:07 18/07/01 +0000, Ni...@Sw... wrote: >Welcome to Open Source. It's not a license to sit back and be lazy, > it's an oppertunity to benefit from others hard work and to share your own. Hello, I'm not sure that Andrei is the right candidate for this kind of advice ;-)))) 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 14:39:46
|
Any idea where? I don't speak German so Bablefish goes on strick after I've been looking for a while.... ----- Original Message ----- From: <le...@en...> To: <us...@li...> Sent: Friday, August 10, 2001 4:10 PM Subject: [phpXML] RE: [phpXML] Setting up an archive of this list. > > I think archive of phpXML mailing list is made automatically. > > Best regards > > Dejan > > > -- > 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: <ga...@wh...> - 2001-10-08 14:37:45
|
Hi, I can't, for the life of me, get the following working: $newNode = $calendarXML->add_node("/calendar[1]/month[normalize-space(@number)='01']/da y[normalize-space(@number)='02']","entry"); $calendarXML->add_content($newNode,"something"); I've checked my syntax and it appears to be fine but no matter what I do it won't add the node in. Does anybody have any ideas? I was hoping to use this method to help me to handle a calendar system quicker. Regards, Gareth -- 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 14:36:03
|
> I completely agree with this! :( > HTML mails really s.... Well sorry I completely don't. :o) I'm sorry if this causes inconvenience, but that is what multipart/alternative was created for, and that's what I send and that's what I will continue to send. I know much of the CS world uses Pine and other CMD line mailers, but the additional formatting that html allows makes it my preferred choice of mail format. May I recommend IMAP to you all (as an alternative to POP or telnet), then you can access your mailbox using any gui on any OS using a wide variety of mail clients (including pine/elm/etc). Failing that just switch to a mailer that supports multipart/alternative MIME body parts, then you'll never see the "ugly" html body parts. Or perhaps you could write youself a mail script that filters out "Content-Type: text/html;" MIME body parts when there is a text/plain available? I have no idea what the membership is on this list, 50 ish I'd guess, possibly as many as 100, but unless a substantial proportion "demand" text only, then I will not be switching off HTML just to cater for what I believe to be the minority. Sorry. 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: <gi...@bt...> - 2001-10-08 14:34:06
|
Hi 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. 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 ? Thanks Girish ----- Original Message ----- From: <nig...@us...> To: <us...@li...> Sent: Friday, August 17, 2001 12:07 AM Subject: [phpXML] Re: [phpXML] [phpXML] I did some modifications... [..cut..] > Yip. Execution speed is currently crippling this project. Dietrich has > done some really interesting work that uses regexes to speed up the > evaluate() as opposed to all the horrid recursion that it currently does. > I'm currently in discussion with him to see if we can merge the xmltree and > phpxml projects so that we can take advantage of the speed increases that he > has made. [..cut..] > 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.../ |
From: <phi...@ls...> - 2001-10-08 14:32:29
|
> 2) About my question regarding a standrd DTD for a normal Website > I just would like to know is a basic set of DTD suitable for a > normal website existe .... Try HTML 4.01 or XHTML 1.0. They are the 'standard' dtd's of the web. > What I'm looking for is a set of dtd describing a text, a menu, a > newsfeed and > so on. If you are looking for feeds for syndication, Try RSS or RDF. They are both described in detail at w3.org and xml.com. Good luck. Philip Cohen --------------- Webmaster Large Scale Biology Corporation (707) 446-5501 x354 phi...@ls... -- 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 14:30:54
|
On Wednesday 04 July 2001 20:42, you wrote: > > Though I was a bit surprised that, since there was only a single node for > 'government', "context" still required the "/government[1]" syntax. > > Many thanks for the hint - I never would have guessed that the [1] was > needed to define a singular node > > Tom it's an array. a bit like seats in a theatre or train: you can't say 'tell me who's sitting in seat', you have to define which seat, even if only one seat is occupied - or even if no seat is occupied. -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <inf...@aj...> - 2001-10-08 14:27:49
|
Bonjour shop, Le lundi 9 juillet 2001 à 16:50:08, vous écriviez : scc> BasePrice $BasePrice = $xml->get_content($Product."/Pricing[1]/BasePrice[1]"); scc> ProductRef Url $T = $xml->get_attributes( $Product."/Path[1]/ProductRef[1]"); echo $ProducRefUrl = $T['Url']; -- Cordialement, Daniel mailto:inf...@aj... ---------- Support-Assistance PHP/MySql de «Internet Pour Tous» http://www.i-p-t.com.fr/ :::XML/XSLT - Sablotron::: -- -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |