Re: [Flashcoders] XPath

2008-04-30 Thread Peter Hall
Well, anyway, thanks for pointing this out because I think it's a bug and the same bug is present in Xpath-as3. The spec is quite confusing because it defines 4 different node types: "node", "processing-instruction", "comment" and "text". Attribute is actually of type "node", but you have to read

Re: [Flashcoders] XPath

2008-04-30 Thread Glen Pike
But hey, it works now right and I won't be upgrading XFactorStudio for this site, so all I do is learn a small bad habit, which I will remember for future stuff anyway :) Peter Hall wrote: On Tue, Apr 29, 2008 at 7:11 PM, Peter Hall <[EMAIL PROTECTED]> wrote: In XPath 1.0, an attribute is

Re: [Flashcoders] XPath

2008-04-30 Thread Peter Hall
On Tue, Apr 29, 2008 at 7:11 PM, Peter Hall <[EMAIL PROTECTED]> wrote: > In XPath 1.0, an attribute is an axis, not a node, and so cannot be > used as a context node. (ie the self axis that you are attempting to > access with "." does not exist). I could be wrong on this, Actually, I might be ta

Re: [Flashcoders] XPath

2008-04-29 Thread Claus Wahlers
Ricky Bacon wrote: Claus Wahlers wrote: Merrill, Jason wrote: Curious why not use AS3 instead? I don't speak for the OT here, just a comment to your earlier comment that AS3 made XPath obsolete. This is not really true. It is true that with E4X you have almost the same functionality as

Re: [Flashcoders] XPath

2008-04-29 Thread Glen Pike
Hi, The choice not to use AS3 is because I am re-using a lot of code from a very similar previous project. Both projects were/are for a not-for-profit organisation, so the budget is small and we are trying to concentrate on the content rather than rewriting lots of code for AS3. Glen

Re: [Flashcoders] XPath

2008-04-29 Thread Ricky Bacon
Claus Wahlers wrote: Merrill, Jason wrote: Curious why not use AS3 instead? I don't speak for the OT here, just a comment to your earlier comment that AS3 made XPath obsolete. This is not really true. It is true that with E4X you have almost the same functionality as XPath, but E4X fails

RE: [Flashcoders] XPath

2008-04-29 Thread Merrill, Jason
f >>Of Claus Wahlers >>Sent: Tuesday, April 29, 2008 4:20 PM >>To: Flash Coders List >>Subject: Re: [Flashcoders] XPath >> >>Merrill, Jason wrote: >> >>>>> I don't speak for the OT here, just a comment to your earlier >>

Re: [Flashcoders] XPath

2008-04-29 Thread Claus Wahlers
Merrill, Jason wrote: I don't speak for the OT here, just a comment to your earlier comment that AS3 made XPath obsolete. This is not really true. It is true that with E4X you have almost the same functionality as XPath, but E4X fails badly if your query comes from an external source, like i

RE: [Flashcoders] XPath

2008-04-29 Thread Merrill, Jason
>>I don't speak for the OT here, just a comment to your earlier >>comment that AS3 made XPath obsolete. This is not really true. >> >>It is true that with E4X you have almost the same >>functionality as XPath, but E4X fails badly if your query >>comes from an external source, like if your applic

Re: [Flashcoders] XPath

2008-04-29 Thread Claus Wahlers
Merrill, Jason wrote: Curious why not use AS3 instead? I don't speak for the OT here, just a comment to your earlier comment that AS3 made XPath obsolete. This is not really true. It is true that with E4X you have almost the same functionality as XPath, but E4X fails badly if your query co

RE: [Flashcoders] XPath

2008-04-29 Thread Merrill, Jason
Curious why not use AS3 instead? Is your audience still using FP8? Jason Merrill Bank of America Global Technology & Operations L&LD eTools & Multimedia Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas a

Re: [Flashcoders] XPath

2008-04-29 Thread Glen Pike
Hi, Your query works fine, thanks for that :) I guess the online tool is useful, but will treat results with some scepticism and will try to get my head around axes and nodes, etc. a bit more... Cheers Glen Peter Hall wrote: In XPath 1.0, an attribute is an axis, not a node,

Re: [Flashcoders] XPath

2008-04-29 Thread Peter Hall
In XPath 1.0, an attribute is an axis, not a node, and so cannot be used as a context node. (ie the self axis that you are attempting to access with "." does not exist). I could be wrong on this, but I implemented my own xpath library for AS3 from the w3c spec, without referencing the xfactorstudio

Re: [Flashcoders] XPath

2008-04-29 Thread Glen Pike
Hmmm, Seems my original reply did not go to the list: Here is the email again, but don't worry too much about it, as I have a workaround... (The sitemap snippet is also missing some file="activity1.swf" type="SWF"/> entries too - I can't just search for "//animation/@file[...]" )

RE: [Flashcoders] XPath

2008-04-29 Thread Merrill, Jason
I used to use it, but AS3 made it obsolete. What bugs do you see? I found that it had serious performance flaws on large datasets, but otherwise worked really well. Jason Merrill Bank of America Global Technology & Operations L&LD eTools & Multimedia Join the Bank of America Flash Platform

Re: [Flashcoders] XPath

2008-04-29 Thread Peter Hall
I was about to reply the same thing. But I don't think it is being developed any more, so it might be a matter of fixing it yourself... Peter On Tue, Apr 29, 2008 at 4:52 PM, Pete Hotchkiss <[EMAIL PROTECTED]> wrote: > Bugs - interesting I've used this extensively for some time now and > never

RE: [Flashcoders] XPath

2008-04-29 Thread Pete Hotchkiss
Bugs - interesting I've used this extensively for some time now and never had a problem with it What specifically are you seeing Glen ? Pete -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: 29 April 2008 15:20 To: Flashcoders mailing l

RE: [Flashcoders] XPath online

2007-04-09 Thread Merrill, Jason
While this doesn't cover the xfactorstudios version of Xpath, it may have some info that will help. http://flash.terra.ee/flash-books/o'reilly%20-%20actionscript.cookbook.2 003/0596004907_actscptckbk-chp-19-sect-15.html and http://www.w3schools.com/xpath/default.asp Jason Merrill Bank of Ameri

RE: [Flashcoders] XPath online

2007-04-09 Thread David Ngo
Try this: http://download.macromedia.com/pub/documentation/en/flash/fl8/XpathAPI.pdf -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hairy Dog Digital Sent: Monday, April 09, 2007 12:07 PM To: flashcoders@chattyfig.figleaf.com; [EMAIL PROTECTED] Subject:

Re: [Flashcoders] XPath online

2007-04-09 Thread Thomas Fowler
I would look on msdn.microsoft.com/library under Win32 and COM Development -> XML -> MSXML -> MSXML 4.0 SDK -> XML Standards Reference -> XPath Reference. It's an excellent reference for XPath 1.0 and 2.0. There's nothing different about MSFT's XPath implementation other than their specific ext

Re: [Flashcoders] XPath

2006-10-30 Thread slangeberg
Had to setup my site again, but hopefully this is a little more clear: http://criticalpile.com/blog/ -Scott On 10/19/06, slangeberg <[EMAIL PROTECTED]> wrote: Can't find the links i've looked at, but here's the code I'm currently using. This example probably shows most of the xml data-access c

Re: [Flashcoders] XPath

2006-10-28 Thread Rich Rodecker
yeah, i used the w3schools to learn the syntax, and i get by with that. On 10/28/06, Joseph Balderson <[EMAIL PROTECTED]> wrote: Found this, not too detailed though. Hope it helps. http://www.skylab.ws/?p=85 __ Joseph Balderson, Flash

Re: [Flashcoders] XPath

2006-10-28 Thread Joseph Balderson
Found this, not too detailed though. Hope it helps. http://www.skylab.ws/?p=85 __ Joseph Balderson, Flash Platform Developer http://www.joeflash.ca | 416-768-0987 Writing partner, Community MX | http://www.communitymx.com Consultant, New

Re: [Flashcoders] XPath

2006-10-19 Thread Thomas Rühl -akitogo-
PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Thomas Rühl -akitogo- Sent: Thursday, October 19, 2006 11:59 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] XPath there you go: www.w3schools.com cheers, thomas Chip Moeser wrote: Does anyone know where I can samples using th

RE: [Flashcoders] XPath

2006-10-19 Thread Merrill, Jason
gt;To: Flashcoders mailing list >>Subject: Re: [Flashcoders] XPath >> >> >>there you go: www.w3schools.com >> >>cheers, thomas >> >> >>Chip Moeser wrote: >>> Does anyone know where I can samples using these >>> (http://www.xfactorstud

Re: [Flashcoders] XPath

2006-10-19 Thread slangeberg
Can't find the links i've looked at, but here's the code I'm currently using. This example probably shows most of the xml data-access capabilities: //in this case, we're only pulling the title of a video, //if a section has any videos! import com.xfactorstudio.xml.xpath.*; . . . var

Re: [Flashcoders] XPath

2006-10-19 Thread Muzak
http://www.google.com/search?hl=en&q=actionscript+xpath&meta= - Original Message - From: "Chip Moeser" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Thursday, October 19, 2006 5:10 PM Subject: [Flashcoders] XPath > Does anyone know where I can samples using these (http:// >

Re: [Flashcoders] XPath

2006-10-19 Thread Thomas Rühl -akitogo-
there you go: www.w3schools.com cheers, thomas Chip Moeser wrote: Does anyone know where I can samples using these (http://www.xfactorstudio.com/) xpath classes? Thanks! -Chip ___ Flashcoders@chattyfig.figleaf.com To change your subscription optio

RE: [Flashcoders] XPath

2006-10-19 Thread Merrill, Jason
Here is an old one: http://flash.terra.ee/flash-books/o'reilly%20-%20actionscript.cookbook.2 003/0596004907_actscptckbk-chp-19-sect-15.html Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-Original Message- >>From: [EMAIL PROTECTE

Re: [Flashcoders] XPath

2006-10-19 Thread Mindshare Media
It's not the samples but this may be of use to you: http://download.macromedia.com/pub/documentation/en/flash/fl8/XpathAPI.pdf http://www.sephiroth.it/file_detail.php?id=130# --Damian Mindshare Media, Inc. 622A Alto St. Santa Fe, NM 87501-2519 http://mindsharemedia.net __

Re: [Flashcoders] xpath xml strangeness

2006-05-15 Thread Johannes Nel
yup. if its in the class path it picks it up (maybe sepy has that ability as well, you just need to configure the classpaths). we even use fdt for our flex 1.5 devlopment, it really is the sheet. On 5/15/06, Kent Humphrey <[EMAIL PROTECTED]> wrote: fdt? Can it really notice the wrong case of a

Re: [Flashcoders] xpath xml strangeness

2006-05-15 Thread Kent Humphrey
fdt? Can it really notice the wrong case of a 3rd party class/function? On 15 May 2006, at 13:10, Johannes Nel wrote: then obvisouly not. sepy is not a bad editor, but it should surely point out things like that. fdt is the way :) ___ Flashcoders

Re: [Flashcoders] xpath xml strangeness

2006-05-15 Thread Johannes Nel
then obvisouly not. sepy is not a bad editor, but it should surely point out things like that. fdt is the way :) On 5/15/06, Kent Humphrey <[EMAIL PROTECTED]> wrote: I'm using SEPY on OSX, good enough for you? ;> On 11 May 2006, at 14:06, Johannes Nel wrote: > get a proper as editor i would s

Re: [Flashcoders] xpath xml strangeness

2006-05-15 Thread Kent Humphrey
I'm using SEPY on OSX, good enough for you? ;> On 11 May 2006, at 14:06, Johannes Nel wrote: get a proper as editor i would say ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf

Re: [Flashcoders] xpath xml strangeness

2006-05-11 Thread Johannes Nel
get a proper as editor i would say On 5/11/06, Serge Jespers <[EMAIL PROTECTED]> wrote: You're welcome... I mixup capitals all the time so it was the first thing I looked at ;-) Serge > Unbelievable! > > Thanks a lot Serge, you're a lifesaver :> > _

Re: [Flashcoders] xpath xml strangeness

2006-05-11 Thread Serge Jespers
You're welcome... I mixup capitals all the time so it was the first thing I looked at ;-) Serge Unbelievable! Thanks a lot Serge, you're a lifesaver :> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archiv

Re: [Flashcoders] xpath xml strangeness

2006-05-11 Thread Kent Humphrey
Unbelievable! Thanks a lot Serge, you're a lifesaver :> On 11 May 2006, at 13:50, Serge Jespers wrote: Could it be just a plain old typo? XPath is with capital X and capital P. In the perm_items line you wrote Xpath Serge These lines of code work: menu_root = XPath.selectNodes(this, "ro

Re: [Flashcoders] xpath xml strangeness

2006-05-11 Thread Serge Jespers
Could it be just a plain old typo? XPath is with capital X and capital P. In the perm_items line you wrote Xpath Serge These lines of code work: menu_root = XPath.selectNodes(this, "root/menu/item/@name"); trace('menu_root: ' + menu_root); These don't: perm_items = Xpath.selectNodes(this,

Re: [Flashcoders] xpath xml strangeness

2006-05-11 Thread John Mark Hawley
perm/item has no children with 'name' attributes. It has no children at all... Kent Humphrey wrote: ok, been banging my head against a wall for ages on this one. These lines of code work: menu_root = XPath.selectNodes(this, "root/menu/item/@name"); trace('menu_root: ' + menu_root); These don

Re: [Flashcoders] XPath Problem

2006-04-30 Thread erixtekila
OK, I get it. It's definitively a problem of reference. In order to filter an already filtered XMLNode, you've got to clone it before. XMLNode has such a function, cloneNode. So your example should work like this : function parseXML(xmlData) { countriesList = XPath.selectNodes(xmlData

Re: [Flashcoders] XPath Problem

2006-04-30 Thread erixtekila
That's because you're searching from the country-node, that's the structure you're searching in. Forget about all its parentnodes, we're talking about a new xml-document here. var countriesList:Array = XPath.selectNodes(xmlData, "/map/country"); for (var i=0; i var countryName:XMLNode = XPath.

Re: [Flashcoders] XPath Problem

2006-04-30 Thread Kevin Cannon
Bart, Thanks for the explanation, I understand it a better now. Cheers, - Kevin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you b

Re: [Flashcoders] XPath Problem

2006-04-30 Thread Bart Wttewaall
That's because you're searching from the country-node, that's the structure you're searching in. Forget about all its parentnodes, we're talking about a new xml-document here. var countriesList:Array = XPath.selectNodes(xmlData, "/map/country"); for (var i=0; i: On Sun, Apr 30, 2006 at 10:39:23

Re: [Flashcoders] XPath Problem

2006-04-30 Thread Kevin Cannon
On Sun, Apr 30, 2006 at 10:39:23AM -0400, Howard Nager wrote: > Any chance you can show an example of what your xml file looks like? > I was goign to suggest that you try: > > countryName = XPath.selectNodes(country, "./name"); > or > countryName = XPath.selectNodes(country, "./country/name"

RE: [Flashcoders] XPath Problem

2006-04-30 Thread Howard Nager
Any chance you can show an example of what your xml file looks like? I was goign to suggest that you try: countryName = XPath.selectNodes(country, "./name"); or countryName = XPath.selectNodes(country, "./country/name"); But I can't be sure without looking at the xml structure. -O

Re: [Flashcoders] XPath, apostrophe, XPath's escape chars?

2006-04-10 Thread Ramon Miguel M. Tayag
Steve, Thanks, I'll try using quotes. I do used ' all the time, but it becomes an apostrophe somewhere there when Flash loads the XML doc. Thanks! On 4/10/06, Steve Webster <[EMAIL PROTECTED]> wrote: > Ramon, > > > I need to search an XML via a string that may contain apostrophes. > > > > ex.:

Re: [Flashcoders] XPath, apostrophe, XPath's escape chars?

2006-04-10 Thread Steve Webster
Ramon, I need to search an XML via a string that may contain apostrophes. ex.: var sDesc:String = XPath.selectNodes(_xml, "//[EMAIL PROTECTED]'" + sReleasedLabel + "']/@writeup")[0]; Is there a way to escape the apostrophe? The problem is that the sReleasedLabel, which contains "Chinese New

Re: [Flashcoders] XPath hangs

2006-04-03 Thread Yotam Laufer
I can't get it to work. Saved it as a file, new FLA, still hangs. MX2004, FP7. On 03/04/06, Bart Wttewaall <[EMAIL PROTECTED]> wrote: > I've tested it and it just works like a charm. No hangup or anything. ___ Flashcoders@chattyfig.figleaf.com To change

Re: [Flashcoders] XPath hangs

2006-04-03 Thread Bart Wttewaall
I've tested it and it just works like a charm. No hangup or anything. I'm using Flash 8 & AS2 by the way and the latest release of xfactorstudio's XPath import DepthManagerTest; import nl.mediamonkey.xml.XMLLoader; import mx.utils.Delegate; import com.xfactorstudio.xml.xpath.XPath; var test = new

Re: [Flashcoders] XPath hangs

2006-04-03 Thread Yotam Laufer
Hi Ron, I don't see how that should change anything, but in any case I don't have the option to do so. Even if I omit the value and search only for //[EMAIL PROTECTED]'ThumbnailFilename'] it will still hang. Thanks, Yotam. ___ Flashcoders@chattyfig.figl

Re: [Flashcoders] XPath hangs

2006-04-03 Thread Ron Wheeler
What happens if you put the value in a CDATA? Ron Yotam Laufer wrote: Hi List, I've been using xfactor studio's XPath class for AS 2.0 but have been experiencing some problems with a specific path. I've got this XML: http://www.w3.org/2001/XMLSchema"; xmlns:xsi=" http://www.w3.org/2001/XMLS

RE: [Flashcoders] XPath problems with single character value nodes

2006-03-14 Thread Chaitu Vadlapatla
-- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wade Arnold Sent: Saturday, March 11, 2006 3:17 PM To: Flashcoders mailing list ; Adrian Park Subject: Re: [Flashcoders] XPath problems with single character value nodes Thanks Adrian for following up on this. We are having issu

Re: [Flashcoders] XPath problems with single character value nodes

2006-03-11 Thread Wade Arnold
Thanks Adrian for following up on this. We are having issues with parsing the content feed from the weather.com api. http://www.t8design.com/personal/chaitu/Weather/weather_proxy.php?id=USIA088 5 On 3/11/06 10:58 AM, "Adrian Park" <[EMAIL PROTECTED]> wrote: > I've done some investigation on

Re: [Flashcoders] XPath problems with single character value nodes

2006-03-11 Thread Adrian Park
I've done some investigation on nthis issue and found this... If you modify your path like this (note the /text() at the end) you should get the value correctly... var e = XPath.selectNodesAsString (this,"/weather/dayf/[EMAIL PROTECTED]'4']/[EMAIL PROTECTED]'d']/icon/text()"); Interestingly, if

Re: [Flashcoders] XPath problems with single character value nodes

2006-03-11 Thread erixtekila
Le 11 mars 06, à 11:27, Adrian Park a écrit : I encountered exactly the same issue on the project I'm currently working on. I got around the problem by using XPath.selectNodes rather than XPath.selectNodesAsString. Please send a mail to XPath author to get this fixed. --- erixtekila h

Re: [Flashcoders] XPath problems with single character value nodes

2006-03-11 Thread Adrian Park
I encountered exactly the same issue on the project I'm currently working on. I got around the problem by using XPath.selectNodes rather than XPath.selectNodesAsString. Then I just used something like (continuing from your example): e = String( e.firstChild.nodeValue ); Not ideal but it got the

Re: [Flashcoders] XPATH Question

2006-03-01 Thread Chris Allen
Try this: /Localidades/Localidad[idLocalidad='83' or idComunidadAutonoma='15'] That should work for you. On 3/1/06, julian atienza <[EMAIL PROTECTED]> wrote: > I have this XML > > > 83 >34 >15 > > > 106 >35 >15 > > > > > And want to generate a XPATH to select all n

Re: [Flashcoders] XPATH Question

2006-03-01 Thread kada zuro
try using "or" for the xpath query Localidades/Localidad[idLocalidad=83 or idComunidadAutonoma=15] sample: import mx.xpath.XPathAPI; z = new XML('8334151063515'); var thePath_str:String = "Localidades/Localidad[idLocalidad=83 or idComunidadAutonoma=15]"; var result_array:Array = XPathAPI.selectNo

Re: [Flashcoders] xpath - returning object not string?

2006-02-03 Thread Kent Humphrey
But doesn't that object get put into the array (clientList - declared as an array earlier), and I'm targeting a single item in the array? On 3 Feb 2006, at 12:16, Alias wrote: Your query will return a list of objects which have the attribute "name". There may be more than one of them, hence y

Re: [Flashcoders] xpath - returning object not string?

2006-02-03 Thread Alias
Your query will return a list of objects which have the attribute "name". There may be more than one of them, hence you get the object. HTH, Alias On 2/3/06, Kent Humphrey <[EMAIL PROTECTED]> wrote: > Continuing my further adventures in xpath land: > > clientList = XPath.selectNodes(this, "root/c

Re: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Chris Kennon
ECTED] On Behalf Of Kent Humphrey Sent: Thursday, February 02, 2006 5:36 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] xpath / xpath4as2 beginners question Merrill, Jason wrote: It's well formed, sure, but I would do it like this instead - make heavy use of attributes -

RE: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Merrill, Jason
---Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Kent Humphrey >>Sent: Thursday, February 02, 2006 5:44 PM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] xpath / xpath4as2 beginners question >

Re: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Kent Humphrey
Merrill, Jason wrote: Xpath is quick enough to read it directly each time. It's what I like about it. Fantastic. Thanks for all the info. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/fl

RE: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Merrill, Jason
mphrey >>Sent: Thursday, February 02, 2006 5:36 PM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] xpath / xpath4as2 beginners question >> >>Merrill, Jason wrote: >>> It's well formed, sure, but I would do it like this instead - make heavy >&g

Re: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Kent Humphrey
Merrill, Jason wrote: It's well formed, sure, but I would do it like this instead - make heavy use of attributes - as much as possible for speed, relationships, and readability, something like this: Preferrably if you could find a way to work this, you could also maybe just do this to reduce r

RE: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Merrill, Jason
rdize. >>> >>> Jason Merrill | E-Learning Solutions | icfconsulting.com >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>>> -Original Message- >>>>> From: [EMAI

Re: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Chris Kennon
inal Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Chris Kennon Sent: Thursday, February 02, 2006 2:19 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] xpath / xpath4as2 beginners question Hi, After reading this article, I'm confused why client na

RE: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Merrill, Jason
.com >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Chris Kennon >>Sent: Thursday, February 02, 2006 2:19 PM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] xpath / xpath4as2 beginne

Re: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Chris Kennon
n Behalf Of Kent Humphrey Sent: Thursday, February 02, 2006 12:01 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] xpath / xpath4as2 beginners question On 2 Feb 2006, at 15:48, Merrill, Jason wrote: However, not a good idea to have a child node be the same name as the parent node (thoug

RE: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Merrill, Jason
iginal Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Kent Humphrey >>Sent: Thursday, February 02, 2006 12:01 PM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] xpath / xpath4as2 beginners question >> >>

Re: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Kent Humphrey
On 2 Feb 2006, at 15:48, Merrill, Jason wrote: However, not a good idea to have a child node be the same name as the parent node (though it's OK in the sense it that won't screw up Xpath). Would you believe my problem was I had product/products instead of product/products ?! Sheesh...

RE: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Merrill, Jason
Try: XPath.selectNodes(this,"product/products/text()"); Instead. What does your XML look like? For the above to work, it would have to be: Hi there. However, not a good idea to have a child node be the same name as the parent node (though it's OK in the sen

Re: [Flashcoders] Xpath and aphostrophes

2005-12-14 Thread Helmut Granda
AM Subject: Re: [Flashcoders] Xpath and aphostrophes Ok I found where the problem is, when I run this command: XPath.selectNodes (myDoc,"/Node[Attribute = '"+SearchTermWithAphostrophe+"']"); It goes into an infinite loop, does anyone has any idea why the Sea

Re: [Flashcoders] Xpath and aphostrophes

2005-12-14 Thread Helmut Granda
ginal Message - From: Helmut Granda [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: 12/14/05 12:31 AM Subject: Re: [Flashcoders] Xpath and aphostrophes Ok I found where the problem is, when I run this command: XPath.selectNodes (myDoc,"/Node

Re: [Flashcoders] Xpath and aphostrophes

2005-12-14 Thread grant
t: 12/14/05 12:31 AM Subject: Re: [Flashcoders] Xpath and aphostrophes > Ok I found where the problem is, when I run this command: > > XPath.selectNodes (myDoc,"/Node[Attribute = > '"+SearchTermWithAphostrophe+"']"); > > It goes in

Re: [Flashcoders] Xpath and aphostrophes

2005-12-13 Thread Helmut Granda
Ok I found where the problem is, when I run this command: XPath.selectNodes (myDoc,"/Node[Attribute = '"+SearchTermWithAphostrophe+"']"); It goes into an infinite loop, does anyone has any idea why the SearchTermWithAphostrophe would trigger the infinite loop? TIA. Helmut Helmut Granda wr

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-09 Thread grant
Merrill, Jason [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: 12/9/05 1:36 PM Subject: RE: [Flashcoders] Xpath and HTML tags inside XML bug? > Don't know if this helps, but for html, you set: > > textArea.html = true; > then: > textAr

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-09 Thread Merrill, Jason
Don't know if this helps, but for html, you set: textArea.html = true; then: textArea.text = thestring; ,but for textField, you set: textField.html = true; then: textField.htmlText = thestring; But you probably knew that. I think that's really confusing the way Macromedia coded that. Guess t

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-09 Thread grant
I'm having the same issue even without XPATH, I have a CDATA section in my XML and the text field renders the text and the HTML tags without rendering HTML, if I cut and paste the HTML to a string and set the text field to that it works as expected. I've done this before and it worked, differen

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Sweet that works. thanks for the update! ;) Mike Boutin Juicy Studios Merrill, Jason wrote: By the way Martin, I hope I didn't come across as being unappreciative - thanks again for your help. Mike too. Mike, if it's any less painful, while not pretty, I knocked it down to a single line and

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
By the way Martin, I hope I didn't come across as being unappreciative - thanks again for your help. Mike too. Mike, if it's any less painful, while not pretty, I knocked it down to a single line and this works: myText=XMLNode((XPath.selectNodes(myxml,"myNodePath/mynode()")[0])).node Value; Ja

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Morten Barklund Shockwaved Sent: Wednesday, December 07, 2005 4:02 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Xpath and HTML tags inside XML bug? Mike Boutin wrote: even in this case the result is undefined string = XPath.selectNodes(my_xml, "/pathto[1]/xml").nodeV

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
Solutions | icfconsulting.com >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Morten Barklund Shockwaved >>Sent: Wednesday, December 07, 2005 4:02 PM >>To: Flashcoders mailing list >>Subject: Re: [Fl

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Perfect, thanks for the help! Morten Barklund Shockwaved wrote: Mike Boutin wrote: even in this case the result is undefined string = XPath.selectNodes(my_xml, "/pathto[1]/xml").nodeValue; I've just gotten the libraries, and it is exactly as I expected. selectNodes returns an Array of

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Morten Barklund Shockwaved
Mike Boutin wrote: even in this case the result is undefined string = XPath.selectNodes(my_xml, "/pathto[1]/xml").nodeValue; I've just gotten the libraries, and it is exactly as I expected. selectNodes returns an Array of XMLNode-objects. Even the notion of /text() is just to get the node, w

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Where is the documentation on selectSingleNode It doesnt seem to be in flash 8 help files. Johannes Nel wrote: use the selectSingleNode method or use the array accessor On 12/7/05, Mike Boutin <[EMAIL PROTECTED]> wrote: even in this case the result is undefined string = XPath.selectNodes

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Johannes Nel
use the selectSingleNode method or use the array accessor On 12/7/05, Mike Boutin <[EMAIL PROTECTED]> wrote: > > even in this case the result is undefined > > string = XPath.selectNodes(my_xml, "/pathto[1]/xml").nodeValue; >>j:pn > >> > >> > >> > > > > > > > >-- > >j:pn > >___

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
even in this case the result is undefined string = XPath.selectNodes(my_xml, "/pathto[1]/xml").nodeValue;

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
string = XPath.selectNodes(my_xml, "/path/to/nodes").nodeValue; This results in undefined. Johannes Nel wrote: try dropping the last slash in ur xpath statement On 12/7/05, Merrill, Jason <[EMAIL PROTECTED]> wrote: Why is it a workaround? Doesn't the XPath return the XMLNode? I haven't us

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
>>I was able to use xpath to return some html then use >>nodeValue on that. Can you send me an actionscript example of how you did that? I'm not even that far yet. This returns "undefined": myNode = XPath.selectNodes(config_xml,"config/welcome/introduction"); This works and returns the string (

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Johannes Nel
sorry no, u r doing a query which returns an array, try slectSingleNode, and that will work On 12/7/05, Johannes Nel <[EMAIL PROTECTED]> wrote: > > try dropping the last slash in ur xpath statement > > On 12/7/05, Merrill, Jason <[EMAIL PROTECTED] > wrote: > > > > >>Why is it a workaround? Doesn't

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Johannes Nel
try dropping the last slash in ur xpath statement On 12/7/05, Merrill, Jason <[EMAIL PROTECTED]> wrote: > > >>Why is it a workaround? Doesn't the XPath return the XMLNode? > >>I haven't used this XPath-extension, but maybe I should check i out. > > Morten, I'm not sure it returns the actual node -

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
SUCKS. Jason Merrill | E-Learning Solutions | icfconsulting.com >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Mike Boutin >>Sent: Wednesday, December 07, 2005 2:46 PM >>To: Flashcoders mailing l

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
>>Why is it a workaround? Doesn't the XPath return the XMLNode? >>I haven't used this XPath-extension, but maybe I should check i out. Morten, I'm not sure it returns the actual node - it might convert it to another object instead because I too cannot get your suggestions to work. Could you send

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
I was able to use xpath to return some html then use nodeValue on that. but I *wish* i could just do /xmlnode/xmlnode/text() and cut nodeValue out but i dont think its possible. Morten Barklund Shockwaved wrote: Mike Boutin wrote: Still wasnt able to get it working. I had to resort to u

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Morten Barklund Shockwaved
Mike Boutin wrote: Still wasnt able to get it working. I had to resort to using nodeValue instead. pain in the ass Why is it a workaround? Doesn't the XPath return the XMLNode? You can't just use the regular toString-method of the XMLNode-object - that'll return the wrong encoding. The nodeV

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Still wasnt able to get it working. I had to resort to using nodeValue instead. pain in the ass Mike Boutin Juicy Studios Merrill, Jason wrote: Quote: http://www.w3.org/TR/xpath#section-Expressions I can never seem to make heads or tails of the w3.org documentation - maybe I'm just

RE: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Merrill, Jason
>>Quote: http://www.w3.org/TR/xpath#section-Expressions I can never seem to make heads or tails of the w3.org documentation - maybe I'm just dumb, but it's always information overload to me. Mike, since we seem to be having the exact same problem, did you get it working? If so, can you send a c

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Quote: http://www.w3.org/TR/xpath#section-Expressions Each character within a CDATA section is treated as character data. Thus, || in the source document will treated the same as |<|. Both will result in a single |<| character in a text node in the tree. Thus, a CDATA section is treated as if

Re: [Flashcoders] Xpath and HTML tags inside XML bug?

2005-12-07 Thread Mike Boutin
Yes this is how I have been fixing the problem. Seems like a pain to have to use both methods, rather than just using the xpath. Morten Barklund Shockwaved wrote: Merrill, Jason wrote: [...] Problem overview: using Xpath, HTML tags inside of XML does not render, even with CDATA tags appli

  1   2   >