Tuesday, November 19, 2013

Re: Validating XML again XSD

Dnia Wtorek, 19 Listopada 2013 09:40 Mikołaj Machowski <mikmach@wp.pl> napisał(a)
> Quick look into N++ source: seems like N++ uses TinyXML.
>
> Don't know how it works from command line but personally I am big fan of xmlstar
>
> ( http://xmlstar.sf.net )
>
> You can get validating with
>
> xml val -e -s file.xsd file.xml
>
> And proper setting of Vim quickfix features :help quickfix
>

set makeprg=xml\ validate\ --quiet\ --xsd\ file.xsd\ --err\ %
set errorformat=%f:%l.%c:%m

change appropriate paths (xml binary and your schema file). It would be possible to detect location of schema file as is in N++ but options above should be enough for work.

m.



--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: