[Qt-qml] What's wrong with our XmlListModel?
Ivan De Marino
ivan.de.marino at gmail.com
Wed Jul 28 11:15:50 CEST 2010
We totally missed that bit of the Documentation!
Thanks a lot for the heads up: it worked straight away!
I knew posting here was a good idea ;)
On 27 July 2010 20:22, Daker Fernandes <dakerfp at gmail.com> wrote:
> Ivan,
>
> Looks Like you're trying to read a data inside namespace without saying
> you're using it.
>
> Note that all the elements in the Xml is inside a namespace:
> ...
>
> <app xmlns="http://www.orange.co.uk/ns/app/1">
> ...
>
> The xmlns says that all the iternal tagas are from
> http://www.orange.co.uk/ns/app/1. This a mechanism to avoid
> http://www.orange.co.uk/ns/app/1:tagName or nsalias:tagName notations on
> xml files.
>
> To fix that declare that you will use a default namespace on your queries:
>
> XmlListModel {
> ...
> namespaceDeclarations: "declare default element namespace'
> http://www.orange.co.uk/ns/app/1' "
> ...
> }
>
> The same problem occurs with xhtml pages where all the html tags are inside
> the "www.w3.org/1999/*xhtml*/" namespace.
> Now the queries must find the correct tags. Note that rss feeds has no
> namespaces decalarations, and it works without them.
>
> I hope it works.
>
> Daker Fernandes Pinheiro (dfp)
> Graduando em CC, turma 2007.2
> CIn - UFPE
>
--
Ivan De Marino | Software Engineer | France Telecom R&D UK - Orange Labs
w. +44 20 8849 5806 | m. +44 7515 955 861 | m. +44 7974 156 216
ivan[dot]demarino[at]orange-ftgroup.com |
ivan[dot]de[dot]marino[at]gmail[dot]com
www.detronizator.org | www.linkedin.com/in/ivandemarino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100728/b5d9feee/attachment.html
More information about the Qt-qml
mailing list