title: NodeJS: Parsing HTML HTML and inline SVG graphics with Cheerio
body: <p>I am developing a Node ExpressJS application, which shall crawl a HTML document, containing a inline SVG structure (SVG as an HTML tag, defining a SVG graphic).</p>
  
  <p>This SVG structure contains a lot "subtags" of type text, the attributes an inner text I want to extract of, using Cheerio.
  Unfortunately my Node application crashes, once it gets to reading attribute values of one of the SVG text attributes.
  Find the error message thrown below; unfortunately its not very meaningful. It crashes both on Windows and Linux platforms.</p>
  
  <p>Using the same selectors with pure jQuery and JS in a real browser environment, to extract the data is working fine, it just seems to be Cheerio.
  Is there maybe another way of parsing inline SVG structures?</p>
  
  <p>Error message:</p>
  
  <pre><code>npm ERR! Windows_NT 10.0.15063
  npm ERR! argv "&lt;path to node executable&gt;" "&lt;path to node modues&gt;\\npm\\bin\\npm-cli.js" "start"
  npm ERR! node v6.11.2
  npm ERR! npm  v4.1.1
  npm ERR! code ELIFECYCLE
  npm ERR! myapp@0.0.0 start: `node ./bin/www`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the myapp@0.0.0 start script 'node ./bin/www'.
  npm ERR! Make sure you have the latest version of node.js and npm installed.
  [...]
  </code></pre>