Home All Groups Group Topic Archive Search About

escape charactor when using xmlserilizer

Author
17 Nov 2004 9:07 AM
Sisley li via .NET 247
(Type your message here)

--------------------------------
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=&quot;aaa:item&quot;]">

When i read from m_patternSet, I am seeing:
   value = ".[@substitutionGroup=\"aaa:item\"]">  
that is, it turns the "&quot;" 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>

AddThis Social Bookmark Button