I get the XML from a web service in the format below and I want to clean it up (remove the extra slash from XML defination as well as regex) before working with it. What do you advise me to do?
> "\"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>
> <MasterDataPullDTO
> xmlns:xsi=\\\"http://ift.tt/ra1lAU\\\"
> xmlns:xsd=\\\"http://ift.tt/tphNwY\\\">
> <ConfigCode>PlayerEdit~Phone~Format</ConfigCode><IsCorporateConfig>false</IsCorporateConfig><Description>InSite
> Player Data
> Module</Description><ConfigValue>^0[0-8]\\\\d{8}|04\\\\d{2}[\\\\s]\\\\d{3}[\\\\s]\\\\d{3}|0[0-8][\\\\s]\\\\d{4}[\\\\s]\\\\d{4}$</ConfigValue><State>Modified</State></ComponentConfigValueDTO><ComponentConfigValueDTO><ComponentCode>SC15</ComponentCode><ConfigCode>PlayerPin~PinRules~AscendingSequence</ConfigCode><IsCorporateConfig>false</IsCorporateConfig><Description>InSite
> Player Data
> Module</Description><ConfigValue>TRUE</ConfigValue><State>Modified</State></ComponentConfigValueDTO><ComponentConfigValueDTO><ComponentCode>SC15</ComponentCode><ConfigCode>
> /MasterDataPullDTO>\""
and the regex expression contains '\\' instead of '\' slash
Thanks,
No comments:
Post a Comment