How to avoid empty node to appear in xml file while doing xml serialization
-
When I xml serialize a file, I want all the empty node should not appear. e.g. The below mentioned xml serialized file has empty region node. abc I want empty node should not appear in xml serialized file. abc I appreciate, if anyone has any solutions or suggestions to this, please share their knowledge. Regards, Shiby
-
When I xml serialize a file, I want all the empty node should not appear. e.g. The below mentioned xml serialized file has empty region node. abc I want empty node should not appear in xml serialized file. abc I appreciate, if anyone has any solutions or suggestions to this, please share their knowledge. Regards, Shiby
You cant do that with XML serialization. You will have to post process the xml file manually. XML Serialization wasnt designed for readability. xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots