Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: xpath to return nodes xpath to return nodesTo: NULL Date: 11/30/2005 9:59:00 PM Hi everyone,
In the xml below, can I use xpath to find the <message> node which do
not have any child <message> node. The conversion I am working, I have
to start from the child node and move up to the top node. There could
be multiple child nodes. Many thanks in advance.
The xpath should give me the following node:
<message subject="attach 1.1">
<message subject="attach 1.2">
<message subject="attach 2.1">
<message subject="attach 2.2">
----------------------
<message subject="Top level message">
<attachments>
<attachment>
<message subject="attach 1.0">
<attachments>
<attachment>
<message subject="attach 1.1">
.......
</message>
</attachment>
<attachment>
<message subject="attach 1.2">
....
</message>
</attachment>
</attachments>
</message>
</attachment>
<attachment>
<message subject="attach 2.0">
<attachments>
<attachment>
<message subject="attach 2.1">
</message>
</attachment>
<attachment>
<message subject="attach 2.2">
</message>
</attachment>
</attachments>
</message>
</attachment>
</attachments>
</message>
----------------------------
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
