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
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
2 matches
Mail list logo