[flexcoders] Re: problem in parsing xml return by HTTPservice, could it be namespace issue

2007-02-19 Thread paulwelling
Hello, Has anyone found out why the parsing of a XML document fails when using a node's name (but succeeds when using an index [n]) when there is a namespace definition in the node..? var xml:XML = foo bargood/bar bar xmlns=http://model.gts.com;bad/bar /foo trace(xml..bar); //good good

[flexcoders] Re: problem in parsing xml return by HTTPservice, could it be namespace issue

2007-01-03 Thread Shailesh Mangal
I figured this out. Here is what worked for me. var res:XML = event.result as XML; var ns:Namespace = res.namespace(); var imgName:String = res..ns::marketValue; :: operator is the key. This works well for the defualt namespace. I still havent figured how to access an element whose namespace