xmldoclinkchecker
Checks unresolved cross-references in Nelson help XML files.
📝Syntax
xmldoclinkchecker()
xmldoclinkchecker(xmldocfilename)
xmldoclinkchecker(xmldocdirectory)
[state, errors_detected, warnings_detected] = xmldoclinkchecker(target)
📥Input Arguments
Parameter Description
target a string: XML file or directory to check.
📤Output Arguments
Parameter Description
state a logical: true if all references are resolved, false otherwise.
errors_detected a cell array of strings: unresolved link references and related errors.
warnings_detected a cell array of strings: warnings detected during validation.
📄Description

xmldoclinkchecker validates <link linkend="..."/> references used in Nelson help XML pages.

It checks references in a single XML file, a directory tree, or all installed module help XML files when called without arguments.

This function is useful to detect broken cross-references before building HTML/Markdown help outputs.

The link target uses the XML page file name without the .xml extension, optionally prefixed with a module name such as ${dynamic_link}havecompiler.

💡Examples
Check links in one help XML file.
[state, errors_detected] = xmldoclinkchecker([modulepath('help_tools'), '/help/en_US/xml/xmldocchecker.xml'])
Check all links in a module help XML directory.
xmldoclinkchecker([modulepath('help_tools'), '/help/en_US/xml'])
🔗See Also
xmldoccheckerxmldocbuildbuildhelp
🕔Version History
Version Description
1.17.0 initial version
Edit this page on GitHub