Retrieves a value from an XML-like string