Create and append external DOMEntity's?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I have a question about PHP5's DOM, but I found the docs on this
section are either incomplete or incorrect (e.g. wrong return types for
several functions). How can external entities, or entities in general,
be added to a DOMDocument? (I'm not asking about adding entity
references because DOMDocument->createEntityReference works like a

I should probably state the details around the problem: I am working on
a templating engine that utilizes PHP5's DOM interface
( for details) so for caching purposes if I can
make the output document include cached versions of other templates via
external entities (XInclude is already used, but not it isn't supported
very well on the client side), then any client-side caching can also be

David N. Q. Duong

Site Timeline