• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

element content

 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<xml id="note">
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
</xml>


1. The text between start tag and end tag of an element is called an
element content.
Example: In the <to> element "jani" is the element content

2. The <note> element has only other child elements, and not
text it is said to have element content.
Since <to>, <from>, <heading>, <body> have only text as child, they are
said to have simple content.

Question: Some one please tell me which one is a element content.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first and fifth hits when Googling for "xml element content" explain the concept quite clearly.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javadocs for org.w3c.dom.Node have a great table that summarizes the contents of the various kinds of Node (including Element).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic