Thank you Peter,
that was what i was looking for!

I'm sorry about the asterisks, i don't know why they where there...
Anyway you were right, i was looking for "root/ancestor/someElement/@someAttribute"

and just adding / before the @ it works perfectly!

thanks again!
Davide.

Peter Hall ha scritto:
Hi Davide,
I assume the asterisks are just for our benefit. And I think the path
you are looking for is "root/ancestor/someElement/@someAttribute".

You need the / before the @.


Peter


On Fri, Jun 26, 2009 at 6:17 PM, Dave Watts<[email protected]> wrote:
I'm parsing a huge xml file, and i'm using xpath (as3 version) with
memorphic package (http://code.google.com/p/xpath-as3/)
but I cannot reach a single attribute value on a node:
ex:
<someElement *someAttribute="some value"*>
...
...
</someElement>
and i need this value to build a menu.
I'm trying to reach this value with this path:
"root/ancestor/someelem...@*someattribute*"

But i get this error:
"/Error: Some parsing went awry
  at memorphic.parser::SyntaxTree/verifyTree()
  at memorphic.xpath.parser::XPathParser/parseXPath()
  at memorphic.xpath::XPathQuery/set path()
  at memorphic.xpath::XPathQuery$iinit()/"

Does anyone fixed this issue?

Thanks for your answers (and sorry for my english)!
There's no need to apologize for your English, it's certainly better
than my Italian (or anything else).

Are there actually asterisks (*) around the attribute and its value?
While you can use asterisks within an attribute name, you can't have
one after the quoted value. I'm also not sure if you can use an
asterisk for the first character of the attribute name.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

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


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



--


......................................................

*Davide Di Blasi - **flash developer*
mailto: [email protected] <mailto:[email protected]>

......................................................

*K E T T Y D O s.r.l.
*


**

Via Mosè Bianchi, 103

20149 Milano (Italy)

Tel. 02.87393636 - Fax 02.87394018

......................................................

*KD News*

Vi ricordate "Quando i Mulini erano bianchi"?

Sapete che il mitico Coccio compie 30 anni?

Avete già assaggiato i nuovi Girotondi?

Kettydo firma il restyle del sito

istituzionale di MULINO BIANCO.


http://www.mulinobianco.it <http://www.mulinobianco.it/>

......................................................

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

Reply via email to