First of all, I am not sure if this is related to Xalan. If not,
please discard this message.
Say we have a DOM, i.e, org.w3c.dom.Document, is there
a simple way to insert or append the set of nodes into/to
that DOM.
The representation of those nodes mentioned above will
be either NodeIterator or NodeList returned by XPathAPI's
method, selectNodeIterator() or selectNodeList(), respectively.
For example, we have a DOM as follows:
<patient-info>
<patient>
</patient>
</patient-info>
And the set of nodes will be as follows:
<age>38</age>
<gender>female</gender>
So afert either inserting or appending the set of nodes, the
result will be as follows:
<patient-info>
<patient>
<age>38</age>
<gender>female</gender>
</patient>
</patient-info>
Again, is there a way to accomplish this in a simpler manner
instead of parsing the set of nodes and insert or append the
individual nodes one by one. Thanks.
Regards,
Pae