You are here: Re: parsing an xml file via php « PHP Programming Language « IT news, forums, messages
Re: parsing an xml file via php

Posted by Snef on 11/09/07 11:54

Hi,

I used clsParseXML. This is the header from the file itself:
/*
XML Parser Class
by Eric Rosebrock
http://www.phpfreaks.com

Class originated from: kris@h3x.com AT: http://www.devdump.com/phpxml.php

Usage:

<?php
include 'clsParseXML.php';

$xmlparse = &new ParseXML;
$xml = $xmlparse->GetXMLTree('/path/to/xmlfile.xml');

echo "<pre>";
print_r($xml);
echo "</pre>";
?>

The path to the XML file may be a local file or a URL.
Returns the elements of the XML file into an array with
it's subelements as keys and subarrays.

*/

Maybe you can find this ;)

(I made a little adjustment so that I could use 'in memory' xml (= string with xml).

thomas wrote:
> hey everybody,
>
> does anyone know a good internet page where I can found some examples
> how to parse xml files by php.....
>
> all the pages I found give me too little information, so I was not able
> to solve my whole prob.
>
>
> thanks in advance,
> thomas
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация