Re: XML parser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 13, 2010 at 10:14 AM, pppsss7@xxxxxxxxx <pppsss7@xxxxxxxxx> wrote:
> Hello. I have html:
> <h3>Header</h3>
> <p>Paragraph 1</p>
> ....
> <p>Paragraph n</p>
>
> <div>
> <h3>Header</h3>
> <p>Paragraph 1</p>
>    ....
> <p>Paragraph n</p>
> </div>
>
> need to parse it like this array:
> array(
> [0] => array(
> 'h3' => 'header' ,
> 'p' => array(
> [0] => 'Paragraph 1' ,
> [n-1] => 'Paragraph N'
> )
> [1] => array(
> ['div'] => array (
> 'h3' => 'header' ,
> 'p' => array(
> [0] => 'Paragraph 1' ,
> [n-1] => 'Paragraph N'
> )
> ) ;
>
> maybe simple other. Which pear class i can use for this task ?
>
>
>

Why PEAR? That looks almost exactly like SimpleXML.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux