Hello,
I have an rss feed coming from Tumblr blog page.
The xml of the feed has into description a lot of html content that I want to
remove and keep only the first image I found.
For example, this is one of the content into description tag:
Re: [Interest] Extract only src attribute of an image tag into XmlRole with XPath functions
Thank you for the suggestions.
I resolved passing the full description to a C++ slot on which I used the full
power of QRegExp to retrieve what I want.
Thanks,
Gianluca.
> On 3 Jun 2015, at 12:11, Federico Buti wrote:
>
> Oh. I thought it was an issue related to my mail. :)
>
> I don't know
Oh. I thought it was an issue related to my mail. :)
I don't know If it is possible to apply some kind of transformations over
the XML or if there is a specific way to handle this case. Depending on the
way you are you receive the full XML, you can try to call a JS function to
polish it via the re
Hello Federico,
the problem is that the img tag inside the description has been escaped :-(
So, I cannot access it using a query path :-(
If you look at the content of description so can see that instead of having:
…
I have the image escaped:
Hi Gianluca,
depending on the full XML you can query for the description tag and than
query for the first img tag with "[1]", something like this:
XmlListModel {
id: model
query: "(/path/to/description/img)[1]"
XmlRole { name: "img"; query: "@src
Hello,
I have an rss feed coming from Tumblr blog page.
The xml of the feed has into description a lot of html content that I want to
remove and keep only the first image I found.
For example, this is one of the content into description tag:
6 matches
Mail list logo