|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
escape charactor when using xmlserilizer-------------------------------- From: Sisley li I am trying to Deserialize an Xml file, here is my code m_serializer = new XmlSerializer(typeof(PatternSet)); m_reader = new StreamReader(fileUri); m_patternSet = (PatternSet)m_serializer.Deserialize(m_reader); My input file contains a string like this: <Pattern name="Create items" method="XPath" value=".[@substitutionGroup="aaa:item"]"> When i read from m_patternSet, I am seeing: value = ".[@substitutionGroup=\"aaa:item\"]"> that is, it turns the """ into "\"", is there a way to get ride of the escape? I want only value = ".[@substitutionGroup="aaa:item"]" ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>SJRombMeDkWc4yL1kR1Ahg==</Id> |
|||||||||||||||||||||||