You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by E Smith <E....@bham.ac.uk> on 2003/07/16 10:45:53 UTC
[jelly] Re: Parsing jelly:http results with jelly:html
For information, I managed to get this working with some help (thanks to Bill Keese). Here's the code which works:
<?xml version="1.0"?>
<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:html="jelly:html" xmlns:http="jelly:http">
<http:get url="http://www.bham.ac.uk" var="bhamHomepage" />
<html:parse html="${bhamHomepage.responseBodyAsStream}" var="parsedHomepage" />
<x:copyOf select="$parsedHomepage//TITLE/text()" />
</j:jelly>
Elliot Smith
University of Birmingham