|
-
February 6th, 2008, 06:20 AM
#1
New to C# and need a lttle help on xmlDocument class.
I am really new to c# and was looking over some sample code. Here it is:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("GetSearchResults.xml");
xmlDoc["GetSearchResultsRequest"]["RequesterCredentials"]["****AuthToken"].InnerText = userToken;
I do not understand this with the brackets. It looks to me like this is a three dimensional array of classes? However the original declaration was just for a single object.
I am totally confused by this notation. Any help or advice would be greatly appreciated.
-
February 6th, 2008, 07:30 AM
#2
Re: New to C# and need a lttle help on xmlDocument class.
Any class can have an Indexer, which will typically allow access to internal collections as if the original object type represented an array. An XmlDocument is a tree structure., but all of the nodes (Elements) at a given level can be thought of as an Array, with the sub elements of a given element as another array...with the.....
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|