<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 15, 2013 at 3:01 PM,  <span dir="ltr"><<a href="mailto:random832@fastmail.us" target="_blank">random832@fastmail.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hang on, what?<br>
<br>
Now, maybe that's true of your _particular_ XML spec. And this certainly<br>
seems symptomatic of a larger problem (e.g. firing off an event as soon<br>
as the action tag closes, rather than parsing the whole document). But<br>
XML elements are _not_ unordered.<br></blockquote><div><br></div><div>Hmm, when I ran across this particular problem, I recall seeing somewhere that the preservation of element order in the spec is undefined.  And indeed it appears that while attributes are called explicitly as not having significant order, the spec doesn't actually weigh in on element order one way or another.  However, regardless of what's in the spec, it would seem that everyone just assumes element order to be significant anyway, so it doesn't really matter.<br>
<br><a href="http://lists.xml.org/archives/xml-dev/200101/msg00841.html">http://lists.xml.org/archives/xml-dev/200101/msg00841.html</a><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div class="im"><br>
On Wed, May 15, 2013, at 15:35, Don Spaulding wrote:<br>
> Twice<br>
> now I've encountered poorly-written web services that have choked on<br>
> something like:<br>
><br>
> <request><br>
>   <action>modifyStuff</action><br>
>   <user>user_123456</user><br>
> </request><br>
><br>
>  ...with an error to the effect of "Cannot modifyStuff without specifying<br>
> user credentials".  So someone else has built a system around an XML<br>
> parser<br>
> that doesn't know that sibling elements aren't guaranteed to appear in<br>
> any<br>
> particular order.<br>
<br>
</div>--<br>
Random832<br>
(top-posted because my reply and your message aren't guaranteed to<br>
appear in any particular order.)<br></blockquote><div> </div><div style="margin-left:40px">>>> OrderedDict(I='see', what='you', did='there')<br>OrderedDict([('did', 'there'), ('I', 'see'), ('what', 'you')])</div>
</div></div></div>