By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,987 Members | 1,467 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,987 IT Pros & Developers. It's quick & easy.

String Array to XmlNodeList

P: n/a
Hi,

I was wondering if there was a way to move values from an array into an
XmlNodeList? I have the values loaded into a string array from a
previous point in the application; now I need to search the XML file
for the items in the array and pull out the parent node. To do that I
need an XmlNodeList.

Cheers,

Maurice

May 21 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You can load the document to an XMLDocument instance and do XPath
queries based on the data in the array.

This could do what you want.

Regards,
Tasos

May 21 '06 #2

P: n/a


Maurice Cosgrave wrote:
I was wondering if there was a way to move values from an array into an
XmlNodeList? I have the values loaded into a string array from a
previous point in the application; now I need to search the XML file
for the items in the array and pull out the parent node. To do that I
need an XmlNodeList.


XmlNodeList is returned by some methods like GetElementsByTagName or
SelectNodes and by the ChildNodes property. You can't construct one
without using these properties or methods unless you implemented your
own class extending XmlNodeList.
Why do you think you need an XmlNodeList? What API are you trying to use
that needs an XmlNodeList?
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
May 21 '06 #3

P: n/a
Hi Tasos,

Thanks for the reply. I have to admit I'm relatively new to C# but how
would that help me out with the array I have?

Cheers,

Maurice

May 21 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.