I am trying to use (sxml xpath) to parse an xml file but I just cannot understand the API.
<?xml version="1.0" encoding="UTF-8"?>
<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.