Declaration
function IEGetSVGTagAttribute(const Tag: string; const SeekAttribute: string): string;
Description
Parse a tag and find a value for an attribute whether it is standalone or embedded in a style.
Demo
| Demos\InputOutput\SVGParsing\SVGParsing.dpr |
Examples
s := IEGetSVGTagAttribute( '<text x="205" y="430" fill="Orange" font-size="35">ImageEn!</text>', 'x' );
// Would return '205'
s := IEGetSVGTagAttribute( 'fill:#ffffff;fill-rule:evenodd;fill-opacity:1;stroke:none;', 'fill-rule' );
// Would return 'evenodd'
s := IEGetSVGTagAttribute( 'fill="white"', 'fill' );
// Would return 'white'
See Also
◼ ParseSVG◼ IEParseSVGFontAttributes◼ IEParseSVGStyleAttributes