Git Product home page Git Product logo

xvalidatr's Introduction

XvalidatR

XML Schema Validator for Windows, Mac OSX and Linux. XvalidatR uses external schemas (XSD files).

xvaidatr_2 0 0

Installation

  1. Download the zip file for your machine from the GitHub release tab (https://github.com/andreburgaud/xvalidatr/releases).
  2. Extract xvalidatr or xvalidatr.exe from the zip file
  3. Copy the executable into a directory included in your PATH

Usage Examples

To only validate the XML schema:

xvalidatr books.xsd

To validate an XML file against an XML schema:

xvalidatr books.xsd books.xml

To validate several XML files against an XML schema:

xvalidatr books.xsd *.xml

To validate several XML files in a directory against XML schema:

xvalidatr books.xsd xml

Notes:

  • You can combine the different options (i.e. directory containing XML files, wild cards, individual files).
  • The examples provided above can all be tested from the directory tests included in the repository.
  • The search is recursive when passing a valid directory as argument. It searches for all *.xml files in the given directory and all subdirectories.
  • To restrict XML file validation to a directory level (not its subdirectories), the argument can be a directory and a wild card for the files. For example, if the directory is named xml, the argument can be given as: xml/*.xml. This will prevent to search any xml file with extention .xml in each subdirectory.

Build

Build on Windows

Prerequisite: Install dotnet (see https://dotnet.microsoft.com/en-us/download)

Debug build:

dotnet build

Standalone release executable:

dotnet publish --configuration Release --self-contained --runtime win-x64

To create a zip file with the standalone executable (assuming version 2.0.0):

powershell -Command "Compress-Archive -Path 'bin\Release\net8.0\win-x64\publish\xvalidatr.exe' -DestinationPath 'xvalidatr_win-x64_2.0.0.zip'"

Build on Mac OSX or Linux

Prerequisite: install dotnet (https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu).

Debug build:

dotnet build

Release build:

dotnet publish

Standalone release executable:

dotnet publish --configuration Release --self-contained --runtime <runtime_id>

For example, the runtime_id is linux-x64 on a Linux x86-64 machine and osx-arm64 for a Mac M1 or M2. You can find the list of all RIDs at https://learn.microsoft.com/en-us/dotnet/core/rid-catalog.

Clean the project:

dotnet clean

xvalidatr's People

Contributors

andreburgaud avatar

Watchers

James Cloos avatar  avatar  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.