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

Javascript in place of json input step

I am loading data from a mongodb collection to a mysql table through Kettle transformation. First I extract them using MongodbInput and then I use json input step. But since json input step has very low performance, I wanted to replace it with…
Deepthi
  • 79
  • 1
  • 7
0
votes
2 answers

Actionscript3 E4X XML and CSS: Do I really have to use CDATA?

When working with CSS inside of XML such as when parsed in flash, if I don't use CDATA like the following: ]]> then the parsed data drops down a line for every "<" character it…
Brian Hodge
  • 2,125
  • 2
  • 19
  • 29
0
votes
1 answer

E4X in Actionscript 3 throwing variable not defined error

I've been using E4X expressions and it has never caused a problem. Today I got this error which is driving me crazy. Checked everything thousand times, searched web, but nothing. So this is my query for the value: var objectName:String =…
Gio
  • 1,954
  • 3
  • 22
  • 42
0
votes
1 answer
0
votes
3 answers

Parsing AS3 XML objects

I am getting an object back from ASP.NET, and when tracing the XML it as follows: var xml:XML = new XML(event.message.body); trace(xml); I get the following output:
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
0
votes
1 answer

How to close elements the HTML-way with e4x-generated XML?

I'm using e4x to generate a HTML-snippet for my users which they can copy & paste into their blogs or web sites: var xml: XML =
Markus Johnsson
  • 3,949
  • 23
  • 30
0
votes
1 answer

Flex Tree Visit Indicators

How do I indicate the visit history on a flex tree component? I want to highlight the clicked/visited nodes to a different color and will not change after that, so that all the visited nodes will be one color. I tried adding an attribute to the…
Vipin
  • 11
  • 3
0
votes
1 answer

Filter XML with E4X

I have this XML: public var translations:XML = first name prénom
Drahcir
  • 11,772
  • 24
  • 86
  • 128
0
votes
1 answer

Is there a way to select a certain number of nodes using e4x in Flex?

Say for example, I have an XML file with 100 "person" nodes, and I want the first 30. Or possibly 51 - 100. Is there any way to do this with e4x syntax to return an XMLList?
eterps
  • 14,198
  • 4
  • 35
  • 46
0
votes
1 answer

get the index of first element to mach a condition in an XMLListCollection Object

I have an XMLListCollection object that contains items with an ID property. I want to find one particular item by id and then get it's index in the collection. This is done to be able to tell the comboBox (whose dataProvider is the…
luca
  • 12,311
  • 15
  • 70
  • 103
0
votes
2 answers

How to access element by an object's field in Actionscript-3 E4X dot operation?

In Actionscript 3, we can access a XML object in a E4X style like: var a:XML = ABC ; trace(a.title); But what if we get the tag name from within an object or class? trace(a.Constants.BOOK_TAG);
Edward Liang
  • 100
  • 1
  • 8
0
votes
2 answers

Issues with most basic e4x test

When I load a page containing e4x in FF 3.5, I get no inkling that e4x even exists in the browser's JS implementation. Notes below, but here's my HTML :
TravisG
0
votes
1 answer

using e4x to retrieve xml from Flex webservice result handler

I'm trying to use e4x to retrieve xml from the result event thrown when my Flex webservice is successful. This is a snippet of the returned xml
cdugga
  • 3,849
  • 17
  • 81
  • 127
0
votes
1 answer

Flex: XMLList of attirubites.... convert to nodes?

say I have an xmllist like this (but with many other attributes not shown for brevity): and I access the metal attributes via xmllist.@metal which will give me a new…
JD Isaacks
  • 56,088
  • 93
  • 276
  • 422