With notepad ++ used this command and parameters:
xmllint.exe --valid --noout $(FULL_CURRENT_PATH),
where $(FULL_CURRENT_PATH) is path to current open file
Hope somebody help me how convert this line to use with Akelpad and show log status.
Many tnx

Code: Select all
-"XML tester" Call("Log::Output", 1, `"xmllint.exe" --valid --noout`, "", "", "", "", "", 4096) Icon(0)
Code: Select all
"XML tester" Call("Log::Output", 1, `"xmllint.exe" --valid --noout "%f"`)
Code: Select all
"Validate XML (well-formedness only)" Call("Log::Output", 1, `"%a\AkelFiles\Tools\XMLStarlet\xml.exe" val --well-formed --err "%f"`, "", "^file:///([A-Za-z]:/[^:]+):(\d+)\.(\d+):", "/GOTOLINE=\2:\3")
Code: Select all
"Validate XML (XSD schema)" Call("Log::Output", 1, `"%a\AkelFiles\Tools\XMLStarlet\xml.exe" val --xsd "%a\AkelFiles\Tools\XMLStarlet\name.xsd" --err "%f"`, "", "^file:///([A-Za-z]:/[^:]+):(\d+)\.(\d+):", "/GOTOLINE=\2:\3")
I get an errorSkif_off wrote:Code: Select all
"Validate XML (well-formedness only)" Call("Log::Output", 1, `"%a\AkelFiles\Tools\XMLStarlet\xml.exe val --well-formed --err "%f"`, "", "^file:///([A-Za-z]:/[^:]+):(\d+)\.(\d+):", "/GOTOLINE=\2:\3")
Code: Select all
"Validate XML (XSD schema)" Call("Log::Output", 1, `"%a\AkelFiles\Tools\XMLStarlet\xml.exe val --xsd "%a\AkelFiles\Tools\XMLStarlet\name.xsd" --err "%f"`, "", "^file:///([A-Za-z]:/[^:]+):(\d+)\.(\d+):", "/GOTOLINE=\2:\3")
Code: Select all
Can't execute command: "D:\Program Files\AkelPad\AkelFiles\Tools\XMLStarlet\xml.exe val --well-formed --err "E:\backup\building\Content.xml"
Fixed.InFive wrote:I get an error
На русском, извиняюсьInFive wrote:but it is unclear what it means "(with jump to the text from the panel)" - from the Log:Output? from the Log:Output not going jump ...
I don't know the reason, it may be the case in the opening or closing tag: that is, the moment from which the structure is broken - not invalid closing tag, for example, but the beginning of an element with an error. I mainly use XMLValidator.js and he sometimes behaves as.InFive wrote:for some reason it goes from the log is not always to the place of the error, and the cursor can be put in place well before the error
It's possible (only?) with js-script and temp-file (aka MarkdownPreview.js), maybe later.InFive wrote:he only checks the file saved on the disk, not the currently open document