adplus-dvertising
frame-decoration

Question

Which of the following is used to add an attribute to an element node?

a.

setAttr()

b.

setAttribute()

c.

addAttribute()

d.

addAttr()

Answer: (b).setAttribute()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following is used to add an attribute to an element node?

Similar Questions

Discover Related MCQs

Q. Which of the following methods is used to get a particular element?

Q. Which of the following attributes returns the name of an element?

Q. Which of the following methods is used to instruct the parse to validate on XML document against a DTD?

Q. Which of the following methods is used to parse an XML document?

Q. Which of the following methods is used to clone a node?

Q. Xpath is a language used to find information in a

Q. Which of the following is a major part of W3C’s XSLT standard?

Q. Xpath is a language used to navigate through

Q. Which of these are based on x path expression?

Q. Which of the following is true regarding x path?

Q. Which of the following are not supported by X path?

Q. Which of the following is used to select a set of nodes in X path?

Q. Which of the following uses X path expression?

Q. Which of the following support the same set of operators and functions?

Q. Which of the following X path expressions selects first four p elements in the document?

Q. Which of the following is not a kind of X path node?

Q. Which of the following X path expression selects all color attributes in the XML document?

Q. Which of the following is not a valid X path expression?

Q. In X path, predicates are used to find

Q. Which of the following is not a valid X path axis?