I would like to implement a custom processing with JAXB on XML like:
<?xml version="1.0" encoding="UTF-8"?>
<changelog>
<include file="relative/path/to/file.xml" />
</changelog>
And file.xml would be something like this (possibly defining include elements as well):
<?xml version="1.0" encoding="UTF-8"?>
<changelog>
<changeset ....>
</changelog>
Resulting in this example in the following equivalent XML (notice that the root element of file.xml is not included):
<?xml version="1.0" encoding="UTF-8"?>
<changelog>
<changeset ....>
</changelog>
Is it feasible with JAXB? I know this totally mimics XInclude, but the latter is not supported by all parsers and requires more boilerplate.
Thanks in advance, Rolf
No comments:
Post a Comment