- Code: Select all
<text
sodipodi:linespacing="125%"
id="p_dps_hyd_thermal_label36"
y="30.178572"
x="43.928574"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
xml:space="preserve"><tspan
style="font-size:14px;fill:#ffffff"
y="282.178572"
x="248.428574"
id="tspan3112"
sodipodi:role="line"> MFUS 2</tspan></text>
The string following id="... is what you're looking for - so this element is called p_dps_hyd_thermal_label36 and can be accessed by
- Code: Select all
*.getElementById("p_dps_hyd_thermal_label36");
You can read the id opening the SVG in a text editor if necessary - probably some SVG editor also displays and sets it as well, but I've never used one.