c# - Convert or cast object[] to xml document and retrieve values from xml nodes -
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.
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
Post a Comment