Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Returns the collection of comment nodes.
Syntax
comment()
Remarks
Note: In this beta release, the item method cannot be combined with the comment method. You must first call the comment method to obtain the collection, then access items in the collection using the nextNode iterator. For example, do not use the following lines of code:
comment()[0]
// or
c = comment();
e = c[0];
As a workaround, you must instead use the comment method followed by calls to the nextNode method:
q = xmldata.selectNodes("comment()");
e = q.nextNode();
Examples
Find the second comment anywhere in the document:
//comment()[1]
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.