List Info

Thread: regarding XPATH




regarding XPATH
user name
2006-12-23 18:53:37
>>>>> "Samuel" == Samuel N
<samuelnmenyahoo.co.in> writes:

Samuel> Hi Thanks for your immediate reply
Samuel> can you please check the following link

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

Samuel> Here they explained clearly what actually its do

Samuel> i want to generate Match nodes from a XML file

You can get those nodes with:

use XML::LibXML;
my $parser = XML::LibXML->new;
my $document = $parser-> [one of the parse methods to get
to your doc ];
my hdd_nodes =
$document->findnodes("//hdd");
print $_->nodepath, "n" for hdd_nodes;

That's essentially what I did to get their names.

What you do with them at that point is your choice. 
XML::LibXML is a great
solution.

-- 
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-26 06:17:07
Hi thanks

How to install LIBXML

I am trying to install in different ways, but i am not able
to run the
you module

i am using winXP Professional

Can you help me out
Thanks
Samuel N

--- In perl-beginner@yahoogroups.com, merlyn...
wrote:
>
> >>>>> "Samuel" == Samuel N
<samuelnmen...> writes:
> 
> Samuel> Hi Thanks for your immediate reply
> Samuel> can you please check the following link
> 
> Samuel>
http://ww
w.zvon.org:9001/saxon/cgi-bin/XLab/XML/extras.html?styleshee
tFile=XSLT/xpath.xslt&lang=eng
> 
> Samuel> Here they explained clearly what actually
its do
> 
> Samuel> i want to generate Match nodes from a XML
file
> 
> You can get those nodes with:
> 
> use XML::LibXML;
> my $parser = XML::LibXML->new;
> my $document = $parser-> [one of the parse methods
to get to your doc ];
> my hdd_nodes =
$document->findnodes("//hdd");
> print $_->nodepath, "n" for hdd_nodes;
> 
> That's essentially what I did to get their names.
> 
> What you do with them at that point is your choice. 
XML::LibXML is
a great
> solution.
> 
> -- 
> 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 )