[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-xml
Subject:    Q: howto merge two DOM trees?
From:       "E.L. Willighagen" <egonw () sci ! kun ! nl>
Date:       2000-07-20 15:48:26
[Download RAW message or body]


Hi all,

i have the following problem:

given two DOM trees containing the following XML data:

DOM1:
<themes>
  <theme id="appl">
    <title xml:lang="nl">Toepassingen</title>
  </theme>
</themes>

DOM2:
<themes>
  <theme id="appl">
    <title xml:lang="en">Applications</title>
  </theme>
</themes>

and i want to merge them into:

<themes>
  <theme id="appl">
    <title xml:lang="en">Applications</title>
    <title xml:lang="nl">Toepassingen</title>
  </theme>
</themes>

Is this possible with current XML::DOM or other modules/scripts?

yours,

Egon Willighagen
_______________________________________________
Perl-XML mailing list
Perl-XML@listserv.ActiveState.com
http://listserv.ActiveState.com/mailman/listinfo/perl-xml

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic