[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Expat Parse Error
Michael,
I am a newb at both XML and Expat, but I found an XML validator here
http://www.stg.brown.edu/service/xmlvalid/ and it doesn't like this xml at
all. Nor could I open it in some XML editor I have on my PC, nor does IE or
Firefox like it. I assume that Expat might have similar problems with this
XML.
I did get it to parse better after adding some stuff.
<?xml version="1.0" encoding="UTF-8"?>
<datastuff>
<createDate>20070716205300922</createDate>
<ipAddress>192.xxx.xx.xxx</ipAddress>
<emailAddress>xxxxx111@xxxxxxxxxxx</emailAddress>
<name>xxxxxxxx</name>
<address>12020 xxxxx</address>
<city>Redford</city>
<state>MI</state>
<zipCode>48239</zipCode>
<receiveEmail>true</receiveEmail>
<createDate>20070717152254656</createDate>
<ipAddress>69.xxx.xx.xx</ipAddress>
<emailAddress>xxxxx_mom@xxxxxxxxxxxxx</emailAddress>
<name>xxxxxxxxx</name>
<address>xxxxx Dr</address>
<city>Grand Blanc</city>
<state>MI</state>
<zipCode>48439</zipCode>
<receiveEmail>true</receiveEmail>
</datastuff>
But it is still not well-formed. My guess is that Expat needs "well formed"
xml to work.
Mike Krebs
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Michael Ryan
Sent: Wednesday, December 05, 2007 8:37 AM
To: HTTPAPI and FTPAPI Projects
Subject: Expat Parse Error
I'm receiving this error:
Parse error at line 1: junk after document element
With this document:
<createDate>20070716205300922</createDate><ipAddress>192.xxx.xx.xxx</ipAddre
ss><emailAddress>xxxxx111@xxxxxxxxxxx</emailAddress><name>xxxx
xxxx</name><address>12020
xxxxx</address><city>Redford</city><state>MI</state><zipCode>48239</zipCode>
<receiveEmail>true</receiveEmail>
<createDate>20070717152254656</createDate><ipAddress>69.xxx.xx.xx</ipAddress
><emailAddress>xxxxx_mom@xxxxxxxxxxxxx</emailAddress><name>xxxx
xxxxx</name><address>xxxxx Dr</address><city>Grand
Blanc</city><state>MI</state><zipCode>48439</zipCode><receiveEmail>true</rec
eiveEmail>
Any ideas? How can I check to see where the 'junk' is?
Thanks!
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------