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 Entity includes 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 "Entity includes" Watch "Entity includes" New topic

Entity includes

Tony Morris
Ranch Hand

Joined: Sep 24, 2003
Posts: 1608
I can include a file into a document using an entity declaration in the doctype then use &entity; What if within the file that I am including I also want to include a file? It seems that files that are included cannot have a doctype* - so does that mean it simply cannot be done? One cannot include a file that includes a file using entities?

* I get a parse error if I attempt it and: "The one thing to make sure of is that the included file must not have an XML or DOCTYPE Declaration on it."

Tony Morris
Java Q&A (FAQ, Trivia)
I agree. Here's the link:
subject: Entity includes