Altova Mailing List Archives
>microsoft.public.xml Archive Home
>Thread Prev - how get node attribute vlaue?
>Thread Next - Re: how get node attribute vlaue?
Re: how get node attribute vlaue?
Date: 8/29/2003 7:57:00 AM
"wmy" <asdf@h...> wrote: >i want get node attribute value. >pls help! >thanks! >follow code: ><employee name="zhang"> > <address>changchun</address> > <country>China</country> ></employee> ><employee name="wang"> > <address>beijing</address> > <country>China</country> ></employee> Are you trying to create a node list of all attributes called, "name"? //@*[local-name()='name'] If you are on an employee element node, if the context node, or current node is one of the employee element nodes, then you can get the attribute string value just by - @name