Hi
I want to add some Elements to a QDomNode (node).
the output should be:
<node>
<sy href = "test1">
<sy href = "test2">
<sy href = "test3">
</node>
at the beginning i have <sy href = "test1"> and I know that there come three same elements with the same attributes, but different values. I create three sy elements and add the attributes with:
element.setAttribute("href","test1");
element.setAttribute("href","test1");
To copy to clipboard, switch view to plain text mode
and then add the elemnt to the node
node.appandChild(element)
node.appandChild(element)
To copy to clipboard, switch view to plain text mode
the output is:
<node>
<sy href = "test1">
<sy href = "">
<sy href = "">
</node>
why?
thank u for yout help
Bookmarks