[xquery-talk] parsing xml fragments

Leo Studer leo.studer at varioweb.ch
Sun Jun 21 11:33:00 PDT 2015


Yes, this would be the expected result, however the proposed solution does not work here.

> On 21.06.2015, at 18:22, William Candillon <wcandillon at gmail.com> wrote:
> 
> 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
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk




More information about the talk mailing list