List Info

Thread: regarding XPATH




regarding XPATH
user name
2006-12-23 09:10:43
>>>>> "Samuel" == Samuel N
<samuelnmenyahoo.co.in> writes:

Samuel> i want all "hdd" values from the root
in XPATH syntax

Samuel> Like this
Samuel> For first system:
Samuel> //[1]/[2]/[2]

Samuel> For second system:
Samuel> //[1]/[2]/[4]

Samuel> For third system:
Samuel> //[1]/[2]/[1]


Samuel> Do we have any perl module to get the node values

According to XML::LibXML, the canonical path to those three
nodes (as selected
with "//hdd") are:

    /root/system[1]/externaldevice/hdd
    /root/system[2]/externaldevice/hdd
    /root/system[3]/externaldevice/hdd

Why do you need it any better specified?  What application
is counting
random nodes?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. -
+1 503 777 0095
<merlynstonehenge.com> <URL:http://www.ston
ehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy,
etc. etc.
See PerlTraining.Stonehenge.com for onsite and
open-enrollment Perl training!


Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
regarding XPATH
user name
2006-12-23 12:34:36
Hi Thanks for your immediate reply

can you please check the following link

http://ww
w.zvon.org:9001/saxon/cgi-bin/XLab/XML/extras.html?styleshee
tFile=XSLT/xpath.xslt&lang=eng

Here they explained clearly what actually its do

i want to generate Match nodes from a XML file

Can anyone help me

Thanks in advance
Samuel N


--- In perl-beginner@yahoogroups.com, merlyn...
wrote:
>
> >>>>> "Samuel" == Samuel N
<samuelnmen...> writes:
> 
> Samuel> i want all "hdd" values from the
root in XPATH syntax
> 
> Samuel> Like this
> Samuel> For first system:
> Samuel> //[1]/[2]/[2]
> 
> Samuel> For second system:
> Samuel> //[1]/[2]/[4]
> 
> Samuel> For third system:
> Samuel> //[1]/[2]/[1]
> 
> 
> Samuel> Do we have any perl module to get the node
values
> 
> According to XML::LibXML, the canonical path to those
three nodes
(as selected
> with "//hdd") are:
> 
>     /root/system[1]/externaldevice/hdd
>     /root/system[2]/externaldevice/hdd
>     /root/system[3]/externaldevice/hdd
> 
> Why do you need it any better specified?  What
application is counting
> random nodes?
> 
> -- 
> Randal L. Schwartz - Stonehenge Consulting Services,
Inc. - +1 503
777 0095
> <merlyn...> <URL:http://www.ston
ehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing,
Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and
open-enrollment Perl
training!
>




Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )