ehm ... huhu ... you're kidding!
is it really that simple? ok. i'll try. and let you know
(and i'll look into the documentation to see what else i overlooked in there...)
thanks arri
On 09 mei 2005, at 22:58, Valentin Schmidt wrote:
hi arri,
you just have to set the the XMLObject's property "ignoreWhite" to 1:
e.g.:
on beginSprite me flashXml = newObject("XML") flashXml.ignoreWhite = 1 setCallback(flashXml, "onLoad", #xmlLoaded, me) flashXml.load("http://extra.waag.org/users/arjen/xml.txt") end
on exitFrame me go the frame end
on xmlLoaded me, obj put obj.childNodes.length put obj.childNodes[0].childNodes.length put obj.childNodes[0].childNodes[0].childNodes.length put obj.childNodes[0].childNodes[0].childNodes[0].childNodes.length end
--> message window: -- 1.0000 -- 1.0000 -- 1.0000 -- 10.0000
I think the problem is that with the default setting "ignoreWhite=0" the white space AFTER your closing </control>-tag (2 unix line feeds) is treated as new text node.
cheers, valentin
arjen wrote:it indeed has to do with the difference between opening a file (from disk or URL) and.......
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
