sawmaster
03-31-2009, 09:38 PM
Hey
I got some XML i need to convert. i'm trying to make a web-based mail system using xml and php.
the raw xml: http://71.193.112.221:8888/tools/testins/simplemail/userdata/192.168.1.1.xml
and my xsl file: http://71.193.112.221:8888/tools/testins/simplemail/maily.xsl
these work great.
that is... if my xml file looks like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../maily.xsl"?>
<amail>
<from>Ben</from>
<subject>Welcome to Simple Mail!</subject>
<message>This is the most simple mail system ever. It uses PHP, and xml. Hope you like it!</message>
</amail>
as you see, each message is rapped up in the <amail> tag. if there's more, eg
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../maily.xsl"?>
<amail>
<from>Ben</from>
<subject>Welcome to Simple Mail!</subject>
<message>This is the most simple mail system ever. It uses PHP, and xml. Hope you like it!</message>
</amail>
<amail>
<from>Ben</from>
<subject>What's up?</subject>
<message>Hey there! Whats up?</message>
</amail>
<amail>
<from>Ben</from>
<subject>Oh good!</subject>
<message>Oh good! That's good to hear.</message>
</amail>
, then it messes up and my result is a blank page. here's a messed up xml file because there's over 2 messages.
http://71.193.112.221:8888/tools/testins/simplemail/userdata/error.xml
This error occurs when there's 2 or over AMAIL tags.
Does anybody have a solotion?
Thanks in advance, Ben.
I got some XML i need to convert. i'm trying to make a web-based mail system using xml and php.
the raw xml: http://71.193.112.221:8888/tools/testins/simplemail/userdata/192.168.1.1.xml
and my xsl file: http://71.193.112.221:8888/tools/testins/simplemail/maily.xsl
these work great.
that is... if my xml file looks like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../maily.xsl"?>
<amail>
<from>Ben</from>
<subject>Welcome to Simple Mail!</subject>
<message>This is the most simple mail system ever. It uses PHP, and xml. Hope you like it!</message>
</amail>
as you see, each message is rapped up in the <amail> tag. if there's more, eg
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../maily.xsl"?>
<amail>
<from>Ben</from>
<subject>Welcome to Simple Mail!</subject>
<message>This is the most simple mail system ever. It uses PHP, and xml. Hope you like it!</message>
</amail>
<amail>
<from>Ben</from>
<subject>What's up?</subject>
<message>Hey there! Whats up?</message>
</amail>
<amail>
<from>Ben</from>
<subject>Oh good!</subject>
<message>Oh good! That's good to hear.</message>
</amail>
, then it messes up and my result is a blank page. here's a messed up xml file because there's over 2 messages.
http://71.193.112.221:8888/tools/testins/simplemail/userdata/error.xml
This error occurs when there's 2 or over AMAIL tags.
Does anybody have a solotion?
Thanks in advance, Ben.