xmllint: Use xmlXPathOrderDocElems for XPath queries

This commit is contained in:
Nick Wellnhofer 2024-12-30 23:21:56 +01:00
parent ca81916023
commit f22707f42b

View File

@ -2110,6 +2110,7 @@ parseAndPrintFile(const char *filename, xmlParserCtxtPtr rectxt) {
#ifdef LIBXML_XPATH_ENABLED
if (xpathquery != NULL) {
xmlXPathOrderDocElems(doc);
doXPathQuery(doc, xpathquery);
}
#endif