Skip to main content
added 17 characters in body
Source Link
artm
  • 8.6k
  • 3
  • 28
  • 43

try with this xmlDoc=loadXMLDoc("books.xml"); x=xmlDoc.getElementsByTagName("book")[0];

copnsole.log(x.hasAttribute("category"))

xmlDoc=loadXMLDoc("books.xml");
x=xmlDoc.getElementsByTagName("book")[0];

console.log(x.hasAttribute("category"))

try with this xmlDoc=loadXMLDoc("books.xml"); x=xmlDoc.getElementsByTagName("book")[0];

copnsole.log(x.hasAttribute("category"))

try with this

xmlDoc=loadXMLDoc("books.xml");
x=xmlDoc.getElementsByTagName("book")[0];

console.log(x.hasAttribute("category"))
Source Link
Jagan
  • 11
  • 2

try with this xmlDoc=loadXMLDoc("books.xml"); x=xmlDoc.getElementsByTagName("book")[0];

copnsole.log(x.hasAttribute("category"))