[XML-SIG] xml.dom, Ranges, and DocumentFragments

Jed Parsons jedp@ilm.com
Thu, 21 Mar 2002 12:18:45 -0800 (PST)

Hi, all,

I'm looking for a way to display diffs between two xml files as
reported by CVS.  I've been phrasing the problem this way in my mind:
Given an XML document, take a fragment of that document and find its
root container.

Such a fragment does not necessarily qualify as a DOM2 "Range," since
it might not fall between a pair of boundary points.  But since the
fragment, its context in the original document, and the entire
document itself are given, it (seems like it) should be possible to
"spread" the fragment out at each end to a proper boundary point.

Does anyone know of any solutions already out there?  I've sought, but
have not found.  (I'm also new to the mysteries of DOM, so pardon any
foolish questions :-)

Many thanks in advance for any advice.  Cheers,


(And pardon the Perl sig :-)

Jed Parsons       Industrial Light + Magic  (415) 448-2974 
"++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0.  What!?")));