mysql --format csv --skip-column-names \
-e "select xmldata from mytable limit 1;" \
| while IFS= read -r line; do xmllint --format - <<<$line;<<<"$line"; done
Split for easier reading, obviously you don't need to. The <<<$line is a herestring, which feeds the contents of $line to xmllint as stdin.