XML parser
| From: | pppsss7@gmail.com | Date: | Tue, 13 Jul 2010 14:14:35 +0000 |
| Subject: | XML parser | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-306866@lists.php.net to get a copy of this message | ||
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 ?