1

Is a tabulator a valid character for whitespace between elements in XML/SOAP?

<a>*TAB*
*TAB*<b>test</b>*TAB*
</a>

*TAB* stands for \t = 0x09
chris01
  • 10,921
  • 9
  • 54
  • 93

2 Answers2

1

Based on specification 0x09 is allowed in XML/SOAP.

Section 2.2 is about characters and as you can see is allowing you to use:

  1. tab (0x09),
  2. newline (0x0A)
  3. CR (0x0D),

from characters before 0x20.

dgebert
  • 1,235
  • 1
  • 13
  • 30
1

Yes, tab characters (CHARACTER TABULATION: &#x09; or &#09;) are allowed in XML content (but not in XML names):

Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
kjhughes
  • 106,133
  • 27
  • 181
  • 240