Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2016
    Posts
    1

    Default Count differences by XML tag

    Hello,

    I am attempting to configure BC to compare XML files and I was wondering if there is a feature/configuration available to count the number of differences by tags in XML. For example, I have multiple people with many tags each (Age,Gender,Name,etc) and I want to know how many differences there are based on each tag. Is something like this possible in Beyond Compare?

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,618

    Default

    Hello,

    Just saw and replied to your email.

    The key is to first open your files in the Text Compare and verify that your nodes are aligned and that data is comparing as expected. If not, we may need to install additional formats such as XML Tidied or XML Sorted from the website.

    Once aligned, you can customize the format with a new grammar type to match on your specific element. This is done in the Tools menu -> File Formats dialog, select the format, and add a new Grammar element. This could be a delimited type, like <Age> to <Age>

    Then go back to the comparison and in the Session Settings dialog, Importance tab, leave the new element Checked (Important) and uncheck all other items to make them Unimportant. Then enable Ignore Unimportant Differences to remove blue differences from the comparison.

    We have a video that might be helpful, about defining a specific element and making it the only unimportant element. This scenario is similar up to the last step: define the element but then make it the only Important element instead.
    http://www.scootersoftware.com/suppo..._unimportantv3
    Aaron P Scooter Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •