note 50971 added to function.xml-parser-create

From: Date: Tue, 15 Mar 2005 12:39:15 +0000
Subject: note 50971 added to function.xml-parser-create
Groups: php.notes 
Request: Send a blank email to php-notes+get-86470@lists.php.net to get a copy of this message
hi volks im in trouble with this: im trying to parse/process an xml stream which looks like this to get the following values: a,b,c,d and value1..9. <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <itemsearch nr="a" isMaximum="b" de="c" a="d"> <xml> <item POS="1" tag1="value1" tag2="value2" tag3="value3" tag4="url/to/some/picturesforItem1.j01" /> <item POS="2" tag1="value4" tag2="value5" tag3="value6" tag4="url/to/some/picturesforItem2.j01" /> <item POS="b" tag1="value7" tag2="value8" tag3="value9" tag4="url/to/some/picturesforItem3.j01" /> i wrote an xsl file wich format the output and a smal php script to convert this xml using the xsl into html and this is my script <?php $xsltproc = xslt_create(); $html = xslt_process($xsltproc,"xmlfile.xml","xslfile.xsl"); if (!$html) { die("XSLT processing error:" . xslt_error($xsltproc)); } xslt_free($xsltproc); echo $html; ?> but running this returns alwas an empty html contains only this: <html><body></body></html> my question is if i am using the right processing technics and im glad if you can point me to an good parse function that will be the right one thank you ---- Manual Page -- http://www.php.net/manual/en/function.xml-parser-create.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50971 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50971&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50971&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50971&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50971&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50971&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50971&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86470) next »