Home Download Buy Blog Forum Support

XML Starlet

XML Starlet

Postby 570mikem on Wed Jul 17, 2013 6:17 pm

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.
570mikem
 
Posts: 3
Joined: Wed Jul 17, 2013 6:13 pm

Re: XML Starlet

Postby 570mikem on Thu Jul 18, 2013 12:45 pm

Anyone?
570mikem
 
Posts: 3
Joined: Wed Jul 17, 2013 6:13 pm

Re: XML Starlet

Postby wuub on Thu Jul 18, 2013 2:33 pm

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.
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: XML Starlet

Postby 570mikem on Thu Jul 18, 2013 7:08 pm

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).
570mikem
 
Posts: 3
Joined: Wed Jul 17, 2013 6:13 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 15 guests

cron