[xquery-talk] parsing xml fragments

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


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