Re: SOAP and entities.
Doug Ransom <[email protected]>
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <3C552E6ED5B7DC4F8BF603C030BB70BF04ACE693@HERMES.canada.corp.powermeasurement.com> |
This is exactly where I was confused. I wasn't sure if the entities would be expanded by the parser and the doctype dissappeared, but I found this in the infoset http://www.w3.org/TR/xml-infoset/#infoitem.doctype. "If the XML document has a document type declaration, then the information set contains a single document type declaration information item. In this example, is there a DOCTYPE in the infoset, or just in the serialized XML?" Which basically means in my circumstance that one cannot use entities as shortcuts in SOAP. <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE t [ <!ENTITY dr "Doug Ransom"> ]> <X n="&dr;" /> I do not understand the the motivation of not allowing DOCTYPES in SOAP messages. I am generally not big on DTDs, but it seems pretty arbitrary to disallow them when the remainder of the infoset will still be verifiable with tools like XML Schema, Schematron, etc. Anyone know why DOCTYPES are excluded from SOAP? > -----Original Message----- > From: Don Box [mailto:[email protected]] > Sent: Wednesday, October 16, 2002 12:46 AM > To: Doug Ransom > Subject: RE: SOAP and entities. > > > From section 5 of http://www.w3.org/TR/soap12-part1: > > "The XML infoset of a SOAP message > MUST NOT contain a document type > declaration information item." > > Note that the term document type DECLARATION is used. This means not > only can you not have a DTD (either as an external or > internal subset), > but you also cannot have the DOCTYPE declaration. > > DB > http://www.gotdotnet.com/team/dbox > > > > > -----Original Message----- > > From: Doug Ransom [mailto:[email protected]] > > Sent: Tuesday, October 15, 2002 1:18 PM > > Subject: SOAP and entities. > > > > Is it OK to have entities in a SOAP document? From the spec there > were > > some > > comments about entities, but I did not fully grasp them. > > > > Basically, can you have a DOCTYPE in a soap document? In > the example > > below, > > imagine X is is a SOAP element. > > > > > > <?xml version="1.0" encoding="utf-8" ?> > > <!DOCTYPE t [ > > <!ENTITY dr "Doug Ransom"> ]> > > <X n="&dr;" /> > > > > > > Doug Ransom > > > > You can read messages from the SOAP archive, unsubscribe > from SOAP, or > > subscribe to other > > DevelopMentor lists at http://discuss.develop.com. > You can read messages from the SOAP archive, unsubscribe from SOAP, or subscribe to other DevelopMentor lists at http://discuss.develop.com.