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/tes...92.168.1.1.xml
and my xsl file: http://71.193.112.221:8888/tools/tes...mail/maily.xsl
these work great.
that is... if my xml file looks like this:
as you see, each message is rapped up in the <amail> tag. if there's more, egCode:<?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>
, then it messes up and my result is a blank page. here's a messed up xml file because there's over 2 messages.Code:<?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>
http://71.193.112.221:8888/tools/tes...data/error.xml
This error occurs when there's 2 or over AMAIL tags.
Does anybody have a solotion?
Thanks in advance, Ben.


Reply With Quote
Bookmarks