On Wed, Jun 27, 2012 at 1:32 PM, Kevin Smith <[email protected]> wrote:

> On Wed, Jun 27, 2012 at 6:26 PM, Mark Rejhon <[email protected]> wrote:
> > As long as the XML-processor limits its Unicode
> > processing to comply with the XML processing standard at w3.org/XML ....
>
> Just thinking aloud here, but - how does this interact with allowed
> XML mangling by parsers/serialisers?
>
> For example, if the client tries to send
> 1
> 1 >
> 1 > 2
> 1 <
> 1 < 2
>
> And the initial > gets transformed into &gt; by the XML library at the
> sending end? (I pick this example because it's one I've come across in
> the past).
>

It's the responsibility of the XML processor to handle entity encode/decode.
So from the XEP-0301, I only see one character whenever I see "<" or ">".
At the flow chart,
http://www.realjabber.org/flowchart_of_xmpp_rtt_path.pdf<http://www.marky.com/realjabber/flowchart_of_xmpp_rtt_path.pdf>
the
XML entity handling is handled by the XML processing step.

I used to mention entity processing in an early draft of XEP-0301 almost
two years ago, but removed it, because it's the responsibility of the XML
processor, and thus outside the XEP-0301 chain.   Comments?

Mark Rejhon

Reply via email to