This function is called when a <use> tag references another element or a a colour tag references a gradient element.

get_element_by_id(svg, id)

Arguments

svg

xml document containing svg

id

id, #id, url(#id), url('#id')

Value

SVG element with the given id, otherwise NA