You are here: RDF parsing with php ( simplexml ? ) « PHP Programming Language « IT news, forums, messages
RDF parsing with php ( simplexml ? )

Posted by mattelau on 10/15/07 08:23

Hi all,

Here is an XML file I'd like to parse with php.
It's a mozilla install.rdf file.

<?xml version="1.0"?>
<RDF:RDF xmlns:em="http://www.mozilla.org/2004/em-rdf#"
xmlns:NC="http://home.netscape.com/NC-rdf#"
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<RDF:Description RDF:about="urn:mozilla:install-manifest"
em:id="id1"
em:name="name1"
em:version="v1"
em:creator="creator1"
em:description="desc1"
em:homepageURL="home1"
em:updateURL="update1"
em:iconURL="icon1">
<em:targetApplication RDF:resource="rdf:#$b0tbb"/>
</RDF:Description>
<RDF:Description RDF:about="rdf:#$b0tbb"
em:id="id2"
em:minVersion="2.0"
em:maxVersion="2.0.0.*" />
</RDF:RDF>


How would you do that ?
( I'd like for example, to get the version associated with id1 )

Thanks in advance !

 

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

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