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
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
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
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
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
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
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
>>
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
>>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
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
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
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,
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
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[...]" )
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
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
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
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
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:
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
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
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
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
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
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
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
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://
>
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
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
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
__
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
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
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
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
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 :>
>
_
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
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
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,
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
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
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.
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
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
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"
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
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.:
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
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
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
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
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
--
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
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
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
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
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
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
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
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
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
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 -
---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
>
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
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
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
rdize.
>>>
>>> Jason Merrill | E-Learning Solutions | icfconsulting.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>> -Original Message-
>>>>> From: [EMAI
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
.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
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
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
>>
>>
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...
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> >___
even in this case the result is undefined
string = XPath.selectNodes(my_xml, "/pathto[1]/xml").nodeValue;
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
>>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 (
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
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 -
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
>>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
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
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
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
>>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
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
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 - 100 of 117 matches
Mail list logo