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:
Qt Code:
  1. element.setAttribute("href","test1");
To copy to clipboard, switch view to plain text mode 
and then add the elemnt to the node
Qt Code:
  1. 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