This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
It's not a secret anymore!