It's not a secret anymore!
The moose likes XML and Related Technologies and the fly likes java element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "java element" Watch "java element" New topic

java element

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238

I was going through XMl document and read as

'XML elements are declared with an element declaration. An element declaration has
the following syntax:
<!ELEMENT element-name category>
<!ELEMENT element-name (element-content)>
Here, category can be EMPTY or ANY. EMPTY

I have not understood what they exactly meant by it. Any suggestions, ideas, links, resources highly appreciated. Thanks in advance
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

The document you're reading is describing the syntax of a DTD, a "Document Type Definition", a somewhat outdated method for describing XML documents. The example is a rather literal example of what the allowed content would look like.

Neither DTDs nor XML itself have anything to do with Java, so your title "Java element" is confusing! I'm going to move this thread to our XML forum; feel free to ask followup questions.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: java element
It's not a secret anymore!