Re: [PHP] XML parser

2010-07-13 Thread Andrew Ballard
On Tue, Jul 13, 2010 at 10:14 AM, ppps...@gmail.com wrote: > Hello. I have html: > Header > Paragraph 1 > > Paragraph n > > > Header > Paragraph 1 >     > Paragraph n > > > need to parse it like this array: > array( > [0] => array( > 'h3' => 'header' , > 'p' => array( > [0] => 'Paragrap

Re: [PHP] XML parser error ..

2006-11-21 Thread onewaylife
dear Richard I have written a PHP file in that with help of php document tags i have created XML file in that PHP file and in xml file i have taken care of the tag. with regards rakesh Richard Lynch wrote: > > On Tue, November 21, 2006 2:30 am, onewaylife wrote: >> the file is : - >> >

Re: [PHP] XML Parser set option

2005-12-20 Thread Derek Williams
Amol, Pretty sure that it means the white space after a tag. for example: Joe Dempsey or (even worse, with CR) Joe Dempsey Amol Hatwar wrote: Hi, The PHP Manual entry for xml_parser_set_option lists an option called: XML_OPTION_SKIP_WHITE. I really couldn't decipher what this optio

Re: [PHP] XML Parser set option

2005-12-20 Thread ondrej
Amol Hatwar wrote: Hi, The PHP Manual entry for xml_parser_set_option lists an option called: XML_OPTION_SKIP_WHITE. I really couldn't decipher what this option enables or disables. The manual entry itself is a bit terse: "Whether to skip values consisting of whitespace characters." Doodling a

RE: [PHP] XML Parser doesn't work when moved....

2004-11-15 Thread Gryffyn, Trevor
Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 10, 2004 4:18 PM > To: Jay Blanchard; [EMAIL PROTECTED] > Subject: RE: [PHP] XML Parser doesn't work when moved > > > [snip] > Having added the following line > > echo "XML Error " . &

RE: [PHP] XML Parser doesn't work when moved....

2004-11-10 Thread Jay Blanchard
[snip] Having added the following line echo "XML Error " . xml_error_string(xml_get_error_code($covadParser)) . "\n"; just after the xml_parse PHP is reporting "not well-formed (invalid token)" so I will have to explore. [/snip] Having beaten my head against the wall for severqal hours now, I am

RE: [PHP] XML Parser doesn't work when moved....

2004-11-10 Thread Jay Blanchard
[snip] /* let's parse! */ if($readXML = fopen(XMLDIR."testRecp.xml", "r")){ while($lineXML = fread($readXML, 4096)){ //echo $lineXML . "\n"; xml_parse($covadParser, $lineXML, feof($readXML)); } } else { echo "COULD NOT READ XML FILE\n"; } /* c

Re: [PHP] XML Parser Functions - problem interpreting an xml file

2004-04-12 Thread Kai Hackemesser
This didn't help, since the problem is in an file which doesn't pass the PHP interpreter. Next idea? Regards, Kai "Chris Boget" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > > I send you a part of the XML file (- content), maybe you can tell me why > > it cant be interpreted

Re: [PHP] XML Parser Functions - problem interpreting an xml file

2004-04-12 Thread Chris Boget
> I send you a part of the XML file (- content), maybe you can tell me why it > cant be interpreted. It looks like it doesn't like the http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] xml parser und bestehende variablen - multilinguale app

2003-11-23 Thread Evan Nemerson
How are you parsing the XML? If you read the values into a PHP variable, and you're confident in the contents of the string, you could use eval()... Also, preg_replace_callback() may be useful. If you provide a bit more example, it may be more easy to help. In any case, I think your variable va

Re: [PHP] XML Parser

2003-10-24 Thread Scott Fletcher
Thanks! Oh Boy! :-) For the repeating of the same XML name tag, I guess one way to do it is to depend on the higher up XML name tag that group them together. Chopped them off and use it somehow. For ex. --snip-- *** *** --snip-- This may help Now I'm going to have to decide on DOM

Re: [PHP] XML Parser

2003-10-24 Thread Ray Hunter
I would probably make this a new thread since it is a new question. Anyways, the answer to your question is no, unless you make that happen. When you use the xml parser in php you are using a expat parser (stream-oriented parser) that you set up (register) handlers for. So when the parser encoun

Re: [PHP] XML Parser misbehaves with &

2003-08-19 Thread [EMAIL PROTECTED]
Timo Boettcher wrote: Hi Jeff, Nachricht vom Montag, 18. August 2003, 18:14:37: I've come across this frustrating behavior with the XML parser when it reads an escaped ampersand (&) If the xml being evaluated is: Blue, Green & Red "The ampersand character (&) and the left angle br

Re: [PHP] XML Parser misbehaves with &

2003-08-19 Thread Timo Boettcher
Hi Jeff, Nachricht vom Montag, 18. August 2003, 18:14:37: > I've come across this frustrating behavior with the XML parser when it > reads an escaped ampersand (&) > If the xml being evaluated is: Blue, Green & Red > it calls the character data handler 3 times: > the first time the $data is

Re: [PHP] XML Parser misbehaves with &

2003-08-18 Thread raditha dissanayake
Hello, It's not misbehaving and it's not illegal xml. It's a well documented fact that the character data function may be called more than once. The normal programming practice is to put the strings that are given to you at each call into a buffer. Then you write code in the end handler to pro

Re: [PHP] XML Parser misbehaves with &

2003-08-18 Thread Jeff Bearer
The data contains escaped ampersands -> & Which is as far as I know the way one represents ampersands in their data. In my post below, the value of $data the second time is "&" because it has been evaluated by the xml parser. And btw xmllint has no problems with & On Mon, 2003-08-18 at 12:41,

Re: [PHP] XML Parser misbehaves with &

2003-08-18 Thread Justin Farnsworth
This is normal. You have illegal XML there, as it should be in . I have run across this, and have to clean it up with an awk script. Ampersand is a no-no. Just running xmllint on the file will tell you about the problem(s). _justin Jeff Bearer wrote: > > I've come across this frustrating beh

Re: [PHP] XML Parser Problem

2003-06-07 Thread Dustin Pate
Thank you. I checked my php_info() and sure enough --disable_xml is present. Are there any Gentoo Users out there having this problem as well? Any Gentoo Users out there that might be able to help me work out a solution? I have 'xml' and 'xml2' in my make.conf use flags. D > On Sun, 8 Jun 2003,

Re: [PHP] XML Parser Problem

2003-06-07 Thread Philip Olson
On Sun, 8 Jun 2003, Dustin Pate wrote: > Fatal error: Call to undefined function: xml_parser_create() in > /home/httpd/rootdir/sstats/includes/XPath.class.php on line 1410 > > I now get this error on my phpsysinfo page. I have changed nothing in my > install except for updating recently. My Lin

Re: [PHP] XML Parser additional

2002-10-01 Thread Justin French
You want to retain ownership, AND take contributions? Generally it'd be an either/or proposition wouldn't it? Justin French on 02/10/02 2:26 PM, Khalid El-Kary ([EMAIL PROTECTED]) wrote: > hi, > i wanted to add something, i want to receive contribtions from developers as > well to make the pa

Re: [PHP] XML Parser Question

2002-09-11 Thread OrangeHairedBoy
Hmmm...hadn't thought of that... I guess I could use that if there's no alternative... What I really need is the ability to do this: I'm convinced that there just has to be a way! :) But thanks though...I'm writing that down now... Lewis "Peter J. Schoenster" <[EMAIL PROTECTED]> wrote in

Re: [PHP] XML Parser Question

2002-09-11 Thread Peter J. Schoenster
On 12 Sep 2002 at 0:13, OrangeHairedBoy wrote: > Yeah...i should have mentioned I had thought of that...but I really > don't want to :) > > It just doesn't look right when it's a math expression. Know a permenant > solution? > I want to be able to handle the tag , but the parser > keeps tel

Re: [PHP] XML Parser Question

2002-09-11 Thread OrangeHairedBoy
Yeah...i should have mentioned I had thought of that...but I really don't want to :) It just doesn't look right when it's a math expression. Know a permenant solution? Lewis "Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > could you change t

RE: [PHP] XML Parser Question

2002-09-11 Thread Martin Towell
could you change the "<" to "<" or "%3C" or something similar? -Original Message- From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] XML Parser Question I've been reading the XML parser documention, and I'm no

Re: [PHP] XML-parser

2002-05-13 Thread Analysis & Solutions
On Mon, May 13, 2002 at 02:00:49PM +0200, [EMAIL PROTECTED] wrote: > > Has anybody a good link to a tut or something else.. http://www.analysisandsolutions.com/code/phpxml.htm -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution

Re: [PHP] XML Parser is a bit strict

2001-01-18 Thread Francois Beauregard
At 11:52 01-01-19 +1100, Brian White wrote: >As far as I understand XHMTL, it simply HTML made XML compliant, which >basically means you always have to put in an end tag. True enough... There is a tool though on the w3c call HTMLTidy that you can pass your HTML code through and will give you bac

Re: [PHP] XML Parser is a bit strict

2001-01-18 Thread Brian White
( I am still not used to this mailing list - I keep hiting "Reply" and only sending it to the poster. ) Part of the XML standard is that every element will have start and end tags. HTML actually uses the syntax of SGML, which allows some tags to have their end tags omitted - therefore, on som

Re: [PHP] XML Parser is a bit strict

2001-01-18 Thread Chris Adams
On 18 Jan 2001 14:28:16 -0800, Chris Lee <[EMAIL PROTECTED]> wrote: >I dont know if you can use XHTML syntax in XML, I dont think it works like >this, I think XML is more strict. XHTML *is* XML - it's just HTML reformulated so that a valid XHTML document can be parsed by a normal XML parser witho

RE: [PHP] XML Parser is a bit strict

2001-01-18 Thread Mike Heath
Really the only way around it is to not use XML since your HTML has to have closing tags to make the XML document valid. As far as any XML parser is concerned your HTML is not HTML anymore but is more XML. -Mike -Original Message- From: Butler, Shaun [mailto:[EMAIL PROTECTED]] S

Re: [PHP] XML Parser is a bit strict

2001-01-18 Thread Chris Lee
I dont know if there is a work around for this, but Im under the understanding that XML has to (not an option) have a closing tag on everything. I know in XHTML they have exeptions, but its slacker. ie. invalid valid or I dont know if you can use XHTML syntax in XML, I dont think it works li