You are a legend, thanks so much!
On 26/09/2007, at 11:27 , Seth Caldwell wrote:
Oh my god Toby, I just spent an hour because I was determined to
learn about namespaces, and found a solution for you. =)
After reading http://www.partlyhuman.com/blog/roger/using-e4x-with-
Thanks to all for the information, I think i just learned more about
ecma standards and e4x than I could have in a few days of reading!
Toby
On 27/09/2007, at 11:11 , shaun wrote:
Hi Peter,
Peter Hall wrote:
You don't need to give the namespace variable the same as the
prefix that
I have been getting caught up with with one for a few weeks now, I keep
forgetting to specify the namespace. I actually think this is a bug,
but I haven't checked the Ecma requirements yet. In XPATH and the like
if you don't specify a namespace in the query it will return all
elements
have a go at
http://www.darronschall.com/weblog/archives/000223.cfm
too.
DK
On 9/26/07, Paul deCoursey [EMAIL PROTECTED] wrote:
I have been getting caught up with with one for a few weeks now, I keep
forgetting to specify the namespace. I actually think this is a bug,
but I haven't checked
Alright, I've read the specs, it's not a bug but in fact it's by
design... a design choice that I would not have made. The deal is if
the namespace is not specified then for elements it matches on the
default namespace, but for attributes it matches on no namespace...
makes not sense to me.
You don't need to give the namespace variable the same as the prefix that
ActionScript gives it when you toString() it. Internally, it doesn't use a
name and just generates one when you convert the XML to a string.
You can give it something more descriptive like:
namespace w3xml =
Hi Peter,
Peter Hall wrote:
You don't need to give the namespace variable the same as the prefix that
ActionScript gives it when you toString() it. Internally, it doesn't use a
name and just generates one when you convert the XML to a string.
You can give it something more descriptive like:
hi all - i'm trying to get the english status from a skype status xml
(below). What I'm not sure how to deal with is the xml:lang
attribute. I'm sure there's a clever way to set the namespace and
use e4x to get out the one i want
but i'm not sure how. I ended up doing this:
for (i=0; i
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Toby
Tremayne
Sent: Tuesday, September 25, 2007 12:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] e4x question
hi all - i'm trying to get the english status from a skype status xml (below).
What I'm not sure how to deal
Oh my god Toby, I just spent an hour because I was determined to learn about
namespaces, and found a solution for you. =)
After reading
http://www.partlyhuman.com/blog/roger/using-e4x-with-xhtml-watch-your-namespaces
I created blah.xml
test
Howdy,
Seth Caldwell wrote:
Oh my god Toby, I just spent an hour because I was determined to learn about
namespaces, and found a solution for you. =)
[snip]
if(event.result.RDF.*::Status.*::presence.(@*::lang==”en”)==”Offline”) status
= “Online”;
Nice one Seth.
Here is another
Finally got my httprequest to work, but the results come back as xml;
I was hoping to use e4x (cause I used to be all about xfactorstudio's
xpath classes) -- but I'm curious how I'd get the toplevel 'success'
response:
results
successfalse/success
user_id/
errorcity can't be
Sorry; nevermind, got it:
xml.success; the root (results) isn't needed.
13 matches
Mail list logo