note 50971 rejected from function.xml-parser-create by nlopess
| From: | nlopess@php.net | Date: | Tue, 15 Mar 2005 14:52:15 +0000 |
| Subject: | note 50971 rejected from function.xml-parser-create by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86486@lists.php.net to get a copy of this message | ||
Note Submitter: casaboy at directbox dot com
----
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