Question: Convert string with units to unit

I'm trying to readin a XML file, where some figures are attached a unit.

Here's part of the XML file.

<system structuralsystem = '0' length = '10.*Units:-Unit(m)'>

When doing the readin and assigning the values to  a variable with AttributeValue, the type of the variable is a string.

How can I convert this string value ("10.*Units:-Unit(m)") to a number attached the defined units?

Please Wait...