none
How to remove or trim whitespace from an odata WCF data service query RRS feed

  • General discussion

  • I'm querying features and the web service endpoint has space="preserve" in the xml. Below is an example..

    <d:CONTRACTOR xml:space="preserve">Tim                           </d:CONTRACTOR>

    Is there a way to query this and make the service remove the white space after "Tim"?

    I'm using .net 4.5 in a windows store app, below is my query string..

    var query = (DataServiceQuery<LorainInspections.ServiceReference1.Inspections>)_oDataClient.Inspections.Expand("Contractors,Equipments,Items").Where(
                         t => t.ID == Inspection_ID);
    var query = (DataServiceQuery<LorainInspections.ServiceReference1.Inspections>)_oDataClient.Inspections.Expand("Contractors,Equipments,Items").Where(
                         t => t.ID == Inspection_ID);

    Thursday, April 4, 2013 11:33 AM

All replies