But the xml structure is not consistent (unless there was a typo).

<product>
  <colors>
    <clr></clr>
    <clr></clr>
  </colors>
</product>

<product>
  <colors>
    <clr></clr>
  </colors>
  <colors>
    <clr></clr>
  </colors>
</product>

So, if i'm not mistaken, this "//product[colors[clr= 'green']]" will only work 
for the second part (multiple 'colors' nodes), not 
the first one.

regards,
Muzak

----- Original Message ----- 
From: "Chris Wilcox" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Thursday, November 03, 2005 2:30 PM
Subject: RE: [Flashcoders] XPath Error...


Hmm... it works if you nest the predicate bit to...

"//product[colors[clr= 'green']]"

...apparently (after quick google) this is legal XPath.


Chris Wilcox
________________________________


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to