Back to LanguageTool Homepage - Privacy - Imprint

Setting rules to omit XML tags


(thiru) #1

Hi,

May you please assist me on how to write a rule that will omit only the open and close XML tags and not its content in the file.

Greets,
Thiru


(Daniel Naber) #2

Hi,

I'm not sure I understand your requirements. If you want to check an XML file, you need to extract the plain text first. LanguageTool works on plain text only. Actually, there's a workaround which you might try, but we don't guarantee that this will be supported in the future:

java -jar languagetool-commandline.jar --xmlfilter file.xml