top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is E4X in reference to XML?

0 votes
409 views
What is E4X in reference to XML?
posted Jan 2, 2018 by Sathaybama

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The E4X is a java script standard that is officially released by them. It extends the direct support of xml in java scripts. It allows the user to declare a xml variable in the same way an array is declared.

For Example:

var x = new XML()
var employees=
<employees>
<person>
     <name>Tove</name>
     <age>32</age>
</person>
<person>
     <name>Jani</name>
     <age>26</age>
</person>
</employees>;

document.write(employees.person.(name == "Tove").age);

The E4X on being used by the user greatly reduces the amount of code that has to be written to execute an operation.

answer Jan 2, 2018 by Shivaranjini
...