XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Transporting Binary Data in SOAP
Subject: invalid bytes are the worst problem
Date: 2002-09-05 04:51:15
From: user2048 user2048

The worst (most likely) problem with embedding
binary data directly in XML is that not all
bytes are allowed in XML.


The standard limits the valid characters to:
#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]


So, for example, with utf-8 encoding,
the byte value 1 is not allowed.


CDATA sections are no help at all in this case.


Previous Message Previous Message   Next Message Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938