You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, April 19th 2006, 4:46pm

QDomElement: Get the text incl. the tags

Hello,

I wrote some code for parsing XML files with Qt's QDom classes.
A part of my XML file looks like this:

Source code

1
2
3
<text>
   This is a <b>test</b>
</text>


Now I want to get the Text of the element incl. the Tags (in this case the <b> tags). If I use the text() property of a QDomElement class, it only returns the Text without the Tags.

What can I do to get the whole Text incl. Tags?

I am using Qt 3.3 and KDE 3.5.

Many thanks in advance,

Colin Finck
Homepage: ColinFinck.de
Programs, PE Builder stuff (plugins and linklist), Add-Ins and other