Looks ok.

 

Does it error, or just return an empty XMLList?  Be carefult with th"@"
syntax.  It will error if ALL nodes in its search do not contain the
attribute.  I use attribute("d") except when I also create the xml and
am sure of the format.

 

Debug this by tracing path:

trace(line.path.toXMLString())

 

Tracy

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chigwell23
Sent: Friday, April 18, 2008 11:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to get XML child node value with line.@
syntax?

 

XML Node:

<g style="fill: #ffffff">
<path d="M-122.304"/>
</g>

for each (var line:XML in pathsXML)
{

var style:String = [EMAIL PROTECTED]; // style = "fill: #ffffff"
var dataPath:String = [EMAIL PROTECTED]; // not correct code :-(

// do stuff

}

What is the correct code to get d? TIA,

Mic 

 

Reply via email to