From: Peter F. <pet...@zv...> - 2001-05-05 15:13:15
|
Todd, I have tried to write this three time and lost it when almost finished, when Netscrape crashed. urk. So my tries at reply have been getting briefer .. > > > One of the reasons I do (apart from never having needed to use them ) > > is that TclXML doesnt support them yet 8-). Its not a bug, its a > > _missing_ feature .... At the moment I dont know when it > > will added. It > > depends on how much demand for it there is and how much time > > we can make > > to work on it. Some paying clients have our almost undivided attention > > at the moment 8-). > > Fair enough, I suppose. No, its not really. Its not good having to admit that a basic compliance feature is missing . But we seem to be short handed at the moment. .. Todd's nicely done briefing on Jabber and its workings omitted here ... > > So, given this Resource field to play with, > some users inevitably decide to put funky > things like ampersands in there, such as > > "bu...@ja.../Black & White" > doh! users! $@&%$!#@! > The ampersand gets converted to "&" in > the XML data stream, and then that has to > be parsed correctly by the client program > on the receiving end. > > See here for more: > http://docs.jabber.org/jpg/html/main.html#CH-ENTITY-TIER-RESOURCE > > Right now, any user who tries to get update > information from our Jabber server or who > tries to chat with Jabberbot and has a re- > source with an ampersand generates XML which > cannot be parsed by the TclXML parser. > > I've gotten around the problem by just ignoring > those users for now, which isn't very polite, > but at least my Expect script doesn't crash. > I could do something hokey like scan the XML > for something that looks like a resource, chop > it off, pass the XML to the parser, and then > re-insert the resource afterwards. But I'm > sure you'll agree that isn't a very elegant > solution. > agreed ;-) > So, there you go. That's what I use TclXML > for. > > Todd. Thanks for the feedback Todd. Jabber is cool, and for some of our favourite reasons (OS, XML, TCL). I hope we'll be able to get this fixed for you as soon as we can. Its interesting how Tcl does seem to have found a real niche in the IRC/Chat/Instant Messaging world. -- Peter Farmer | Custom XML software | Internet Engineering Zveno Pty Ltd | Website XML Solutions | Training & Seminars http://www.zveno.com/ | Open Source Tools | - XML XSL Tcl Pet...@zv... +------------------------+--------------------- Ph. +61 8 92434146 | Mobile +61 417 906 851 | Fax +61 2 6242 4099 |