Questions tagged [e4x]

E4X was an extension to ECMAScript which allowed for native handling of XML.

ECMAScript For XML (E4X) was an extension to ECMAScript which allowed use of XML literals, as well as accessors and filters for working with such XML. Its ability to allow embedding of JavaScript also was convenient for building XML-based templates.

Standardized in ECMA-357, it was supported in Mozilla's Spidermonkey and Rhino Javascript engines, and was included in the Firefox web browser between versions 1.5 and 20.

Warning: E4X is obsolete. It has been disabled by default for webpages (content) in Firefox 17, disabled by default for chrome in Firefox 20, and has been removed in Firefox 21. Use DOMParser/DOMSerializer or a non-native JXON algorithm instead.

More information can be found at https://developer.mozilla.org/en/e4x

260 questions
0
votes
1 answer

Use Flash E4X with Bing

I'm using Action Script 3.0, and am using E4X to parse some XML files. It was working fine, until I began using Bing's xml result file. Here's a sample of Bing's XML result:
0
votes
1 answer

Better way to escape braces in E4X?

I have some XML I'm generating with {} characters, which are of course used for substitution. It's hard to find any info on this: MDC is usually great documentation, but it doesn't mention anything about how to put brace literals in an E4X…
Ken
  • 613
  • 4
  • 6
0
votes
1 answer

XML, Namespaces, E4X

I have this XML file: var k= Test how can i…
J.Doe
  • 9
  • 2
0
votes
2 answers

e4x / as3: How to access a node with a dash in its name

the e4x implementation in as3 doesn't seem to be able to handle node names that have dashes in them. The musicbrainz api returns xml with a node named artist-list and i can't seem to get it to let me access the node. sample from…
greggreg
  • 11,945
  • 6
  • 37
  • 52
0
votes
1 answer

JSON to XML conversion using E4x and javascript

I need to convert an JSON to XML using E4x and javascript where my XML attribute is picked from JSON key. Example: var JSONstr = {"data": {"firstName": "ABC","lastName": "XYZ","email": "test@test.com"}}; and XML output should be . My code snippet is…
Prachi Raj
  • 21
  • 3
0
votes
1 answer

extract data from xmllist using e4x Flex 4

here is a simplification of my problem. I'm trying to extract the number '11' below, but none of my trace statements print anything but empty strings. When I examine the list variable in the debugger, it is not null. Thanks! var…
dt1000
  • 3,684
  • 6
  • 43
  • 65
0
votes
2 answers

Need help with XMLList in Flex

I have XML with the following structure, for example
Timofei Davydik
  • 7,244
  • 7
  • 33
  • 59
0
votes
1 answer

E4x xml empty tag remove

I am trying to delete the XML attributes which is having empty values am using E4X javascript need to achieve. Please help me on this. Code: function xmlparse(xml) { var children = xml.*, attributes = xml.@*, length = children.length(); for each…
nkn
  • 125
  • 1
  • 1
  • 9
0
votes
1 answer

xml nodes will not delete despite calling "delete"

I'm trying to use the delete keyword to remove nodes from an xml file and it just plain won't work. Here's a stripped down example of what I'm working with. Every node has a child named "deleteme". If its value is equal to 1 I want to remove it…
dubbeat
  • 7,706
  • 18
  • 70
  • 122
0
votes
2 answers

Flex & WebServices

We have a Flex application which relies heavily on data driven content supplied via asp.net. Currently the majority of this data is provided via asp.net objects which are then XML serialised and sent via a simple ASHX handler. This is then parsed…
Hawxby
  • 2,746
  • 21
  • 29
0
votes
2 answers

Wildcard for Strings in E4X?

I'm trying to solve an Actionscript problem using E4X. I have an XML like this one:
Pierre
  • 1
0
votes
2 answers

EX4 ActionScript and a minus symbol

I have a XML node with a - (minus) character in it. How can I access this in ActionScript E4X symtax without the compiler recognising the character as a minus operator? E.g. XML
Ross
  • 14,266
  • 12
  • 60
  • 91
0
votes
1 answer

e4x XML filtering between multple category tags

I'm using FLEX and e4x to parse through XML. And the XML looks as follows: I am able to do basic filtering based on tag value. But now I need to filter over items that can have multiple categories. I tried the following: 12345
Bart Gloudemans
  • 1,201
  • 12
  • 27
0
votes
3 answers

ActionScript - Sorting XML File With Array.sortOn()?

i need to sort a large XML file and i've been reading that placing each of the elements into an array is the way to sort the data using Array's sortOn() method. i'm concerned about speed. perhaps storing them into a Vector.< XML > instead of an…
Chunky Chunk
  • 16,553
  • 15
  • 84
  • 162
0
votes
3 answers

Finding index using switch case statement in javascript

I'm using Pentaho(ETL) tool to achieve the output using a javascript component which accepts javascript code to achieve the desired transformation.The following table is imported into pentaho from a .csv file(source file). For example this is my…
Deepesh
  • 820
  • 1
  • 14
  • 32