Is there an already existing program which can do a "diff" of two
different XML files? I think I can use Xerces-J2 to write one. I could
use the output being something like:

xmldiff file1 file2

file1:
<people>
<person><name><first>Jill</first><middle>Karen<middle><last>Murphy</last>
</name></person>
</people>

file2:
<people>
<person><name><first>Jill</first><middle>Karen</middle><last>Sabine</last>
</name></person>
</people>

output:

<people>
<person><first>Jill</first><middle>Karen</middle><last><old>Murphy</old><new>Sabine</new></last>
</name></person>
</people>

Or perhaps a "field level" diff from a "flat file". I can generate a
database unload in a "flat file" with multiple record types in a single.
I can also take that "flat file" along with a record descriptor file
(schema?) and from it generate an XML file (using Perl). Or maybe I
should just write my own from the XML generating Perl program to read
the record descriptor file and the two flat files. The flat files are
"in order" by a "record key". I just need to know: "key ... exists in
both files all fields are the same"; "key ... exists only in one file
and the field values are ..." (to generate command to sync the data);
"key ... exists in both files but field(s) in file one is ... while in
file two is ..." (again to review and possibly use to sync the data).

Thanks for your thoughts. I use Perl simply because I know it fairly
well compared to Java or Python or Ruby. And Perl exists on z/OS whereas
I don't think there is a Python or Ruby port on z/OS.

--
John McKown
Maranatha! <><

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to