Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Fatal XML Parse Error: Invalid character (Unicode: 0x1D) [Thread Next] Re: Fatal XML Parse Error: Invalid character (Unicode: 0x1D)To: NULL Date: 11/6/2009 4:49:00 PM Ismo Salonen wrote: > JR wrote: >> I apologize up front for not being much of an XML guy. We are trying >> to use a canned solution to send barcode strings via XML. The canned >> solution works fine. The one issue we are having is that the barcodes >> are GS1 compliant meaning we have ASCII character 29 (0x1D) embedded >> in our barcodes. We want these strings to contain the character, but >> the parser just doesn't like them. >> >> Our heading is as follows: >> <?xml version="1.0" encoding="utf-8" ?> >> Anyone know of a means of passing such characters in an XML string? >> > > Could you use [CDATA] for those parts which use special reserved chars ? A control characterlike 0x1D is not a special reserved character, it is not an allowed character. CDATA sections help to make your data more readable as you can use <foo><![CDATA[a < b && b < c]]></foo> instead of <foo>a < b && b < c</foo> but they don't help to put in characters that are not allowed in XML. -- Martin Honnen --- MVP XML http://msmvps.com/blogs/martin_honnen/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
