• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java element

 
Mathew Lee
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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>
or
<!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
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic