On Friday, March 23, 2001, at 09:57  AM, Williams Roger wrote:
>       <properties>
>               <propone>aaaa</propone>
>               <proptwo>bbbb</proptwo>
>       </properties>

If you checked the type of the first node of <properties> you would 
discover that it is not an element node. The DOM tree that's created 
from your XML above would produce something like:

  ELEMENT: properties
   TEXT: a line-feed and several spaces
   ELEMENT: propone
    TEXT: aaaa
   ELEMENT: proptwo
    TEXT: bbbb
   TEXT: a line-feed and several spaces

In other words, the first child of <properties> isn't an element. If you 
want the first element node, you'll need to walk through the child nodes 
until you find an element node.

--Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to