[Qt-interest] Xml parsing

Dan White ygor at comcast.net
Thu Jul 9 14:21:04 CEST 2009


It has been a while (like I said) and I had forgotten how well built  
these classes are.

OK, how about this warning:  Make sure you check the return to see if  
the string is empty

On Jul 7, 2009, at 11:53 AM, Scott Aron Bloom wrote:

> Actually.. no it cant…
>
>
>
> A “null’ QDomElement will return a “null” QDomAttribute, which will  
> return an empty QString
>
>
>
> They are not “C++” null objects, but QDomElemenet objects with a  
> null status
>
> Scott
>
>
>
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest- 
> bounces at trolltech.com] On Behalf Of Dan White
> Sent: Tuesday, July 07, 2009 4:04 AM
> To: qt-interest List
> Subject: Re: [Qt-interest] Xml parsing
>
>
>
> OOPS !  It has been a while since I did XML with Qt
>
>
>
> node.toElement().attributeNode("process").value()
>
>
>
> but I would not do it in one line like that for a serious  
> application because the attribute Node method can return a NULL
>
>
>
> On Jul 7, 2009, at 6:54 AM, Dan White wrote:
>
>
>
> node.toElement().text() ?
>
>
>
> On Jul 7, 2009, at 6:14 AM, Yuvaraj R wrote:
>
>
>
> how i get the  process text
>
>
>
> from  <service process="frenzlist">
>
>
>
>
>
>
>
> Thanks
>
> Yuvaraj R
>
> On Tue, Jul 7, 2009 at 3:28 PM, <Oliver.Knoll at comit.ch> wrote:
>
> Yuvaraj R wrote on Tuesday, July 07, 2009 11:42 AM:
>
>
> > Hi All
> >
> > My xml file is look like
>
> > ...
> > Thanks
>
> Uhm... you're welcome. What exactly was your question again?
>
> ;)
>
>
> Cheers, Oliver
> --
> Oliver Knoll
> Dipl. Informatik-Ing. ETH
> COMIT AG - ++41 79 520 95 22
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
> _______________________________________________
>
> Qt-interest mailing list
>
> Qt-interest at trolltech.com
>
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest





More information about the Qt-interest-old mailing list