added numbers to Xexpression reading for pragmatic reasons
switch to read-html-as-xml for local files
docs for switch to read-html-as-xml for local files
test case for PR 14009
fixed check and error message for stop-when; Closes PR14009