# Parsing error : SVG Node red

**URL:** <https://discourse.nodered.org/t/parsing-error-svg-node-red/61615>\
**Category:** General\
**Created:** [21 April 2022 20:07 UTC](https://discourse.nodered.org/t/parsing-error-svg-node-red/61615 "2022-04-21T20:07:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rchandrashekar53](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rchandrashekar53/32/60423_2.png) [@rchandrashekar53](https://discourse.nodered.org/u/rchandrashekar53)\
**Post date:** [21 April 2022 20:07 UTC](https://discourse.nodered.org/t/parsing-error-svg-node-red/61615/1 "2022-04-21T20:07:01Z")

</div>

Hi,

My objective is to have an input text field with the SVG image (similar to this article :[Node-red-contrib-ui-svg: experimenting with foreign elements](https://discourse.nodered.org/t/node-red-contrib-ui-svg-experimenting-with-foreign-elements/36777?msclkid=3d89c277c1ae11ec9f8a0129120f2f12))

However i get a "parse exception" at the SVG editor - when i add these tags:

```auto
<foreignObject x="470" y="80" width="100" height="50">
   <input type="number" id="temp_living" min="10" max="25" style="height: 25px;">
   <label for="temp_living" id="temp_living_label" style="color: black;font-size: larger;font-weight: bold;vertical-align: middle;"> °C</label>
 </foreignObject>

```

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [25 April 2022 17:44 UTC](https://discourse.nodered.org/t/parsing-error-svg-node-red/61615/2 "2022-04-25T17:44:10Z")

</div>

Hi @rchandrashekar53,

Welcome to this forum!  
Did you try to import the complete example flow from my article (in the link you posted above)? Because it still works for me.

Or did you perhaps copy only the `<foreignObject> ... </foreignObject>` part into the SVG node 'source' tabsheet? Because then you would of course get a parse exception, since it would be an incomplete drawing.

Bart

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 June 2022 17:44 UTC](https://discourse.nodered.org/t/parsing-error-svg-node-red/61615/3 "2022-06-24T17:44:55Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
