phpxpath-users Mailing List for Php.XPath (Page 26)
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: <mf...@mr...> - 2001-10-05 10:15:59
|
> PhpXML put allways this warnings, depending on the reporting level. I will be prepared for different providers and/or removal to new provider, that's the reason why I care about a possibly stronger reporting level. > And whats about: > <persons> > <person> > <name>Marko Fix</name> > <age>33</age> > <street/> <<<<<--- ? This is a fine solution, but here too I will prepare my code for data that wasn't built with such empty <street/>. Greetings, M.F. > </person> > <person> > <name>Humble Pie</name> > <age>23</age> > <street>Grieksstraat</street> > </person> > </persons> > > > > > Von: mf...@mr... > > Antworten an: us...@li... > > Datum: 29 Jun 2001 12:38:07 -0000 > > An: us...@li... > > Betreff: [phpXML] Re: [phpXML] Undefined Index Line 443 when opening Xml file. > > => Here are 1 new lines > > > > > > > Hoi Nigel and all, > > > > I found out, that I got a further "undefined Index"-Warning at the end of > > function get_content. > > > > This is because I have the following simple data structure: > > > > <persons> > > <person> > > <name>Marko Fix</name> > > <age>33</age> > > </person> > > <person> > > <name>Humble Pie</name> > > <age>23</age> > > <street>Grieksstraat</street> > > </person> > > </persons> > > > > When I tried to present this data in a table I have Marko Fix without a street > > and this causes the Warning. > > So I added a new Initialization to "" if not set at the end of get_content. > > This new concurrent version is enhanced here again. > > > > Again, all my inserted lines are commented with the line > > // Initialize, if empty. Added by M.F.: > > > > > > M.F. > > > > > > ----- Original Message ----- > >> From: Nigel Swinson <mailto:Ni...@Sw...> > >> To: mf...@mr... > >> Sent: Friday, June 29, 2001 1:33 PM > >> Subject: Re: [phpXML] Re: [phpXML] Undefined Index Line 443 when opening Xml > >> file. => Here are the lines > >> > >>> Yes of course I can send you this, it's attached. > >>> > >>> There are 5 lines added by me commented with the commentline: > >>> // Initialize, if empty. Added by M.F.: > >> Thanks very much :o) > >>> But now I am very frightened of concurrent versions. > >> Understandably! > >>> Don't forget to tell, if you find further uninitialized array values. > >> It's the least I can do! > >> > >> Ah it's nice working with people in the same time zone! > >> > >> Bloomin' Americans.... > >> > >> 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: <tom...@di...> - 2001-10-05 10:15:56
|
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.../ |
From: <phi...@ls...> - 2001-10-05 10:15:54
|
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.../ |
From: <sp...@or...> - 2001-10-05 10:15:51
|
PhpXML put allways this warnings, depending on the reporting level. And whats about: <persons> <person> <name>Marko Fix</name> <age>33</age> <street/> <<<<<--- ? </person> <person> <name>Humble Pie</name> <age>23</age> <street>Grieksstraat</street> </person> </persons> > > Von: mf...@mr... > Antworten an: us...@li... > Datum: 29 Jun 2001 12:38:07 -0000 > An: us...@li... > Betreff: [phpXML] Re: [phpXML] Undefined Index Line 443 when opening Xml file. > => Here are 1 new lines > > > Hoi Nigel and all, > > I found out, that I got a further "undefined Index"-Warning at the end of > function get_content. > > This is because I have the following simple data structure: > > <persons> > <person> > <name>Marko Fix</name> > <age>33</age> > </person> > <person> > <name>Humble Pie</name> > <age>23</age> > <street>Grieksstraat</street> > </person> > </persons> > > When I tried to present this data in a table I have Marko Fix without a street > and this causes the Warning. > So I added a new Initialization to "" if not set at the end of get_content. > This new concurrent version is enhanced here again. > > Again, all my inserted lines are commented with the line > // Initialize, if empty. Added by M.F.: > > > M.F. > > > ----- Original Message ----- >> From: Nigel Swinson <mailto:Ni...@Sw...> >> To: mf...@mr... >> Sent: Friday, June 29, 2001 1:33 PM >> Subject: Re: [phpXML] Re: [phpXML] Undefined Index Line 443 when opening Xml >> file. => Here are the lines >> >>> Yes of course I can send you this, it's attached. >>> >>> There are 5 lines added by me commented with the commentline: >>> // Initialize, if empty. Added by M.F.: >> Thanks very much :o) >>> But now I am very frightened of concurrent versions. >> Understandably! >>> Don't forget to tell, if you find further uninitialized array values. >> It's the least I can do! >> >> Ah it's nice working with people in the same time zone! >> >> Bloomin' Americans.... >> >> Nigel >> >> >> -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <ts...@od...> - 2001-10-05 10:15:49
|
Sent this one to the author.. guess he didn't have the time to read it... Could anyone give me an answer? -----Original Message----- From: Andreas Skoufis [mailto:ts...@od...] Sent: Monday, June 18, 2001 7:45 PM To: mp...@ph... Subject: About <phpxml\> Hello there... I work for a company doing, among other things, some internet and intranet solutions. I am currently developing some interfaces for a big application using PHP. I have extensively used your phpxml module, and it has worked extremely well for me... It's very fast, efficient and XPath is a very nice way to go. The reason you are receiving this email is about some licence issues and questions I have. First of all let me state that I don't have the slightest problem releasing all my code. I think though nobody would ever need it because I'm working on a very specific XML parser which reads from an XML document and inserts the data in an Oracle Database. And the data follows a certain DTD, so no error and consistency checking is done in my scripts (something that would be quite interesting), other than some database error checking. Also, keep in mind that my scripts will never see the light of the internet, as they are part of an intranet application. My next projects need some more interesting things so I would be releasing some classes (open source that is, as always). So that leads us to a very serious question. Do I have to release my code? If yes, where should I post them? Keep in mind that I am a very warm supporter of the FSF movement, but I can't say I really understand the license, since English isn't my native language. I deeply respect the fact you released your source and gave away a very elegant piece of work to the public, and I will do whatever you instruct me to do. The code is yours, and the way you let us users use it is absolutely you choice. Regards, Andreas Skoufis ODOS Software Ltd, Greece ts...@od... -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <sp...@or...> - 2001-10-05 10:15:25
|
To convert ' to ' can make problems in browser when you use charset=ISO-8859-1 So better delete the hole &apos entry > Von: tom...@di... > Antworten an: us...@li... > Datum: 29 Jun 2001 00:39:09 -0000 > An: us...@li... > Betreff: [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.../ |
From: <sp...@or...> - 2001-10-05 10:15:23
|
Hello tom Look at it. In <ausgabedescription> there's the <br/> (I know the structure could be optimised. :o) But I need it like this, without attributes) <newsausgaben> <ausgabe> <ausgabedate>Juni 2001</ausgabedate> <ausgabetitle>Anwendung von DURA-Schubbewehrung in dicken Bodenplatten</ausgabetitle> <ausgabeheader>Flexibles System auch bei unterschiedlichen Plattenst=E4rken</ausgabeheader> <ausgabedescription>Das baustellengerecht konzipierte DURA-Korbprogramm ist ein Schubbewehrungssystem zur Gew=E4hrleistung der Tragsicherheit querkraftbeanspruchter Zonen von Stahlbetonplatten. <br/>Dan= k rationellem und somit schnellerem Einbau erm=F6glicht DURA bei der Ausf=FChrung eine beachtliche Zeiteinsparung gegen=FCber konventionellen Verb=FCgelungsl=F6sungen auf der Baustelle.</ausgabedescription> </ausgabe> ..... </newsausgabe> > Von: rot...@ne... > Antworten an: us...@li... > Datum: 29 Jun 2001 07:04:49 -0000 > An: us...@li... > Betreff: [phpXML] Re: [phpXML] Little Question >=20 > There's something wrong with the XML class, so that if you have > <node1> > text, <node2>more text</node2> blah1 > </node> >=20 > it will output it as: > text, blah1more text. >=20 > Also, you should remove the trim() from the text handler. >=20 > ~Tom~ >=20 >=20 > -- > This message has been sent through the <phpXML/> user discussion list. To > unsubscribe, please visit > https://sslsites.de/mailinglisten/user/us...@li.../ >=20 -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <die...@ga...> - 2001-10-05 10:15:17
|
since php parser calls content handler many times per content (for all specials chars and line breaks of any kind), i worked around it by only trim()ing element content in the end element handler (ie, all calls to cdata handler are finished for that element). ----- Original Message ----- From: <rot...@ne...> To: <us...@li...> Sent: Friday, June 29, 2001 12:04 AM Subject: [phpXML] Re: [phpXML] Little Question > There's something wrong with the XML class, so that if you have > <node1> > text, <node2>more text</node2> blah1 > </node> > > it will output it as: > text, blah1more text. > > Also, you should remove the trim() from the text handler. > > ~Tom~ > > > -- > 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: <lu...@sa...> - 2001-10-05 10:15:15
|
Helloe (bis) As a little precision, I used to display the exact same xml files with Hans= =20 Anderson class.xml.php without any problem. Luc At 11:40 30/06/01 +0000, you wrote: >Hello, > >OK following is a stupid question , but I=92m not that cat ease with XML. > >I use XML to store stories (novels) and <phpxml/> to display them. > >When a CDATA section (and each paragraph is enclosed in a CDATA section to= =20 >allow use of <br> for example) is displayed all HTML tags are displayed..= =20 >as HTML tags, I mean displayed exactly as stored, apparently the browser=20 >doesn't interpret the HTML tags=85 > >Where do I screw up? > >Thanks in advance > >Luc > >PS : I receive each message from this list with a dozen of line :=20 >Reply-To: 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: <lu...@sa...> - 2001-10-05 10:15:12
|
Hello, OK following is a stupid question , but I=92m not that cat ease with XML. I use XML to store stories (novels) and <phpxml/> to display them. When a CDATA section (and each paragraph is enclosed in a CDATA section to= =20 allow use of <br> for example) is displayed all HTML tags are displayed..=20 as HTML tags, I mean displayed exactly as stored, apparently the browser=20 doesn't interpret the HTML tags=85 Where do I screw up? Thanks in advance Luc PS : I receive each message from this list with a dozen of line : Reply-To:= =20 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: <gil...@ac...> - 2001-10-05 10:15:09
|
On Fri, Jun 29, 2001 at 09:13:17AM -0000, ne...@ma... wrote: > Hi! > > phpXML it is nice. > > but not yet write_xml(); Sure, a write_xml() function would be great. I had to write a guestbook some months ago that make use of xml. That was one of the first problems I had using <phpXML/> :) Regards. Gilles. -- 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:15:03
|
Hello, I solved my HTML tags problem by emptying the following array : var $entities = array ( "&" => "&", "<" => "<", ">" => ">", "'" => "'", '"' => """ ); Am I at risk to break anything ? What is the array intended for ? Thanks in advance Luc -- 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-05 10:14:57
|
I've sent these comments to Michael shortly after downloading phpXML class, but have not received a reply, so I'm going to repost them here. 1. It would be nice to provide XML content to the class as a string instead of just in a file. 2. "'" => "&apos" in $entities is missing a semicolon. 3. I don't know why you really need to perform strtr() call in handle_character_data() - it converts ' to ' for example - what's the point? 4. You are running trim() on $text in handle_character_data() - why? This has unfortunate side effect of removing spaces that might have wanted to keep there, especially when handle_character_data() is called multiple times on the #PCDATA block because it has & entities inside.. -Andrei * I don't have a solution but I admire the problem. * -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <gil...@ac...> - 2001-10-05 10:14:54
|
Hi! Excuse me for posting this here... It seems that the mailing-list robot append the word [phpxml] in the subject, even if the subject is a reply to a message ?!? The message subject is growing each time somebody reply to a message. Is it possible to correct that ? Thanks for taking the time to read this. And excuse me, once again, for this off-topic message. Regards. Gilles -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <rot...@ne...> - 2001-10-05 10:14:52
|
There's something wrong with the XML class, so that if you have <node1> text, <node2>more text</node2> blah1 </node> it will output it as: text, blah1more text. Also, you should remove the trim() from the text handler. ~Tom~ -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <ne...@ma...> - 2001-10-05 10:14:49
|
Hi! phpXML it is nice. but not yet write_xml(); i use: == cut == function write_xml($file_name, $xml_handler){ $file_cnt = $xml_handler->get_file(); $file_cnt = str_replace('<', '<', $file_cnt); $file_cnt = str_replace('>', '>', $file_cnt); $fp = fopen ($file_name, "w"); fputs($fp, $file_cnt); fclose($fp); } == /cut == str_replace because in output string is '<' and '>' but not '<' '>' and also fine create with function load_file($file_name) else function load_string($xml_string) i.e. "load_string" - first, and "load_file" create $content (i.e. $xml_string) call "load_string" which make all needed parsing. Ilya -- 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:14:43
|
Hello all, I hope Michael P. Mehl is reading this list. It becomes dramatically urgent to set up a sourceforge-like CVS system or all this will become quickly a real mess :-)) Luc -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |
From: <ch...@ar...> - 2001-10-05 10:14:40
|
>PS : I receive each message from this list with a dozen of line : Reply-To: Me too -- 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-05 10:14:38
|
Hi! > It seems that the mailing-list robot append the word [phpxml] > in the subject, even if the subject is a reply to a message ?!? > The message subject is growing each time somebody reply to a message. > Is it possible to correct that ? Unfortunately not. I cannot control the software managing this mailing list. But if everyone takes care about posting emails I should work although. 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: <sp...@or...> - 2001-10-05 10:13:05
|
Hello all The Script works fine. The only little thing all <br/>-tags ar not parsed/put out. What could I do wrong? Greets mike -- 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-05 10:13:00
|
Hi! > Unfortunately not. I cannot control the software managing > this mailing list. But if everyone takes care about posting > emails I should work although. Ok, it's also my fault. ;-) 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: <tom...@di...> - 2001-10-04 12:15:25
|
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 |
From: <Adm...@ne...> - 2001-10-04 12:13:18
|
I wonder if you need to add a DTD? There's nothing wrong with the $xml=... syntax. Unless maybe you need to change the permissions on the .xml file? Are you accessing it from the web? :-) Addam Breen -----Original Message----- From: Ni...@Sw... [mailto:Ni...@Sw...] Sent: Friday, 29 June 2001 9:33 AM To: us...@li... Subject: [phpXML] Undefined Index Line 443 when opening Xml file. 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 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 = 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: <big...@ya...> - 2001-10-04 00:57:52
|
see previous __________________________________________________ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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-04 00:57:28
|
One other small thing...in the exportToFile() function, the xml pi string does not have an endline after it, so the xml file looks like <?xml version="1.0"?><root> <node/> </root> instead of <?xml version="1.0"?> <root> <node/> </root> Dan __________________________________________________ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |