I want to trim a String with more than 1 character. The String:
<incident_response>
<msg_id>50889_360</msg_id>
<inquiry_id>INC000000087930</inquiry_id>
<response_dt>02.26.2013 14:49:12</response_dt>
<status>0</status>
<error></error>
</incident_response>
Yes, I know, it is a XML File.
string responseXML;
string inc_number =
responseXML.Trim().Trim('<inquiry_id>').TrimEnd('</inquiry_id>');
I got a CS1012 error, because the are more than one char. I need the whole inquiry_id (INC000000087930) without any other chars. Is there another option to get the number? I can't use the xmlready or something like this, because I get the XML as a string from an API module.