Hi,

For example if I delete one element from the second file, then the elements doesn't match with the file anymore and I can't compare the elements raw by raw.

Here my xml files:

file1 Code:
<?xml version="1.0"?>
<PurchaseOrder PurchaseOrderNumber="99503" OrderDate="1999-10-20">
    <Address >
        <Name>Ellen Adams</Name>
        <Street>123 Maple Street</Street>
        <City>Mill Valley</City>
        <State>CA</State>
        <Zip>10999</Zip>
        <Country>USA</Country>
    </Address>
    <Address Type="Billing">
        <Name>Tai Yee</Name>
        <Street>8 Oak Avenue</Street>
        <City>Old Town</City>
        <State>PA</State>
        <Zip>95819</Zip>
        <Country>USA</Country>
    </Address>



file2 Code:
<?xml version="1.0"?>
<PurchaseOrder PurchaseOrderNumber="99503" OrderDate="1999-10-20">
    <Address >
        <Name>Ellen Adams</Name>
        <Street>123 Maple Street</Street>
        <City>Mill Valley</City>
        <State>CA</State>
        <Zip>10999</Zip>
<font color="DarkOrange">     ---- here I deleted -----</font>
    </Address>
    <Address Type="Billing">
        <Name>Tai Yee</Name>
        <Street>8 Oak Avenue</Street>
        <City>Old Town</City>
        <State>PA</State>
        <Zip>95819</Zip>
        <Country>USA</Country>
    </Address>


Now if i print my element1.tag for file 1 and element2.tag I get a output like this:

Code:
Fiel1                            File2
PurchaseOrder              PurchaseOrder
Address                       Address
Name                          Name
Street                         Street
City                            City
State                          State
Zip                              Comment
...                               ....
...                               .....
I want to have it like this:


Code:
Fiel1                            File2
PurchaseOrder              PurchaseOrder
Address                       Address
Name                          Name
Street                         Street
City                            City
State                          State
Zip                             None
...                               ....
...                               .....