jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/org/jvnet/staxex/util/XMLStreamReaderToXMLStreamWriter.java
changeset 33547 e4c76ac38b12
parent 25871 b80b84e87032
equal deleted inserted replaced
33390:d131f4b8433a 33547:e4c76ac38b12
   208 
   208 
   209         // start namespace bindings
   209         // start namespace bindings
   210         int nsCount = in.getNamespaceCount();
   210         int nsCount = in.getNamespaceCount();
   211         for (int i = 0; i < nsCount; i++) {
   211         for (int i = 0; i < nsCount; i++) {
   212             out.writeNamespace(
   212             out.writeNamespace(
   213                 in.getNamespacePrefix(i),
   213                 fixNull(in.getNamespacePrefix(i)), //StAX reader will return null for default NS
   214                 fixNull(in.getNamespaceURI(i)));    // zephyr doesn't like null, I don't know what is correct, so just fix null to "" for now
   214                 fixNull(in.getNamespaceURI(i)));    // zephyr doesn't like null, I don't know what is correct, so just fix null to "" for now
   215         }
   215         }
   216 
   216 
   217         // write attributes
   217         // write attributes
   218         int attCount = in.getAttributeCount();
   218         int attCount = in.getAttributeCount();