If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Announcement
Collapse
No announcement yet.
Can I ignore node attributes when comparing xml files
Can I ignore node attributes when comparing xml files
I am using the XML Tidied compare which works great. Except in the use case for my users, the attributes are irrelevent. Can I ignore attribute differences, or not even show the attributes at all? Thanks.
Not with the built-in XML grammar rules. But BC3 is highly configurable. It sounds like you have a special-case need that could be handled by creating a new file format for XML files with new grammar rules.
BC v4.0.7 build 19761
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
The references to grammar in the BC3 help file are quite high-level, so I don't think they will be of much help. If you have some sample files (left side/right side XML) for me to look at, I might be able to provide some guidance.
BC v4.0.7 build 19761
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
That looks pretty easy and straight forward to me. Try this:
Click on Session Settings icon (referee)
Click the Edit Grammar... button
Click the New... button
element name: id
category: Delimited
text from: id="id-
text to: "
Click OK
Move new grammar element to top of list
Click OK
Under Importance tab, remove checkmark from new id grammar element
Click OK
If you don't want to see the unimportant differences at all, click the Ignore Unimportant Differences button on the toolbar: [≈]
BC v4.0.7 build 19761
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Comment