What is the recommended tool for Windows for checking if an XML file is valid?

Rob Horan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 18, 2021

The Jira pre-migration checklist states that we should use the query below to find out if our file is valid:

xmllint --noout <Backup File Location>/entities.xml
xmllint --noout <Backup File Location>/activeobjects.xml : 100118

If the command does not produce an output, the file is valid. Any exceptions point to the spot with the formatting error.

The problem is this is essentially a Linux-only option.  I looked for xmllint for Windows and I haven't found a simple solution.

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
JimmyVanAU
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 24, 2021

Hi Rob,

Fair question - I reckon Atlassian should update their documentation.

I'm personally a big fan of chocolatey, so I ran in Powershell

choco install xsltproc

and that gave me what I want.

That's the second most popular answer on this SO thread:

xml - Installing xmllint - Stack Overflow

You're otherwise welcome to follow the recommended procedure if you don't currently use chocolatey.

Cheers, Jimmy

Rob Horan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 24, 2021

Atlassian recommended CYGWIN, and that worked well for me, thanks!

TAGS
AUG Leaders

Atlassian Community Events