[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Creating DOM Elements
From: Ellis Whitehead <kde () ellisw ! net>
Date: 2001-10-13 15:36:44
[Download RAW message or body]
> Do
> I always need to use QDomDocument's factory methods to create new Elements?
I believe the answer is yes. You don't have to change your code much though:
- QDomElement x;
- x.setTagName("name");
+ QDomElement x = node.ownerDocument().createElement( "name" );
node.appendChild(x); // where node is the element passed in
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic