<br>That's good to hear. <br><br>Is this error consistent with the rfc3920 sec 11.1 requirement that <br>an xmpp implementation ignore restricted xml?<br><br><br><div><span class="gmail_quote">On 8/14/06, <b class="gmail_sendername">
Peter Saint-Andre</b> <<a href="mailto:stpeter@jabber.org">stpeter@jabber.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes, returning that error seems preferable to ignoring the invalid XML.<br><br>Joe Hildebrand wrote:<br>> Sorry, I should have looked that up, and included it in my response. We<br>> have a well-defined error for that:
<br>><br>> <stream:error><br>> <invalid-xml xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><br>> <text xmlns='urn:ietf:params:xml:ns:xmpp-streams' xml:lang='en-us'><br>> DTDs are not supported on this stream.
<br>> </text><br>> </stream:error><br>><br>> or some such. See RFC 3920, section 4.7.3.<br>><br>> On Aug 13, 2006, at 2:11 PM, Scott Cotton wrote:<br>><br>>> On 8/13/06, Joe Hildebrand <
<a href="mailto:hildjj@gmail.com">hildjj@gmail.com</a>> wrote:<br>>>><br>>>><br>>>> On Aug 11, 2006, at 7:24 PM, Scott Cotton wrote:<br>>>> > I'm still unclear on what "treat as if does not exist" means.
<br>>>> > First and foremost, I don't know whether ignoring is<br>>>> > passing through untouched and uninterpreted or<br>>>> > removing it.<br>>>><br>>>> Another option, which resolves this ambiguity is to say that the
<br>>>> receiving entity MUST disconnect from the sending entity, the same as<br>>>> if non-well-formed XML had been sent.<br>>><br>>><br>>><br>>> I like this option, so long as the receiving entity also sends a
<br>>> descriptive<br>>> error<br>>> message to the sending entity.<br>>> --scott<br>>><br>>> PS I am developing an xml parser in java which works on byte buffers<br>>> instead<br>
>> of streams, but uses the java 1.6 / java EE javax.xml.stream XMLEvent<br>>> interface so that it can more easily interoperate with other xml tools.<br>>> This<br>>> makes it easier to work with non-blocking io for a server, but also
<br>>> unfortunately seemed<br>>> to require a dedicated xml parser. Minimizing the required work for that<br>>> parser<br>>> is what originally triggered the question, but I'm more concerned about
<br>>> being<br>>> very clear with respect to what happens to message content.<br>>><br>>> --<br>>>> Joe Hildebrand<br>>>><br>>>><br>>>><br>><br><br><br></blockquote>
</div><br><br clear="all"><br>-- <br>scott