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