Giter Site home page Giter Site logo

xmldiffs's Introduction

xmldiffs

Compare XML files semantically, ignoring element and attribute order.

Usage: xmldiffs [OPTION] FILE1 FILE2

How does it work?

xmldiffs first parses each XML file and spits them out sorted by element (tag) name and attributes. The result is then passed to diff for a semantic XML comparison.

Command line options

  • -u, --unified - produce unified diff. This is the default mode.
  • -c, --context - produce context diff.
  • -n, --ndiff - produce Differ-style delta.
  • -t, --html - produce HTML page showing line by line differences.
  • -d, --diff - run the diff program to compare normalized texts. Any options not described here are added to the diff command line.
  • -l, --lines - Number of the context lines for unified, context, and html diffs. For unified and context diffs, the value defaults to 3. For html diff, the value defaults to None, which produces full output lines. Pass an integer to produce context lines.
  • -o, --output - Name of the output file. Default value is minus sign, which prints the diff to the stdout.
  • -x, --xml - instead of comparing two xml files, write sorted contents of FILE1 to FILE2. In this mode the --output option is ignored.

xmldiffs's People

Contributors

joh avatar a1s avatar bodograumann avatar hoshsadiq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.