Have you worked with XML, E4X and web related services? If yes, then you are a big plus to any organization. XML is the most widely used script which is applied to exchange data across different platforms. As an E4X developer you can work on simple syntax of the XML which supports the JavaScript. At wisdomjobs, we provide you with comprehensive information about the knowledge and experience required to apply to different job opportunities related to the E4X job. By browsing this page, you can also get an idea as to the training courses and centres available, where you can specialize yourself in E4X. A complete list of various jobs both, part time and full time is available on our page. You can also find E4X job interview questions and answers that will help you to prepare well for the interview process.
Answer :
The value is first converted to a string and then converted to an XMLList object.
Answer :
delete xmlobject.@attribute;
Question 3. Which Of The Following Is The Correct Way To Create An Xml Object In E4x?
Answer :
var languages XML = new XML('JavaScriptPython');
Question 4. State Whether True Or False: An Arbitrary Xml File Can Be Loaded As An E4x Ready Object?
Answer :
True.
Question 5. Which Of The Following Characters Are Treated As White Space Characters?
Answer :
Line feed, Tab.
Question 6. Which Of The Following Methods Is Not One Of The Global Methods And Properties In E4x?
Answer :
isScopeNamespaces(), removeNamespaces().
Answer :
let.
Answer :
Namespace(), Namespace(uriValue).
Answer :
+=
Answer :
12
Answer :
1-p,2-http://www.example.org
Answer :
element.chair.color="light brown"
Question 13. Which Of The Following Is Not True Of The Namespace Constructor In E4x?
Answer :
If the value is a valid XML name, the prefix property is set to a string.
Question 14. Which Of The Following Public Methods In E4x Has The Return Type Xml?
Answer :
parent()
Answer :
True
Question 16. Which Of The Following Are Not Global Methods And Properties In E4x?
Answer :
setNamespace()
Answer :
alert(test.toXMLString()); , alert(test.elements());
Question 18. What Is The Correct Way To Add A Method To An Xml.prototype In E4x?
Answer :
XML.prototype.method::[methodNameString]
Question 19. Which Of The Following Is Not A Valid Built-in Method For Xmllist Objects In E4x?
Answer :
hasOwnProperty(propertyName)
Question 20. Which Of The Following Is Not A Reserved Keyword In E4x And Javascript?
Answer :
super
Answer :
0
Answer :
p-1,q-0,r-0,s-1
Question 23. Tell Me How Can We Use E4x In Mozilla And Mozilla Based Browers?
Answer :
To make use E4X with Mozilla and Mozilla based browsers (like: Netscape) we used Spidermonkey JavaScript engine. It has been extended to implement E4X but presently we can only use it in nightly trunk builds. The present releases Mozilla 1.7 suite, Firefox 1.0, Netscape 7.2 does not supported E4X.
Question 24. How To Use Of E4x With Xml?
Answer :
Using E4X we can easily use JAvAScript with an XML.
Example:I have written an XML document.
<order>
<date>2009-26-01</date>
<customer>
<firstname>Porus</firstname>
<lastname>Jain</lastname>
</customer>
<item><name>Milk</name>
<qty>4</qty>
<price>100.00</price></item></order>
We can stroe this XML document as an string in variable order.
var order = new XML(txt) or Assign the XML text to the XML object variable directly.
var order = new XML()
order=<order id="010">
<date>2009-26-01</date>
<customer>
<firstname>Porus</firstname>
<lastname>Jain</lastname>
</customer>
<item><name>Milk</name>
<qty>4</qty>
<price>100.00</price>
</item></order>
We can also calculate the price like that,
var total=order.item.qty * order.item.priceCan
we display the customers full name like that,
document.write(order.customer.lastname)
document.write(",")
document.write(order.customer.firstname)
Can add new items like that,
order.item+=<item>
<name>Bread</name>
<qty>5</qty>
<price>70.00</price>
</item>We can display the order id like that,
document.write(order.@id)
We can calculate the total price, when the order has many items like that,
var price=0for each (i in order.item)
{
price+= i.qty*i.price
}
Question 25. Tell About Browser Compatibility With E4x?
Answer :
E4X support limited browsers.No,mainstream browser has supported by E4X.Mozilla engine(1.8)(beta version) is limited support to E4X.We can say that Firebox 1.1 is an first version that support E4X.E4X is also expected to the future version of Internet Explorer.Firefox 1.1: Firefox1.1 can support best for E4X as compare to other browsers.
Question 26. Using E4x How Can We Make Xml Easier To Use?
Answer :
E4X makes easier to use JavaScript to parse and manipulate XML.This is also use to enable XML library or component to act with XML.On different browsers libraries and components perform with different syntax and work differently. I have given you example where I show how to load an existance XML document("message.xml")into XML parser and to show note from message.
Example: Without use of E4X.
var xmlDoc//This code is made only for Internet Explorer.
if (window.ActiveXObject)
{
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.load("message.xml")displaymessage();
}// This code is made for Mozilla, Firefox etc.else (document.implementation
Question 27. Using E4x How Can We Define Xml Document As A Javascript Object?
Answer :
I have given you example to show XML document as JavaScript object.Example:I have you simple XML document.
<message>
<date>2009-26-01</date>
<to>Abhi</to>
<from>Sud</from>
<heading>Don't forget</heading>
Happy Birthday!</message>
We can store this XML document in a string calles as message into an XML object variable vusing JavaScript.var v = new XML(message) or Assign the XML text to the XML object variable directly.var v = new XML()v=<message>
<date>2009-26-01</date>
<to>Abhi</to>
<from>Sud</from>
<heading>Don't forget</heading>
Happy Birthday!</message>
We can use JavaScript like that,document.write(v.from)
Output:Sud
Question 28. What You Understand About Ecma?
Answer :
ECMA(The European Computer Manufacturers Association)international was founded in 1961.
ECMA is an organization made to standardization of information and Communication Technology(ICT) and Consumer Electronics(CE).
We use ECMA standard with
We use E4X to make JavaScript supported with XML.
Question 29. How We Say Javascript As Same As Ecmascript?
Answer :
Because of some reasons we can say that JavaScript is same as ECMAScript.
Question 30. How You Define E4x?
Answer :
E4X stands for ECMAScript(European Computer Manufactures Association) for XML(Extensible Markup Language). We can called as E4X is an programing language extension used to adds the ECMAScript(like: ActionScript,DMDScript,E4X, JavaScript,JScript) to XML.
Example:
var p = new XML()
var q = new Date()
var r = new Array()
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.