[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: EXPAT Parse error at Line 1: not well-formed (invalid token)
Good morning
I found the issue. I had to convert the incoming XML to a different
format. Once I did this I was able to debug the the chardata procedure
to verify my results. Once I make my final changes today I will let
everyone know.
Thanks for being patient with me....I will advise later. [1]
Sent from Yahoo Mail for iPhone
__________________________________________________________________
From: Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx>;
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>;
Subject: RE: EXPAT Parse error at Line 1: not well-formed (invalid
token)
Sent: Tue, Dec 2, 2014 11:57:02 PM
Donnie,
This is really the hard way to get to "working". Can you do this for
us?
Turn on debug in the program. Run the program.
Copy the debug file to a .txt file, scrub any user/passwords, attach to
email
Copy the program source to a .txt file, scrub any user/passwords,
attach to email.
My guess at your error is that you are passing the wrong start address
of the variable or you have CCSID problem.
-----Original Message-----
From: [2]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:[3]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Donnie
Barrow
Sent: Tuesday, December 2, 2014 2:21 PM
To: HTTPAPI and FTPAPI Projects
Subject: EXPAT Parse error at Line 1: not well-formed (invalid token)
first off I thank everyone for helping me out I do appreciate it. I
get the above error message. The highlighted code is where I get the
error. This is line 1 of the return XML I see. <?xml version="1.0"
encoding="UTF-8"?> Question: Is this something that I did or the return
xml has an issue XML_SetStartElementHandler( p : %paddr(start)
);XML_SetEndElementHandler( p : %paddr(end)
);XML_SetCharacterDataHandler( p : %paddr(chardata) ); //// The
following loop will read data from the XML// document, and feed it into
the XML parser//// The parser will call the "start" and "end"// as the
correct data is fed to it.// dou (done = 1); len = read(fd:
%addr(Buff): %size(Buff));if (len < 1);done = 1;leave;endif; if
(XML_Parse(p: Buff: len: done) = XML_STATUS_ERROR);callp
close(fd);msgdie=('Parse error at line '+
%char(XML_GetCurrentLineNumber(p)) + ': '+
%str(XML_ErrorString(XML_GetErrorCode(p))));endif;
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
[4]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
References
1. https://overview.mail.yahoo.com/?.src=iOS
2. javascript:return
3. javascript:return
4. 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
-----------------------------------------------------------------------