Zend
200-710 · Question #165
What DOMElement method should be used to check for availability of a non-namespaced attribute?
The correct answer is C. hasAttribute(). See the full explanation below for the reasoning.
XML & Web Services
Question
What DOMElement method should be used to check for availability of a non-namespaced attribute?
Options
- AgetAttributeNS()
- BgetAttribute()
- ChasAttribute()
- DhasAttributeNS()
How the community answered
(45 responses)- A9% (4)
- B4% (2)
- C71% (32)
- D16% (7)
Topics
#DOMElement#hasAttribute#XML attributes#DOM methods
Community Discussion
No community discussion yet for this question.