wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes is attribute node a child node of its enclosing element?  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "is attribute node a child node of its enclosing element?  " Watch "is attribute node a child node of its enclosing element?  " New topic
Author

is attribute node a child node of its enclosing element?

Chrix Wu
Ranch Hand

Joined: Nov 15, 2009
Posts: 121

is lang attribute node a child of title element node?

if not, they are not sibling neither,

so what are their relationship?


** SCJP 5.0 84% **
** SCWCD 1.5 76% **
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Attributes are different then children. It's an attribute.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Chrix Wu
Ranch Hand

Joined: Nov 15, 2009
Posts: 121
Jeanne Boyarsky wrote:Attributes are different then children. It's an attribute.


ok
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

One of the properties of the element in the DOM is a NodeList element that is used to store the attributes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: is attribute node a child node of its enclosing element?
 
Similar Threads
Problem in getNodeValue()
Page 123
XPath
Parsing a TreeModel structure
XML Parsing.