[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Expat Parse Error
I think you need a top level element around all of the other
information. Something like:
<topElement>
<createDate>20070716205300922</createDate>
<ipAddress>192.xxx.xx.xxx</ipAddress>
<emailAddress>xxxxx111@xxxxxxxxxxx</emailAddress>
<name>xxxxxxxx</name>
<address>12020xxxxx</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>GrandBlanc</city>
<state>MI</state>
<zipCode>48439</zipCode>
<receiveEmail>true</receiveEmail>
</topElement>
Here's what I found.
The first, outermost element in an XML document is called the document
element because its name announces what kind of document it
is--<FAQ-List>, <Book>, <Transaction>, <TrackingStatus>, etc.
-----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</ipA
ddress><emailAddress>xxxxx111@xxxxxxxxxxx</emailAddress><name>xxxx
xxxx</name><address>12020
xxxxx</address><city>Redford</city><state>MI</state><zipCode>48239</zipC
ode><receiveEmail>true</receiveEmail>
<createDate>20070717152254656</createDate><ipAddress>69.xxx.xx.xx</ipAdd
ress><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<
/receiveEmail>
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
-----------------------------------------------------------------------