![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Append to a file using XML Serialization? Easy way to do this? >Thread Next - Re: Append to a file using XML Serialization? Easy way to do this? Re: Append to a file using XML Serialization? Easy way to do this?To: NULL Date: 7/23/2009 11:57:00 AM RayLopez99 wrote: > However, I found a mistake in your code that I cannot overcome. > > Here it is: > > if (xr.NodeType == XmlNodeType.Element && xr.Name == "Foo") > > I believe what happens here, from what I can tell, is that xr.Name > == "Foo" is never triggered (never true). What you get is xr.Name == > Bar or xr.Name ==Baz. For me that sample successfully serializes and deserializes so I have no idea why you say it contains a mistake and does not find "Foo" elements. -- Martin Honnen http://msmvps.com/blogs/martin_honnen/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
