When I do
ListunitUsers[@UID='LIST2']
I get
<root>
<ListunitUsers>
<ListunitMembership Note="" SortId="0">
<Users id="778" username="wa" email="">
<profile_guest profile="162">
<address aid="159"/>
</profile_guest>
</Users>
</ListunitMembership>
</ListunitUsers>
</root>';
but what I would really want is just to get the username.
How do I extract just the username?
Something along the line of
UPDATE:
Aha, it is SQL Server 2000 and an XPath query against relational data. It supports neither the root node (‘/’), nor the attribute axis. So your best bet is to extract the <Users> node an read the username attribute directly, however that is done.