jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/message/stream/StreamHeader.java
changeset 29839 6d5d546e953b
parent 25871 b80b84e87032
equal deleted inserted replaced
29838:fe5fd9871a13 29839:6d5d546e953b
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   192     public void writeTo(SOAPMessage saaj) throws SOAPException {
   192     public void writeTo(SOAPMessage saaj) throws SOAPException {
   193         try {
   193         try {
   194             // TODO what about in-scope namespaces
   194             // TODO what about in-scope namespaces
   195             // Not very efficient consider implementing a stream buffer
   195             // Not very efficient consider implementing a stream buffer
   196             // processor that produces a DOM node from the buffer.
   196             // processor that produces a DOM node from the buffer.
   197             TransformerFactory tf = XmlUtil.newTransformerFactory();
   197             TransformerFactory tf = XmlUtil.newTransformerFactory(true);
   198             Transformer t = tf.newTransformer();
   198             Transformer t = tf.newTransformer();
   199             XMLStreamBufferSource source = new XMLStreamBufferSource(_mark);
   199             XMLStreamBufferSource source = new XMLStreamBufferSource(_mark);
   200             DOMResult result = new DOMResult();
   200             DOMResult result = new DOMResult();
   201             t.transform(source, result);
   201             t.transform(source, result);
   202             Node d = result.getNode();
   202             Node d = result.getNode();