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

External XML and AS3

I want to pass external XML a variable. How do I do this? WHAT I'M AFTER - update my variable with COUNT XML WHAT I'M NOT GETTING - The integer to String values - How to pass XML to a variable link http://videodnd.weebly.com/ time.xml
anon255058
0
votes
1 answer

How to parse XML attribute like this "drools:version"?

I have the next xml element:
Soliman
  • 1,132
  • 3
  • 12
  • 32
0
votes
1 answer

What does :: in an E4X XML statement do?

I have this XML and a statement of code is doing this call: var rootStory:XML = new XML(source); var xml:XML = rootStory..*::TextFlow[0]; What does this line do, rootStory..*::TextFlow[0]? UPDATE: This was the comment that was with it: // Also…
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
0
votes
2 answers

Is there a way to force XML to include closing tags when using toString() or toXMLString()?

When I convert XML to a string it converts empty nodes to a singleton leaf. Is there a way to request that it use closing tags instead of singletons? For example, here is pseudo ActionScript3: var xml:XML = new XML(""); var…
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
0
votes
1 answer

Parsed XML Printing Using E4X: Inconsistent Results?

I'm trying to parse an XML file of tweets as retreived from Twitter's restful API (http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_timeline). The issue is, when I print it using: tweetTextArea.text += xml..text; I get the tweets.…
Humphrey Bogart
  • 7,423
  • 14
  • 52
  • 59
0
votes
2 answers

XML Parsing issue in Flex

I have an XML with more than 10,000 lines,when i am parsing that xml using URLLoader class.i am unable to trace the entire xml.While tracing i am getting xml from the middle.can anyone suggest me how to parse the xml document. Thanks in Advance
prasanth
  • 119
  • 1
  • 10
0
votes
1 answer

Why am I getting this warning: 3594: parent is not a recognized method of the dynamic class XML?

It's coming from this line of code: var dropTargetXML:XML = XMLTemplate.template.component.section.question.(@question_questionID == nNode.parent().@question_questionID)[0]; nNode is an XML node sent as an argument to the function this is called…
invertedSpear
  • 10,864
  • 5
  • 39
  • 77
0
votes
3 answers

Ignoring case on E4X node names and attributes?

Does anyone know of a trick to ignore upper/lower/camelcase on XML node names and attributes? A quick example: I give an XML file to my client which contains an XML attribute named fooID but the client could change the XML, and - not being aware of…
user175957
0
votes
1 answer

AS3/XML - How to get a list of nodes that have a certain tag with value X

I've got an XML file that has many nodes along the lines of this: ... mammal brown I'm hoping to use the tag node as part of a search function for certain animals. So I could collate a…
HalfBit
  • 47
  • 10
0
votes
2 answers

Cannot assign to a non-reference value

I have a strange problem, I have a XMLList with elements who have the attribute position from 0 to x. When I want to add text to a element of that XMLList by the following statement, I get a error message: textElements.(@position == columnIndex) =…
Markus
  • 3,948
  • 8
  • 48
  • 64
0
votes
1 answer

Creating a loop mid-E4X declaration

I am working with some legacy code and have to update a SOAP request that is built using E4X. I have an array of data that I need to loop through and build repeating XML-segments and insert them into the SOAP request. My pseudo example... var myData…
captain_jim1
  • 1,004
  • 1
  • 9
  • 18
0
votes
2 answers

How do I filter out secific nodes of XML?

Take this XML example:
0
votes
1 answer

E4X - set element value where attribute equals

Hoping someone can help me. I have and XML document that looks like this.
IanBram
  • 257
  • 1
  • 3
  • 10
0
votes
3 answers

AS3: Inserting XML Elements Alphabetically By A Property

So I'm having a slightly tricky issue... I'm generating an XML file within a class I'm writing. Let's say this was the starting XML:
grey
  • 1,150
  • 1
  • 19
  • 35
0
votes
1 answer

as3 xml.replace syntax calling

I need to know how to use xml.replace. Here is my code: myXML.replace("WHAT DO PUT HERE?",

testing

); trace(myXML); I need to change the Titles of choice1 and choice2 etc. How do I call them using xml.replace? Here…
Papa De Beau
  • 3,744
  • 18
  • 79
  • 137