If your goal is really to print the value from XML, you don't need to worry about types, as long as you believe the XML to be correctly formed. The value given withingin the XML file is in all cases, aalready character string (representing - just print it. The conversionconverting from string to variable (sprintf()) and back to string (Serial.print() or printf()) is unnecessary.