Sublime Forum

XML Starlet

#1

My company is currently considering a switch from TextPad to Sublime. However, we need to be able to validate documents (a basic well-formed check and a DTD-specific validation). Does Sublime support the use of XML Starlet? TextPad allows users to define parameters and validate using XML Starlet. Is there an easy way to get Sublime to do the same? Thanks.

0 Likes

#2

Anyone?

0 Likes

#3

There are many linters available for SublimeText. Some of them have xmllint support.

I haven’t heard about XML Starlet integration myself, but it shouldn’t be too difficult to add.

0 Likes

#4

Thanks. A colleague of mine was actually able to figure it out using xmllint:

{
“cmd”: “C:/Tools/libxml/xmllint.exe”, “–valid”, “–noout”, “$file”],
“file_regex”: “.*”
}

Sublime seems to be even easier than TextPad and allows you to edit as you please, which TextPad does not allow (huge drawback).

0 Likes