It turned out that you have to pass the "path"-element not the "svg"-element:
const svgXmlShape = this.cache.xml.get(xmlKey) as XMLDocument;
[...svgXmlShape.documentElement.querySelectorAll("svg path")]
.map((svgPath) => {
const vertices = this.Svg.pathToVertices(svgPath, 1)...