How to compare xml files with BC4?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mortie
    New User
    • Jun 2017
    • 1

    How to compare xml files with BC4?

    How can you compare XML files with BC4? I found a HtmlTidy function, but it only works for BC2. Thank you,
  • Aaron
    Team Scooter
    • Oct 2007
    • 16000

    #2
    Hello,

    The XML Sorted or XML Tidied downloads for BC4 can be found searching "xml" from our Additional File Formats download page:
    http://www.scootersoftware.com/downl..._moreformatsv4

    Once you download the .bcpkg, use the BC4 Tools menu -> Import wizard. Or double clicking the bcpkg should bring up the Import dialog automatically.
    Aaron P Scooter Software

    Comment

    • hopsjes
      New User
      • Feb 2023
      • 1

      #3
      Just downloaded these formats, but they seem to modify the result in a significant way, i.e an XML element like:
      Code:
              <Name>Joe</Name>
      Would become
      Code:
              <Name>
                 Joe
              </Name>
      ​The newline's and leading whitespace are significant in XML between element start/end tags. Is there a way to disable that behavior?

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 16000

        #4
        Hello,

        That is a bit by design. The factory default XML format does not modify the files at all, while the additional downloads each modify them to varying extents. We do have some additional BC3 variants of these formats which are importable into BC4, here:
        https://www.scootersoftware.com/down..._moreformatsv3
        They expose more of the helper files used for the processing. You can also use any command line conversion utility if you have one that formats your files as you need.

        The BC3 "XML sorted and tidied" exposes the .xslt it is using for the formatting logic. You could update this to try for something closer to what you need.
        Aaron P Scooter Software

        Comment

        Working...