The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 Champions.
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 comment

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

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 Champions.
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 Champions.
May 24, 2021

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

TAGS
AUG Leaders

Atlassian Community Events