M
Magnus Warker
Hi,
I have an XML-File in the classpath and I read it in with
getResourceAsStream (Pseudocode):
InputStream stm = class.getResourceAsStream (...);
DocumentBuilderFactory ftr = DocumentBuilderFactory.newInstance ();
ftr.setIgnoringComments (true);
DocumentBuilder bld = ftr.newDocumentBuilder();
Document doc = bld.parse (stm);
Now I would like to source out some of the contents into separate
xml-files and include them into the main file.
Is this possible, in particular when the files are loaded as resource
stream?
How can I do that? WhatÄs the syntax for the include directives?
Thanks
Magnus
I have an XML-File in the classpath and I read it in with
getResourceAsStream (Pseudocode):
InputStream stm = class.getResourceAsStream (...);
DocumentBuilderFactory ftr = DocumentBuilderFactory.newInstance ();
ftr.setIgnoringComments (true);
DocumentBuilder bld = ftr.newDocumentBuilder();
Document doc = bld.parse (stm);
Now I would like to source out some of the contents into separate
xml-files and include them into the main file.
Is this possible, in particular when the files are loaded as resource
stream?
How can I do that? WhatÄs the syntax for the include directives?
Thanks
Magnus