I think that I know what is a problem, however following the method wich
called it
SomeClass.Serializer ser = new SomeClass.Serializer();
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.AppendChild(doc.ImportNode(SomeOtherClass.GetO bjectsData(),true)); //
return serialized XML Node
return ser.DeSerialize(doc); //make deserialization
-------------------------
Strange thing,
doc.InnerXML == doc.OuterXml.
The XML was previously serialized and saved:
Here is the beginning of this XML
doc.OuterXml "<TESTData xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"Some
Processes\"><ProcessCollection Name=\"Process
1\"><ObjectState>Null</ObjectState><Names
Name=\"Boba\"><ObjectState>Null</ObjectState><SIG><p1>10</p1><p2>169</p2><p3
2</p3><p4>1</p4></SIG><Position><PinX>0</PinX><PinY>0</PinY></Position></Na
mes>" string
etc...etc As you can see all " are covered by \
What to do. Desiarilization failed on
There is an error in XML document (1, 2). --->
System.InvalidOperationException:
<TESTData xmlns='TestNameSpace'> was not expected.
Why it need it???
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:7Q****************@cpmsftngxa06.phx.gbl... Hi Tamir,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that the quotes were serialized to \" in
your application. If there is any misunderstanding, please feel free to
let me know.
As far as I know, quote will not be coverted to \" in the serialization.
Could you try to open the xml file after serialization in Notepad and
check it again? If the problem still persists, could you provide us an example
as Nick mentioned, so that we can deliver our assistance more quickly?
If anything is unclear, please feel free to reply to the post.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."