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
2 answers

Abstract way to get a XMLList of child nodes by name

I'm trying to build an abstract method to get all the nodes in an XML object by node name. I don't know the structure of the XML ahead of time. So with this code I would like to get a list of all "item" nodes and all "x" nodes: var xml:XML =…
1.21 gigawatts
  • 12,773
  • 23
  • 85
  • 187
0
votes
1 answer

How can I create lists with Parent items of child attributes using E4X?

I'm having trouble getting the results I want using E4X to dig into my XML document. For exampleWhat I want to do, using the XML below, is find all of the d_locations that have the d_type SW, and then create a list of all the SW d_types that…
Mattynabib
  • 263
  • 2
  • 10
0
votes
1 answer

E4x delete node where something in the node equals something

So I have some xml.... goes here goes here
-1
votes
1 answer

Can't get a list of elements from an XML object when using the elements operator?

I have been working with this XML and I'm not able to get a list of the nodes with the elements operator:
1.21 gigawatts
  • 12,773
  • 23
  • 85
  • 187
-2
votes
1 answer

Don't understand this E4X behaviour

I'm trying to grab a property value of a particular node but getting stumped by its behaviour. I have this XML in a data provider: ITEM1
aberrant80
  • 11,732
  • 8
  • 42
  • 62
1 2 3
17
18