MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlShellPrintXPathError

Function xmlShellPrintXPathError

ThirdParty/libxml2/vtklibxml2/debugXML.c:1807–1861  ·  view source on GitHub ↗

* xmlShellPrintXPathError: * @errorType: valid xpath error id * @arg: the argument that cause xpath to fail * * Print the xpath error to libxml default error channel */

Source from the content-addressed store, hash-verified

1805 * Print the xpath error to libxml default error channel
1806 */
1807void
1808xmlShellPrintXPathError(int errorType, const char *arg)
1809{
1810 const char *default_arg = "Result";
1811
1812 if (!arg)
1813 arg = default_arg;
1814
1815 switch (errorType) {
1816 case XPATH_UNDEFINED:
1817 fprintf(stderr,
1818 "%s: no such node\n", arg);
1819 break;
1820
1821 case XPATH_BOOLEAN:
1822 fprintf(stderr,
1823 "%s is a Boolean\n", arg);
1824 break;
1825 case XPATH_NUMBER:
1826 fprintf(stderr,
1827 "%s is a number\n", arg);
1828 break;
1829 case XPATH_STRING:
1830 fprintf(stderr,
1831 "%s is a string\n", arg);
1832 break;
1833#ifdef LIBXML_XPTR_LOCS_ENABLED
1834 case XPATH_POINT:
1835 fprintf(stderr,
1836 "%s is a point\n", arg);
1837 break;
1838 case XPATH_RANGE:
1839 fprintf(stderr,
1840 "%s is a range\n", arg);
1841 break;
1842 case XPATH_LOCATIONSET:
1843 fprintf(stderr,
1844 "%s is a range\n", arg);
1845 break;
1846#endif /* LIBXML_XPTR_LOCS_ENABLED */
1847 case XPATH_USERS:
1848 fprintf(stderr,
1849 "%s is user-defined\n", arg);
1850 break;
1851 case XPATH_XSLT_TREE:
1852 fprintf(stderr,
1853 "%s is an XSLT value tree\n", arg);
1854 break;
1855 }
1856#if 0
1857 fprintf(stderr,
1858 "Try casting the result string function (xpath builtin)\n",
1859 arg);
1860#endif
1861}
1862
1863
1864#ifdef LIBXML_OUTPUT_ENABLED

Callers 1

Calls 1

fprintfFunction · 0.85

Tested by

no test coverage detected