Hi Vojtech, Although an XML document may only have a single document (root) element, an external entity does not have this restriction. Take for example two documents, foo.xml and bar.xml: foo.xml contains: <!DOCTYPE foo [ <!ENTITY bar SYSTEM "bar.xml"> ]> <foo> &bar; </foo> and bar.xml contains: <bar>one</bar> <bar>two</bar> <bar>three</bar> then foo.xml is well-formed. bar.xml, if used as a standalone document, is not well-formed. I sometimes use this trick for log files. The application writes log entries to the equivalent of bar.xml, one (parent) element per line. When I want to process the log file I use the equivalent of foo.xml. HTHs, Steve Ball On 02/10/2013, at 6:13 PM, Vojtech Fried <vfried opentext com> wrote:
|