[jdom-interest] Suppressing <?xml version="1.0"?>

Elliotte Rusty Harold elharo at metalab.unc.edu
Tue Aug 22 06:25:52 PDT 2000

At 8:03 PM -0700 8/21/00, Joseph Bowbeer wrote:
>By the way, I noticed that the XML Declaration (processing instruction) is
>suppressed in SOAP messages.
>  http://www.w3.org/TR/SOAP/#_Toc478383492
>    "All SOAP messages are encoded using XML. ... A SOAP message MUST NOT
>contain Processing Instructions. ... The Envelope is the top element of the
>XML document representing the message."

However, the XML declaration is not a processing instruction. 
Therefore a SOAP message that contains an XML declaration still does 
not necessarily contain any processing instructions. A cursory 
inspection of the section you reference shows nothing that prohibits 
an XML declaration in a SOAP message.

I incorrectly claimed that the XML declaration was a processing 
instruction in my first XML book. I did get it right in the Bible. I 
apologize for having spread this misinformation. Mea culpa. Mea 
maxima culpa.

| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
|                  The XML Bible (IDG Books, 1999)                   |
|              http://metalab.unc.edu/xml/books/bible/               |
|   http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/   |
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |

More information about the jdom-interest mailing list