0

How can I get the value of the xlink:href attribute in an SVG path using Scala?

Input: <use style="fill:#4b0082;stroke:#4b0082;" x="57.6" xlink:href="#mbcc2581984" y="307.584"/>

Output: #mbcc2581984

Node \@ "xlink:href" doesn't seem to work.

My question is pretty same as this SO question, just the language is different.

Community
  • 1
  • 1
rivu
  • 2,004
  • 2
  • 29
  • 45

1 Answers1

0

I found the answer pretty quick, just keeping it here for future use.

This should be Node \@ "{http://www.w3.org/1999/xlink}href"

rivu
  • 2,004
  • 2
  • 29
  • 45