in reply to Re^2: XML Attribute vs Element
in thread XML Attribute vs Element

But I could still use some help... When I add an attribute to lets say tag B my code fails all of a sudden ..

What code do you use to do that? I used

# Add attribute "xxx" with value "yyy" to # the first (idx 0) "B" child of node $doc. $doc->{B}[0]{xxx} = 'yyy';