[Qt-interest] Xml parsing

Scott Aron Bloom Scott.Bloom at sabgroup.com
Tue Jul 7 17:53:23 CEST 2009


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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090707/17f6a238/attachment.html 


More information about the Qt-interest-old mailing list