Re: [Flashcoders] Reach a single attribute value on a XML node with xpath AS3

2009-06-29 Thread Davide Di Blasi

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 Wattsdwa...@figleaf.com 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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  



--


..

*Davide Di Blasi - **flash developer*
mailto: davide.dibl...@kettydo.com mailto:davide.dibl...@kettydo.com

..

*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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Reach a single attribute value on a XML node with xpath AS3

2009-06-26 Thread Davide Di Blasi

Hi list,
this is my very first message and I'm happy to join this list!

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)!

Davide.
--


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Reach a single attribute value on a XML node with xpath AS3

2009-06-26 Thread Dave Watts
 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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Reach a single attribute value on a XML node with xpath AS3

2009-06-26 Thread Peter Hall
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 Wattsdwa...@figleaf.com 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
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders