Ignore First Line of xml lines

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nikhilm
    New User
    • Apr 2020
    • 1

    Ignore First Line of xml lines

    Problem Statement: We have a set of xml files which are auto-generated by system along with other files. The first line of xml file contains date of generation. So if nothing changes in the xml file, the first line still (with date) gets updated every time files are auto-generated, which is acceptable. But for the convenience of reviewers, I want to ignore the first line of all xml files.

    Version Details: BC4 Version 4.0.7 (build 19761)

    Solutions Tried:
    1. Tools -> File Formats -> XML -> Grammar. Added new item by name FirstLine. Selected bullet "Lines" and ticked "or Line 1". Saved and restarted BC4. But rule based comparison of XML files did not ignore first line.
    2. I tried few other solutions available on this forum as well. But none of them worked for me.
  • Aaron
    Team Scooter
    • Oct 2007
    • 16002

    #2
    Hello,

    Solution 1 is close. You have to also update the Session Settings to uncheck the grammar element name, as elements can be Important (checked) or Unimportant (unchecked). This can be an updated session default to apply for all future comparisons, and also then run as a Rules-based scan on the Folder Compare to apply this scan to all files.

    http://www.scootersoftware.com/suppo..._unimportantv3

    All 4.x updates are free for 4.x users, if you were able to update to the latest 4.3.4:
    http://www.scootersoftware.com/download.php
    Aaron P Scooter Software

    Comment

    Working...