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
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 : -
>>
>
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
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
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 " .
&
[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
[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
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
> 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
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
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
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
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
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
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
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,
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
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,
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
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
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
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
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
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
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
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
( 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
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
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
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
30 matches
Mail list logo