• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getAttribute() and getAttributeNode()

 
xiaoma wang
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, everyone in the ranch:
When i read the PXML, i am confused by the methods in the Element class. In the DOM tree, attributes are considered to be properties of an element, rather than separate nodes in their own right. But why in the Element class, we need getAttribute() and getAttributeNode() methods? I think only the getAttribute() is enough. Can anybody help me to clear it out?
Thanks in advance!
Xiaoma Wang
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic