aspose file tools*
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "java element" Watch "java element" New topic
Author

java element

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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: http://aspose.com/file-tools
 
subject: java element