- From: Tony Lavinio <alavinio@g...>
- To: "Costello, Roger L." <costello@m...>
- Date: Mon, 1 Oct 2012 10:11:54 -0400
1. Before developing a schema, perhaps it would be good to understand the use-case.2. The XML 1.1 specification allows these characters. <http://www.w3.org/TR/2004/REC-xml11-20040204/#charsets>
3. If you're going to add support for these to XML 1.0, what about NULLs? 4. If they are needed, perhaps wrapping in a PI would be better? Like <?hex 00?> 5. If a message has a block of binary data, would it be better to just turn the whole think into a base-64 or hexBinary string?
Without understanding what the purpose is, it's hard to make a recommendation.
On Mon, Oct 1, 2012 at 9:59 AM, Costello, Roger L. <costello@m...> wrote:
Hi Folks,
Below is a table that shows the US-ASCII characters (decimal value) in the left column and the right column indicates whether the character is allowed in XML documents.
Questions:
1. Why does XML not support many of the US-ASCII characters? Of the 127 US-ASCII characters, 28 characters are not allowed in XML documents; that is, 22% of the US-ASCII characters are not supported by XML.
2. I am creating an XML Schema for an RFC that allows all 127 US-ASCII characters. What should I do for the 28 US-ASCII characters that are supported by the RFC but not supported by XML?
Decimal value of
US-ASCII character | Is an XML character?
------------------------------------------
  1        |  No
  2        |  No
  3        |  No
  4        |  No
  5        |  No
  6        |  No
  7        |  No
  8        |  No
  9        |  Yes
  10       |  Yes
  11       |  No
  12       |  No
  13       |  Yes
  14       |  No
  15       |  No
  16       |  No
  17       |  No
  18       |  No
  19       |  No
  20       |  No
  21       |  No
  22       |  No
  23       |  No
  24       |  No
  25       |  No
  26       |  No
  27       |  No
  28       |  No
  29       |  No
  30       |  No
  31       |  No
  32-127   |  Yes
_______________________________________________________________________
XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.
[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
-- Tony Lavinio    DataDirect Technologies    alavinio@d... High-performance XML Processor: DataDirect XQuery http://www.xquery.com/
EDI/Flat File<->XML Converters (Java|.Net) http://www.xmlconverters.com/
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
|