----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: LustrousRavi Message 1 in Discussion Hi All, I'm working on .NET2.0. Is there any way to convert xmlnode list object to xmldocument with out looping through the xmlnodelist. steps included as...... Step 1: Geting the custom StateClass Array object from webservice. Step 2: Serialize the Custom stateClass array object to XML format Step 3: USing XPath Filter the XML elements (Xpath is generated dynamically as per the given inputs in search screen) Step 4: Deserializing filtered Xml string back to stateclass array. In Step 3, If I do the XMLDocument.selectnodes(Xpath) I'll be getting XmlNodeList. Original XML before Appliting XPath <?xml version="1.0"?> <ArrayOfContractQueue xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ContractQueue> <SAPVendor >0001100166</SAPVendor> <ContractQueueID >19484</ContractQueueID> <VendorID >923</VendorID> <VendorName >MOORE LITERACY AGENCY</VendorName> </ContractQueue> <ContractQueue> <SAPVendor >0002075155</SAPVendor> <ContractQueueID >19487</ContractQueueID> <VendorID >1167</VendorID> <VendorName >CRAIG STINSON INC+</VendorName> </ContractQueue> ... ... ... ... ... ... </ArrayOfContractQueue> After applying XPath I need a XMLstring like bellow.. <?xml version="1.0"?> <ArrayOfContractQueue xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ContractQueue> <SAPVendor >0001100166</SAPVendor> <ContractQueueID >19484</ContractQueueID> <VendorID >923</VendorID> <VendorName >MOORE LITERACY AGENCY</VendorName> </ContractQueue> </ArrayOfContractQueue> Is there any way to conver XMLNodeList to XMLDocument as described above. If I loop through the XMLNodeList to generate above XML.. It Creates Performance Issues ... Number of records are might be more ...... Thanks Ravi ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
