Compare two XML-Files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wernerna
    New User
    • Jun 2011
    • 1

    Compare two XML-Files

    Hello,

    my Problem is to compare two XML-Files and ignore some Tag's (Elements)

    here my Syntax:

    <Item>
    <Type>PnP</Type>
    <Seq>0024-0023</Seq>
    <Time>9:05:45.968</Time>
    <Elapsed>54.240485 s</Elapsed>
    <Duration>1 us</Duration>

    <Request>Query Device Relations</Request>
    <Request Details>Bus Relations</Request Details>
    <DevObjAddr>89D6E6F0h</DevObjAddr>
    <DevObjName>USBPDO-6</DevObjName>
    <DrvObjName>usbhub</DrvObjName>
    <IrpAddr>88FABC20h</IrpAddr>

    <IrpStatus>Success</IrpStatus>

    </Item>

    My Problem is to Ignore the red lines

    So what should i do ?

    kind regads
  • Aaron
    Team Scooter
    • Oct 2007
    • 16011

    #2
    Hello,

    We have a KB article and video link available here:
    http://www.scootersoftware.com/suppo..._unimportantv3

    For this example, I would recommend creating delimited grammar items, from each node name:
    <Duraction> to </Duration>
    for example. You can give them all the same grammar element name, such as IgnoredXMLNodes. Then in the Text Compare's Session Settings, you would only need to uncheck IgnoredXMLNodes instead of several different items.
    Aaron P Scooter Software

    Comment

    Working...