File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "element content " Watch "element content " New topic
Author

element content

Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
<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.


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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
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: http://aspose.com/file-tools
 
subject: element content