File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes element content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "element content " Watch "element content " New topic

element content

Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
<xml id="note">
<body>Don't forget me this weekend!</body>

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.

Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
The first and fifth hits when Googling for "xml element content" explain the concept quite clearly.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13025
The javadocs for org.w3c.dom.Node have a great table that summarizes the contents of the various kinds of Node (including Element).
I agree. Here's the link:
subject: element content
It's not a secret anymore!