c# - Convert or cast object[] to xml document and retrieve values from xml nodes -


  1. what optimized code converting object[] xml document? in function service return type object [] , object returned contains list of xml elements. need convert object[] xml data retrieval.

  2. also optimized code retrieving values particular node ( node name project) , values list ( abc, xyz) navigating through xml document given?

<?xml version="1.0" encoding="utf-8" ?> <arrayofanytype xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema"> <anytype> <attributes xmlns="http://services.abc.com"> <attributes> <name>projectdetails</name> <values> <values>abc</values> <values>xyz</values> </values> </attributes> </anytype> </arrayofanytype>

xmlserializer pretty job on serializing objects.

no idea on optimized..it's .net..so uses optimal data structure this(perhaps b tree).

here article on topic. http://robseder.wordpress.com/2010/03/18/the-deal-with-xmlserializer-being-so-slow-%e2%80%93-finally/


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -