[xquery-talk] parsing xml fragments

William Candillon wcandillon at gmail.com
Sun Jun 21 09:22:48 PDT 2015


And the result serialized as html:
http://tryzorba.28.io/query.jq?id=KZc4M47%2BQ948k2%2FR8GneS%2BtP%2Fgs%3D&format=html

On Sun, Jun 21, 2015 at 6:22 PM, William Candillon <wcandillon at gmail.com> wrote:
> Have you considered parsing the description as html?
> Here's an example with Zorba:
> http://try-zorba.28.io/queries/xquery/KZc4M47%2BQ948k2%2FR8GneS%2BtP%2Fgs%3D
>
> On Sun, Jun 21, 2015 at 6:15 PM, Leo Studer <leo.studer at varioweb.ch> wrote:
>> Hello
>>
>> I tried the following
>>
>> declare variable $feed :=
>> doc("http://www.meteotest.ch/meteotest-extras/rss/rss-sio.xml")//item/description/string();
>>
>> <html>
>> <body>{
>> parse-xml-fragment($feed)/*}
>> </body>
>> </html>
>>
>> to use the weather infos from this feed.
>> Unfortunately parse-xml-fragment($feed) does not work since & is used in a
>> URL. Is there a easy way to do that?
>>
>> Thanks in advance
>> Leo
>>
>> _______________________________________________
>> talk at x-query.com
>> http://x-query.com/mailman/listinfo/talk


More information about the talk mailing list