guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use of (sxml xpath)


From: Ariel Rios
Subject: Use of (sxml xpath)
Date: Wed, 31 Oct 2012 12:51:01 -0500

Hello all,

I am trying to use (sxml xpath) to parse an xml file but I just cannot understand the API.

If I have the following xml
<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/2006/10/ttaf1" xml:lang="en">
<head><styling/><layout/></head>
<body>
<div>
<p foo="x"/>hello </p>
<p foo="y"/>hello 2 </p>
<p foo="z"/>hello 3</p>
..... 


In Perl I can do something like:
my $xml = XML::XPath->new(filename => $file);
$xml->find ('//p')->get_nodelist);
$p->getAttribute ('foo')

But I just cannot find a way to do this one guile and the documentation is not clear to me.

ariel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]