src/share/jaxws_classes/com/sun/xml/internal/ws/api/message/saaj/SaajStaxWriter.java

changeset 1550
c4309a2d981b
parent 1341
e5cc521294d8
equal deleted inserted replaced
1549:a0a22040bf4d 1550:c4309a2d981b
490 } else { 490 } else {
491 newElement = target.addChildElement(this.localName, this.prefix, this.namespaceUri); 491 newElement = target.addChildElement(this.localName, this.prefix, this.namespaceUri);
492 } 492 }
493 // add namespace declarations 493 // add namespace declarations
494 for (NamespaceDeclaration namespace : this.namespaceDeclarations) { 494 for (NamespaceDeclaration namespace : this.namespaceDeclarations) {
495 target.addNamespaceDeclaration(namespace.prefix, namespace.namespaceUri); 495 newElement.addNamespaceDeclaration(namespace.prefix, namespace.namespaceUri);
496 } 496 }
497 // add attribute declarations 497 // add attribute declarations
498 for (AttributeDeclaration attribute : this.attributeDeclarations) { 498 for (AttributeDeclaration attribute : this.attributeDeclarations) {
499 addAttibuteToElement(newElement, 499 addAttibuteToElement(newElement,
500 attribute.prefix, attribute.namespaceUri, attribute.localName, attribute.value); 500 attribute.prefix, attribute.namespaceUri, attribute.localName, attribute.value);

mercurial