I need help with parsing XML. I put an XML doc into a hidden input for an HTML FORM...
--------------
<html>
<head>
<title>TEST TEST</title>
</head>
<body>
<form method=POST action="http://nflnfl.com/mash.php">
<input type=SUBMIT>
<input type=hidden name=xdoc value='<?xml version="1.0" encoding="UTF-8" ?>
<!--OPN 2001 Proof Of Concept-->
<ScannerData>
<Device>0000000000002561</Device>
<UploadDate>3/6/2008 3:49:09 PM</UploadDate>
<BarCode>
<Symbol>8</Symbol>
<Data>779502944821</Data>
</BarCode>
etc.
--------------
The PHP page includes...
--------------
$data = $_POST;
if (!xml_parse($xml_parser, $data, TRUE))
die(sprintf("XML error: %s at line %d column %d",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser),
xml_get_current_column_number($xml_parser)));
--------------
This works fine on my Windows Vista/Apache 2.2/PHP 5.2.3 server.
But, when I access a LAMP server (PHP 4.3.11) from GoDaddy, I get
--------------
XML error: syntax error at line 1 column 14
--------------
What am I doing wrong?
Thanks!
Les