[jdev] Driving/Routing directions via XMPP

Trejkaz Xaoza trejkaz at xaoza.net
Tue Aug 17 09:48:39 CDT 2004


On Wed, 18 Aug 2004 00:10, you wrote:
> I don't see how your suggestion of child elements actually solves anything
> what is the evil user crafted the following:
>
>     <src>
>         <street>4555 Main Street</street>
>         <jid>bob at jabber.org</jid>
>     </src>
>
> You still don't know anymore than the original about which one should be
> used,

And yet, this stanza immediately fails my trivially-written XML schema, and 
gets bounced back to the evil user before my application even has to smell 
it.

> all it does is make it slightly more difficult to process and adds
> unnecessary extra bytes. 

Maybe, if you still use the classic W3C DOM to manipulate all XML.  The rest 
of the world have already discovered better APIs for this, such as XPath.  In 
XPath, selecting an attribute is the same as selecting an element, only one 
character longer ("@street" versus "street".)

TX

-- 
'Every sufficiently advanced technology is indistinguishable from magic' - 
Arthur C Clarke
'Every sufficiently advanced magic is indistinguishable from technology' - Tom 
Graves

             Email: Trejkaz Xaoza <trejkaz at xaoza.net>
          Web site: http://xaoza.net/trejkaz/
         Jabber ID: trejkaz at jabber.xaoza.net
   GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F  A62C B8C7 BC8B 037E EA73



More information about the JDev mailing list