[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Parsing XML with a value that contains a double quote



Are you sure it is the double quote or have you exceeded a length?
Column 65517?

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Kim Gibson
Sent: Tuesday, December 21, 2010 12:53 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Parsing XML with a value that contains a double quote

I've posted recently with the subject line "Example 18 and an Unparsed
Character Response". I'm using
http://www.scottklement.com/httpapi/bankrout.txt as a template to take
the unparsed response & write it to the IFS, then calling
http_parse_xml_stmf, and it's working beautifully, with one exception.

There is a value within a tag that I'm receiving in the response that
has a double quote, and this is messing up the parsing. This is the tag
& value:  
	
	<PrescriptionLabel>BD INSULIN SYR 0.5 ML
30GX1/2"</PrescriptionLabel>

The double quote is messing things up---I get an error: 
	XML parse failed at line 2, col 65517: unclosed token   

Any suggestions how to handle this?

Thanks so much,

Kim Gibson


-----------------------------------------------------------------------
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
-----------------------------------------------------------------------