You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2006/08/25 15:17:37 UTC

svn commit: r436785 [5/18] - in /incubator/cxf/trunk: ./ api/ api/src/main/java/org/apache/cxf/buslifecycle/ api/src/main/java/org/apache/cxf/databinding/ api/src/main/java/org/apache/cxf/endpoint/ api/src/main/java/org/apache/cxf/interceptor/ api/src/...

Modified: incubator/cxf/trunk/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java (original)
+++ incubator/cxf/trunk/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java Fri Aug 25 06:16:36 2006
@@ -1,592 +1,592 @@
-package org.apache.cxf.staxutils;
-
-import java.io.*;
-import java.util.*;
-
-import javax.xml.namespace.QName;
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.stream.StreamFilter;
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLOutputFactory;
-import javax.xml.stream.XMLStreamConstants;
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamReader;
-import javax.xml.stream.XMLStreamWriter;
-
-import org.w3c.dom.*;
-
-public final class StaxUtils {
-
-    private static final XMLInputFactory XML_INPUT_FACTORY = XMLInputFactory.newInstance();
-    private static final XMLOutputFactory XML_OUTPUT_FACTORY = XMLOutputFactory.newInstance();
-
-    private static final String XML_NS = "http://www.w3.org/2000/xmlns/";
-
-    private StaxUtils() {
-    }
-
-    public static XMLInputFactory getXMLInputFactory() {
-        return XML_INPUT_FACTORY;
-    }
-
-    public static XMLOutputFactory getXMLOutputFactory() {
-        return XML_OUTPUT_FACTORY;
-    }
-
-    public static XMLStreamWriter createXMLStreamWriter(OutputStream out) {
-        return createXMLStreamWriter(out, null);
-    }
-
-    public static XMLStreamWriter createXMLStreamWriter(OutputStream out, String encoding) {
-        if (encoding == null) {
-            encoding = "UTF-8";
-        }
-
-        try {
-            return getXMLOutputFactory().createXMLStreamWriter(out, encoding);
-        } catch (XMLStreamException e) {
-            throw new RuntimeException("Cant' create XMLStreamWriter", e);
-        }
-    }
-
-    public static XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter) {
-        try {
-            return getXMLInputFactory().createFilteredReader(reader, filter);
-        } catch (XMLStreamException e) {
-            throw new RuntimeException("Cant' create XMLStreamReader", e);
-        }
-    }
-
-    public static void nextEvent(XMLStreamReader dr) {
-        try {
-            dr.next();
-        } catch (XMLStreamException e) {
-            throw new RuntimeException("Couldn't parse stream.", e);
-        }
-    }
-
-    public static boolean toNextText(DepthXMLStreamReader reader) {
-        if (reader.getEventType() == XMLStreamReader.CHARACTERS) {
-            return true;
-        }
-
-        try {
-            int depth = reader.getDepth();
-            int event = reader.getEventType();
-            while (reader.getDepth() >= depth && reader.hasNext()) {
-                if (event == XMLStreamReader.CHARACTERS && reader.getDepth() == depth + 1) {
-                    return true;
-                }
-                event = reader.next();
-            }
-            return false;
-        } catch (XMLStreamException e) {
-            throw new RuntimeException("Couldn't parse stream.", e);
-        }
-    }
-
-    public static void writeStartElement(XMLStreamWriter writer, String prefix, String name, String namespace)
-        throws XMLStreamException {
-        if (prefix == null) {
-            prefix = "";
-        }
-
-        if (namespace.length() > 0) {
-            writer.writeStartElement(prefix, name, namespace);
-            writer.writeNamespace(prefix, namespace);
-        } else {
-            writer.writeStartElement(name);
-            writer.writeDefaultNamespace("");
-        }
-    }
-
-    /**
-     * Returns true if currently at the start of an element, otherwise move
-     * forwards to the next element start and return true, otherwise false is
-     * returned if the end of the stream is reached.
-     */
-    public static boolean skipToStartOfElement(XMLStreamReader in) throws XMLStreamException {
-        for (int code = in.getEventType(); code != XMLStreamReader.END_DOCUMENT; code = in.next()) {
-            if (code == XMLStreamReader.START_ELEMENT) {
-                return true;
-            }
-        }
-        return false;
-    }
-
-    public static boolean toNextElement(DepthXMLStreamReader dr) {
-        if (dr.getEventType() == XMLStreamReader.START_ELEMENT) {
-            return true;
-        }
-        if (dr.getEventType() == XMLStreamReader.END_ELEMENT) {
-            return false;
-        }
-        try {
-            int depth = dr.getDepth();
-
-            for (int event = dr.getEventType(); dr.getDepth() >= depth && dr.hasNext(); event = dr.next()) {
-                if (event == XMLStreamReader.START_ELEMENT && dr.getDepth() == depth + 1) {
-                    return true;
-                } else if (event == XMLStreamReader.END_ELEMENT) {
-                    depth--;
-                }
-            }
-
-            return false;
-        } catch (XMLStreamException e) {
-            throw new RuntimeException("Couldn't parse stream.", e);
-        }
-    }
-
-    public static boolean skipToStartOfElement(DepthXMLStreamReader in) throws XMLStreamException {
-        for (int code = in.getEventType(); code != XMLStreamReader.END_DOCUMENT; code = in.next()) {
-            if (code == XMLStreamReader.START_ELEMENT) {
-                return true;
-            }
-        }
-        return false;
-    }
-
-    /**
-     * Copies the reader to the writer. The start and end document methods must
-     * be handled on the writer manually. TODO: if the namespace on the reader
-     * has been declared previously to where we are in the stream, this probably
-     * won't work.
-     * 
-     * @param reader
-     * @param writer
-     * @throws XMLStreamException
-     */
-    public static void copy(XMLStreamReader reader, XMLStreamWriter writer) throws XMLStreamException {
-        // number of elements read in
-        int read = 0;
-        int event = reader.getEventType();
-
-        while (reader.hasNext()) {
-            switch (event) {
-            case XMLStreamConstants.START_ELEMENT:
-                read++;
-                writeStartElement(reader, writer);
-                break;
-            case XMLStreamConstants.END_ELEMENT:
-                writer.writeEndElement();
-                read--;
-                if (read <= 0) {
-                    return;
-                }
-                break;
-            case XMLStreamConstants.CHARACTERS:
-                writer.writeCharacters(reader.getText());
-                break;
-            case XMLStreamConstants.START_DOCUMENT:
-            case XMLStreamConstants.END_DOCUMENT:
-            case XMLStreamConstants.ATTRIBUTE:
-            case XMLStreamConstants.NAMESPACE:
-                break;
-            default:
-                break;
-            }
-            event = reader.next();
-        }
-    }
-
-    private static void writeStartElement(XMLStreamReader reader, XMLStreamWriter writer)
-        throws XMLStreamException {
-        String local = reader.getLocalName();
-        String uri = reader.getNamespaceURI();
-        String prefix = reader.getPrefix();
-        if (prefix == null) {
-            prefix = "";
-        }
-
-        String boundPrefix = writer.getPrefix(uri);
-        boolean writeElementNS = false;
-        if (boundPrefix == null || !prefix.equals(boundPrefix)) {
-            writeElementNS = true;
-        }
-
-        // Write out the element name
-        if (uri != null) {
-            if (prefix.length() == 0) {
-
-                writer.writeStartElement(local);
-                writer.setDefaultNamespace(uri);
-
-            } else {
-                writer.writeStartElement(prefix, local, uri);
-                writer.setPrefix(prefix, uri);
-            }
-        } else {
-            writer.writeStartElement(reader.getLocalName());
-        }
-
-        // Write out the namespaces
-        for (int i = 0; i < reader.getNamespaceCount(); i++) {
-            String nsURI = reader.getNamespaceURI(i);
-            String nsPrefix = reader.getNamespacePrefix(i);
-            if (nsPrefix == null) {
-                nsPrefix = "";
-            }
-
-            if (nsPrefix.length() == 0) {
-                writer.writeDefaultNamespace(nsURI);
-            } else {
-                writer.writeNamespace(nsPrefix, nsURI);
-            }
-
-            if (nsURI.equals(uri) && nsPrefix.equals(prefix)) {
-                writeElementNS = false;
-            }
-        }
-
-        // Check if the namespace still needs to be written.
-        // We need this check because namespace writing works
-        // different on Woodstox and the RI.
-        if (writeElementNS) {
-            if (prefix == null || prefix.length() == 0) {
-                writer.writeDefaultNamespace(uri);
-            } else {
-                writer.writeNamespace(prefix, uri);
-            }
-        }
-
-        // Write out attributes
-        for (int i = 0; i < reader.getAttributeCount(); i++) {
-            String ns = reader.getAttributeNamespace(i);
-            String nsPrefix = reader.getAttributePrefix(i);
-            if (ns == null || ns.length() == 0) {
-                writer.writeAttribute(reader.getAttributeLocalName(i), reader.getAttributeValue(i));
-            } else if (nsPrefix == null || nsPrefix.length() == 0) {
-                writer.writeAttribute(reader.getAttributeNamespace(i), reader.getAttributeLocalName(i),
-                                      reader.getAttributeValue(i));
-            } else {
-                writer.writeAttribute(reader.getAttributePrefix(i), reader.getAttributeNamespace(i), reader
-                    .getAttributeLocalName(i), reader.getAttributeValue(i));
-            }
-
-        }
-    }
-
-    public static void writeDocument(Document d, XMLStreamWriter writer, boolean repairing)
-        throws XMLStreamException {
-        writeDocument(d, writer, true, repairing);
-    }
-
-    public static void writeDocument(Document d, XMLStreamWriter writer, boolean writeProlog,
-                                     boolean repairing) throws XMLStreamException {
-        if (writeProlog) {
-            writer.writeStartDocument();
-        }
-
-        Element root = d.getDocumentElement();
-        writeElement(root, writer, repairing);
-
-        if (writeProlog) {
-            writer.writeEndDocument();
-        }
-    }
-
-    /**
-     * Writes an Element to an XMLStreamWriter. The writer must already have
-     * started the doucment (via writeStartDocument()). Also, this probably
-     * won't work with just a fragment of a document. The Element should be the
-     * root element of the document.
-     * 
-     * @param e
-     * @param writer
-     * @throws XMLStreamException
-     */
-    public static void writeElement(Element e, XMLStreamWriter writer, boolean repairing)
-        throws XMLStreamException {
-        String prefix = e.getPrefix();
-        String ns = e.getNamespaceURI();
-        String localName = e.getLocalName();
-
-        if (prefix == null) {
-            prefix = "";
-        }
-        if (localName == null) {
-            localName = e.getNodeName();
-
-            if (localName == null) {
-                throw new IllegalStateException("Element's local name cannot be null!");
-            }
-        }
-
-        String decUri = writer.getNamespaceContext().getNamespaceURI(prefix);
-        boolean declareNamespace = decUri == null || !decUri.equals(ns);
-
-        if (ns == null || ns.length() == 0) {
-            writer.writeStartElement(localName);
-        } else {
-            writer.writeStartElement(prefix, localName, ns);
-        }
-
-        NamedNodeMap attrs = e.getAttributes();
-        for (int i = 0; i < attrs.getLength(); i++) {
-            Node attr = attrs.item(i);
-
-            String name = attr.getNodeName();
-            String attrPrefix = "";
-            int prefixIndex = name.indexOf(':');
-            if (prefixIndex != -1) {
-                attrPrefix = name.substring(0, prefixIndex);
-                name = name.substring(prefixIndex + 1);
-            }
-
-            if ("xmlns".equals(attrPrefix)) {
-                writer.writeNamespace(name, attr.getNodeValue());
-                if (name.equals(prefix) && attr.getNodeValue().equals(ns)) {
-                    declareNamespace = false;
-                }
-            } else {
-                if ("xmlns".equals(name) && "".equals(attrPrefix)) {
-                    writer.writeNamespace("", attr.getNodeValue());
-                    if (attr.getNodeValue().equals(ns)) {
-                        declareNamespace = false;
-                    }
-                } else {
-                    writer.writeAttribute(attrPrefix, attr.getNamespaceURI(), name, attr.getNodeValue());
-                }
-            }
-        }
-
-        if (declareNamespace && repairing) {
-            writer.writeNamespace(prefix, ns);
-        }
-
-        NodeList nodes = e.getChildNodes();
-        for (int i = 0; i < nodes.getLength(); i++) {
-            Node n = nodes.item(i);
-            writeNode(n, writer, repairing);
-        }
-
-        writer.writeEndElement();
-    }
-
-    public static void writeNode(Node n, XMLStreamWriter writer, boolean repairing) 
-        throws XMLStreamException {
-        if (n instanceof Element) {
-            writeElement((Element)n, writer, repairing);
-        } else if (n instanceof Text) {
-            writer.writeCharacters(((Text)n).getNodeValue());
-        } else if (n instanceof CDATASection) {
-            writer.writeCData(((CDATASection)n).getData());
-        } else if (n instanceof Comment) {
-            writer.writeComment(((Comment)n).getData());
-        } else if (n instanceof EntityReference) {
-            writer.writeEntityRef(((EntityReference)n).getNodeValue());
-        } else if (n instanceof ProcessingInstruction) {
-            ProcessingInstruction pi = (ProcessingInstruction)n;
-            writer.writeProcessingInstruction(pi.getTarget(), pi.getData());
-        }
-    }
-
-    public static Document read(DocumentBuilder builder, XMLStreamReader reader, boolean repairing,
-                                QName stopAt) throws XMLStreamException {
-        Document doc = builder.newDocument();
-
-        readDocElements(doc, reader, repairing, stopAt);
-
-        return doc;
-    }
-
-    /**
-     * @param parent
-     * @return
-     */
-    private static Document getDocument(Node parent) {
-        return (parent instanceof Document) ? (Document)parent : parent.getOwnerDocument();
-    }
-
-    /**
-     * @param parent
-     * @param reader
-     * @return
-     * @throws XMLStreamException
-     */
-    private static Element startElement(Node parent, XMLStreamReader reader, boolean repairing, QName stopAt)
-        throws XMLStreamException {
-        Document doc = getDocument(parent);
-
-        if (stopAt != null && stopAt.getNamespaceURI().equals(reader.getNamespaceURI())
-            && stopAt.getLocalPart().equals(reader.getLocalName())) {
-            return null;
-        }
-
-        Element e = doc.createElementNS(reader.getNamespaceURI(), reader.getLocalName());
-
-        if (reader.getPrefix() != null) {
-            e.setPrefix(reader.getPrefix());
-        }
-
-        parent.appendChild(e);
-
-        for (int ns = 0; ns < reader.getNamespaceCount(); ns++) {
-            String uri = reader.getNamespaceURI(ns);
-            String prefix = reader.getNamespacePrefix(ns);
-
-            declare(e, uri, prefix);
-        }
-
-        for (int att = 0; att < reader.getAttributeCount(); att++) {
-            String name = reader.getAttributeLocalName(att);
-            String prefix = reader.getAttributePrefix(att);
-            if (prefix != null && prefix.length() > 0) {
-                name = prefix + ":" + name;
-            }
-
-            Attr attr = doc.createAttributeNS(reader.getAttributeNamespace(att), name);
-            attr.setValue(reader.getAttributeValue(att));
-            e.setAttributeNode(attr);
-        }
-
-        reader.next();
-
-        readDocElements(e, reader, repairing, stopAt);
-
-        if (repairing && !isDeclared(e, reader.getNamespaceURI(), reader.getPrefix())) {
-            declare(e, reader.getNamespaceURI(), reader.getPrefix());
-        }
-
-        return e;
-    }
-
-    private static boolean isDeclared(Element e, String namespaceURI, String prefix) {
-        Attr att;
-        if (prefix != null && prefix.length() > 0) {
-            att = e.getAttributeNodeNS(XML_NS, "xmlns:" + prefix);
-        } else {
-            att = e.getAttributeNode("xmlns");
-        }
-
-        if (att != null && att.getNodeValue().equals(namespaceURI)) {
-            return true;
-        }
-
-        if (e.getParentNode() instanceof Element) {
-            return isDeclared((Element)e.getParentNode(), namespaceURI, prefix);
-        }
-
-        return false;
-    }
-
-    /**
-     * @param parent
-     * @param reader
-     * @throws XMLStreamException
-     */
-    public static void readDocElements(Node parent, XMLStreamReader reader, boolean repairing, QName stopAt)
-        throws XMLStreamException {
-        Document doc = getDocument(parent);
-
-        int event = reader.getEventType();
-
-        while (reader.hasNext()) {
-            switch (event) {
-            case XMLStreamConstants.START_ELEMENT:
-                if (startElement(parent, reader, repairing, stopAt) == null) {
-                    return;
-                }
-                if (parent instanceof Document && stopAt != null) {
-                    if (reader.hasNext()) {
-                        reader.next();
-                    }
-                    return;
-                }
-                break;
-            case XMLStreamConstants.END_ELEMENT:
-                return;
-            case XMLStreamConstants.NAMESPACE:
-                break;
-            case XMLStreamConstants.ATTRIBUTE:
-                break;
-            case XMLStreamConstants.CHARACTERS:
-                if (parent != null) {
-                    parent.appendChild(doc.createTextNode(reader.getText()));
-                }
-
-                break;
-            case XMLStreamConstants.COMMENT:
-                if (parent != null) {
-                    parent.appendChild(doc.createComment(reader.getText()));
-                }
-
-                break;
-            case XMLStreamConstants.CDATA:
-                parent.appendChild(doc.createCDATASection(reader.getText()));
-
-                break;
-            case XMLStreamConstants.PROCESSING_INSTRUCTION:
-                parent.appendChild(doc.createProcessingInstruction(reader.getPITarget(), reader.getPIData()));
-
-                break;
-            case XMLStreamConstants.ENTITY_REFERENCE:
-                parent.appendChild(doc.createProcessingInstruction(reader.getPITarget(), reader.getPIData()));
-
-                break;
-            default:
-                break;
-            }
-
-            if (reader.hasNext()) {
-                event = reader.next();
-            }
-        }
-    }
-
-    private static void declare(Element node, String uri, String prefix) {
-        if (prefix != null && prefix.length() > 0) {
-            node.setAttributeNS(XML_NS, "xmlns:" + prefix, uri);
-        } else {
-            if (uri != null /* && uri.length() > 0 */) {
-                node.setAttributeNS(XML_NS, "xmlns", uri);
-            }
-        }
-    }
-
-    /**
-     * @param in
-     * @param encoding
-     * @param ctx
-     * @return
-     */
-    public static XMLStreamReader createXMLStreamReader(InputStream in, String encoding) {
-        if (encoding == null) {
-            encoding = "UTF-8";
-        }
-
-        try {
-            return getXMLInputFactory().createXMLStreamReader(in, encoding);
-        } catch (XMLStreamException e) {
-            throw new RuntimeException("Couldn't parse stream.", e);
-        }
-    }
-
-    /**
-     * @param in
-     * @return
-     */
-    public static XMLStreamReader createXMLStreamReader(InputStream in) {
-
-        try {
-            return getXMLInputFactory().createXMLStreamReader(in);
-        } catch (XMLStreamException e) {
-            throw new RuntimeException("Couldn't parse stream.", e);
-        }
-    }
-
-    /**
-     * @param reader
-     * @return
-     */
-    public static XMLStreamReader createXMLStreamReader(Reader reader) {
-
-        try {
-            return getXMLInputFactory().createXMLStreamReader(reader);
-        } catch (XMLStreamException e) {
-            throw new RuntimeException("Couldn't parse stream.", e);
-        }
-    }
-
-}
+package org.apache.cxf.staxutils;
+
+import java.io.*;
+import java.util.*;
+
+import javax.xml.namespace.QName;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.stream.StreamFilter;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+
+import org.w3c.dom.*;
+
+public final class StaxUtils {
+
+    private static final XMLInputFactory XML_INPUT_FACTORY = XMLInputFactory.newInstance();
+    private static final XMLOutputFactory XML_OUTPUT_FACTORY = XMLOutputFactory.newInstance();
+
+    private static final String XML_NS = "http://www.w3.org/2000/xmlns/";
+
+    private StaxUtils() {
+    }
+
+    public static XMLInputFactory getXMLInputFactory() {
+        return XML_INPUT_FACTORY;
+    }
+
+    public static XMLOutputFactory getXMLOutputFactory() {
+        return XML_OUTPUT_FACTORY;
+    }
+
+    public static XMLStreamWriter createXMLStreamWriter(OutputStream out) {
+        return createXMLStreamWriter(out, null);
+    }
+
+    public static XMLStreamWriter createXMLStreamWriter(OutputStream out, String encoding) {
+        if (encoding == null) {
+            encoding = "UTF-8";
+        }
+
+        try {
+            return getXMLOutputFactory().createXMLStreamWriter(out, encoding);
+        } catch (XMLStreamException e) {
+            throw new RuntimeException("Cant' create XMLStreamWriter", e);
+        }
+    }
+
+    public static XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter) {
+        try {
+            return getXMLInputFactory().createFilteredReader(reader, filter);
+        } catch (XMLStreamException e) {
+            throw new RuntimeException("Cant' create XMLStreamReader", e);
+        }
+    }
+
+    public static void nextEvent(XMLStreamReader dr) {
+        try {
+            dr.next();
+        } catch (XMLStreamException e) {
+            throw new RuntimeException("Couldn't parse stream.", e);
+        }
+    }
+
+    public static boolean toNextText(DepthXMLStreamReader reader) {
+        if (reader.getEventType() == XMLStreamReader.CHARACTERS) {
+            return true;
+        }
+
+        try {
+            int depth = reader.getDepth();
+            int event = reader.getEventType();
+            while (reader.getDepth() >= depth && reader.hasNext()) {
+                if (event == XMLStreamReader.CHARACTERS && reader.getDepth() == depth + 1) {
+                    return true;
+                }
+                event = reader.next();
+            }
+            return false;
+        } catch (XMLStreamException e) {
+            throw new RuntimeException("Couldn't parse stream.", e);
+        }
+    }
+
+    public static void writeStartElement(XMLStreamWriter writer, String prefix, String name, String namespace)
+        throws XMLStreamException {
+        if (prefix == null) {
+            prefix = "";
+        }
+
+        if (namespace.length() > 0) {
+            writer.writeStartElement(prefix, name, namespace);
+            writer.writeNamespace(prefix, namespace);
+        } else {
+            writer.writeStartElement(name);
+            writer.writeDefaultNamespace("");
+        }
+    }
+
+    /**
+     * Returns true if currently at the start of an element, otherwise move
+     * forwards to the next element start and return true, otherwise false is
+     * returned if the end of the stream is reached.
+     */
+    public static boolean skipToStartOfElement(XMLStreamReader in) throws XMLStreamException {
+        for (int code = in.getEventType(); code != XMLStreamReader.END_DOCUMENT; code = in.next()) {
+            if (code == XMLStreamReader.START_ELEMENT) {
+                return true;
+            }
+        }
+        return false;
+    }
+
+    public static boolean toNextElement(DepthXMLStreamReader dr) {
+        if (dr.getEventType() == XMLStreamReader.START_ELEMENT) {
+            return true;
+        }
+        if (dr.getEventType() == XMLStreamReader.END_ELEMENT) {
+            return false;
+        }
+        try {
+            int depth = dr.getDepth();
+
+            for (int event = dr.getEventType(); dr.getDepth() >= depth && dr.hasNext(); event = dr.next()) {
+                if (event == XMLStreamReader.START_ELEMENT && dr.getDepth() == depth + 1) {
+                    return true;
+                } else if (event == XMLStreamReader.END_ELEMENT) {
+                    depth--;
+                }
+            }
+
+            return false;
+        } catch (XMLStreamException e) {
+            throw new RuntimeException("Couldn't parse stream.", e);
+        }
+    }
+
+    public static boolean skipToStartOfElement(DepthXMLStreamReader in) throws XMLStreamException {
+        for (int code = in.getEventType(); code != XMLStreamReader.END_DOCUMENT; code = in.next()) {
+            if (code == XMLStreamReader.START_ELEMENT) {
+                return true;
+            }
+        }
+        return false;
+    }
+
+    /**
+     * Copies the reader to the writer. The start and end document methods must
+     * be handled on the writer manually. TODO: if the namespace on the reader
+     * has been declared previously to where we are in the stream, this probably
+     * won't work.
+     * 
+     * @param reader
+     * @param writer
+     * @throws XMLStreamException
+     */
+    public static void copy(XMLStreamReader reader, XMLStreamWriter writer) throws XMLStreamException {
+        // number of elements read in
+        int read = 0;
+        int event = reader.getEventType();
+
+        while (reader.hasNext()) {
+            switch (event) {
+            case XMLStreamConstants.START_ELEMENT:
+                read++;
+                writeStartElement(reader, writer);
+                break;
+            case XMLStreamConstants.END_ELEMENT:
+                writer.writeEndElement();
+                read--;
+                if (read <= 0) {
+                    return;
+                }
+                break;
+            case XMLStreamConstants.CHARACTERS:
+                writer.writeCharacters(reader.getText());
+                break;
+            case XMLStreamConstants.START_DOCUMENT:
+            case XMLStreamConstants.END_DOCUMENT:
+            case XMLStreamConstants.ATTRIBUTE:
+            case XMLStreamConstants.NAMESPACE:
+                break;
+            default:
+                break;
+            }
+            event = reader.next();
+        }
+    }
+
+    private static void writeStartElement(XMLStreamReader reader, XMLStreamWriter writer)
+        throws XMLStreamException {
+        String local = reader.getLocalName();
+        String uri = reader.getNamespaceURI();
+        String prefix = reader.getPrefix();
+        if (prefix == null) {
+            prefix = "";
+        }
+
+        String boundPrefix = writer.getPrefix(uri);
+        boolean writeElementNS = false;
+        if (boundPrefix == null || !prefix.equals(boundPrefix)) {
+            writeElementNS = true;
+        }
+
+        // Write out the element name
+        if (uri != null) {
+            if (prefix.length() == 0) {
+
+                writer.writeStartElement(local);
+                writer.setDefaultNamespace(uri);
+
+            } else {
+                writer.writeStartElement(prefix, local, uri);
+                writer.setPrefix(prefix, uri);
+            }
+        } else {
+            writer.writeStartElement(reader.getLocalName());
+        }
+
+        // Write out the namespaces
+        for (int i = 0; i < reader.getNamespaceCount(); i++) {
+            String nsURI = reader.getNamespaceURI(i);
+            String nsPrefix = reader.getNamespacePrefix(i);
+            if (nsPrefix == null) {
+                nsPrefix = "";
+            }
+
+            if (nsPrefix.length() == 0) {
+                writer.writeDefaultNamespace(nsURI);
+            } else {
+                writer.writeNamespace(nsPrefix, nsURI);
+            }
+
+            if (nsURI.equals(uri) && nsPrefix.equals(prefix)) {
+                writeElementNS = false;
+            }
+        }
+
+        // Check if the namespace still needs to be written.
+        // We need this check because namespace writing works
+        // different on Woodstox and the RI.
+        if (writeElementNS) {
+            if (prefix == null || prefix.length() == 0) {
+                writer.writeDefaultNamespace(uri);
+            } else {
+                writer.writeNamespace(prefix, uri);
+            }
+        }
+
+        // Write out attributes
+        for (int i = 0; i < reader.getAttributeCount(); i++) {
+            String ns = reader.getAttributeNamespace(i);
+            String nsPrefix = reader.getAttributePrefix(i);
+            if (ns == null || ns.length() == 0) {
+                writer.writeAttribute(reader.getAttributeLocalName(i), reader.getAttributeValue(i));
+            } else if (nsPrefix == null || nsPrefix.length() == 0) {
+                writer.writeAttribute(reader.getAttributeNamespace(i), reader.getAttributeLocalName(i),
+                                      reader.getAttributeValue(i));
+            } else {
+                writer.writeAttribute(reader.getAttributePrefix(i), reader.getAttributeNamespace(i), reader
+                    .getAttributeLocalName(i), reader.getAttributeValue(i));
+            }
+
+        }
+    }
+
+    public static void writeDocument(Document d, XMLStreamWriter writer, boolean repairing)
+        throws XMLStreamException {
+        writeDocument(d, writer, true, repairing);
+    }
+
+    public static void writeDocument(Document d, XMLStreamWriter writer, boolean writeProlog,
+                                     boolean repairing) throws XMLStreamException {
+        if (writeProlog) {
+            writer.writeStartDocument();
+        }
+
+        Element root = d.getDocumentElement();
+        writeElement(root, writer, repairing);
+
+        if (writeProlog) {
+            writer.writeEndDocument();
+        }
+    }
+
+    /**
+     * Writes an Element to an XMLStreamWriter. The writer must already have
+     * started the doucment (via writeStartDocument()). Also, this probably
+     * won't work with just a fragment of a document. The Element should be the
+     * root element of the document.
+     * 
+     * @param e
+     * @param writer
+     * @throws XMLStreamException
+     */
+    public static void writeElement(Element e, XMLStreamWriter writer, boolean repairing)
+        throws XMLStreamException {
+        String prefix = e.getPrefix();
+        String ns = e.getNamespaceURI();
+        String localName = e.getLocalName();
+
+        if (prefix == null) {
+            prefix = "";
+        }
+        if (localName == null) {
+            localName = e.getNodeName();
+
+            if (localName == null) {
+                throw new IllegalStateException("Element's local name cannot be null!");
+            }
+        }
+
+        String decUri = writer.getNamespaceContext().getNamespaceURI(prefix);
+        boolean declareNamespace = decUri == null || !decUri.equals(ns);
+
+        if (ns == null || ns.length() == 0) {
+            writer.writeStartElement(localName);
+        } else {
+            writer.writeStartElement(prefix, localName, ns);
+        }
+
+        NamedNodeMap attrs = e.getAttributes();
+        for (int i = 0; i < attrs.getLength(); i++) {
+            Node attr = attrs.item(i);
+
+            String name = attr.getNodeName();
+            String attrPrefix = "";
+            int prefixIndex = name.indexOf(':');
+            if (prefixIndex != -1) {
+                attrPrefix = name.substring(0, prefixIndex);
+                name = name.substring(prefixIndex + 1);
+            }
+
+            if ("xmlns".equals(attrPrefix)) {
+                writer.writeNamespace(name, attr.getNodeValue());
+                if (name.equals(prefix) && attr.getNodeValue().equals(ns)) {
+                    declareNamespace = false;
+                }
+            } else {
+                if ("xmlns".equals(name) && "".equals(attrPrefix)) {
+                    writer.writeNamespace("", attr.getNodeValue());
+                    if (attr.getNodeValue().equals(ns)) {
+                        declareNamespace = false;
+                    }
+                } else {
+                    writer.writeAttribute(attrPrefix, attr.getNamespaceURI(), name, attr.getNodeValue());
+                }
+            }
+        }
+
+        if (declareNamespace && repairing) {
+            writer.writeNamespace(prefix, ns);
+        }
+
+        NodeList nodes = e.getChildNodes();
+        for (int i = 0; i < nodes.getLength(); i++) {
+            Node n = nodes.item(i);
+            writeNode(n, writer, repairing);
+        }
+
+        writer.writeEndElement();
+    }
+
+    public static void writeNode(Node n, XMLStreamWriter writer, boolean repairing) 
+        throws XMLStreamException {
+        if (n instanceof Element) {
+            writeElement((Element)n, writer, repairing);
+        } else if (n instanceof Text) {
+            writer.writeCharacters(((Text)n).getNodeValue());
+        } else if (n instanceof CDATASection) {
+            writer.writeCData(((CDATASection)n).getData());
+        } else if (n instanceof Comment) {
+            writer.writeComment(((Comment)n).getData());
+        } else if (n instanceof EntityReference) {
+            writer.writeEntityRef(((EntityReference)n).getNodeValue());
+        } else if (n instanceof ProcessingInstruction) {
+            ProcessingInstruction pi = (ProcessingInstruction)n;
+            writer.writeProcessingInstruction(pi.getTarget(), pi.getData());
+        }
+    }
+
+    public static Document read(DocumentBuilder builder, XMLStreamReader reader, boolean repairing,
+                                QName stopAt) throws XMLStreamException {
+        Document doc = builder.newDocument();
+
+        readDocElements(doc, reader, repairing, stopAt);
+
+        return doc;
+    }
+
+    /**
+     * @param parent
+     * @return
+     */
+    private static Document getDocument(Node parent) {
+        return (parent instanceof Document) ? (Document)parent : parent.getOwnerDocument();
+    }
+
+    /**
+     * @param parent
+     * @param reader
+     * @return
+     * @throws XMLStreamException
+     */
+    private static Element startElement(Node parent, XMLStreamReader reader, boolean repairing, QName stopAt)
+        throws XMLStreamException {
+        Document doc = getDocument(parent);
+
+        if (stopAt != null && stopAt.getNamespaceURI().equals(reader.getNamespaceURI())
+            && stopAt.getLocalPart().equals(reader.getLocalName())) {
+            return null;
+        }
+
+        Element e = doc.createElementNS(reader.getNamespaceURI(), reader.getLocalName());
+
+        if (reader.getPrefix() != null) {
+            e.setPrefix(reader.getPrefix());
+        }
+
+        parent.appendChild(e);
+
+        for (int ns = 0; ns < reader.getNamespaceCount(); ns++) {
+            String uri = reader.getNamespaceURI(ns);
+            String prefix = reader.getNamespacePrefix(ns);
+
+            declare(e, uri, prefix);
+        }
+
+        for (int att = 0; att < reader.getAttributeCount(); att++) {
+            String name = reader.getAttributeLocalName(att);
+            String prefix = reader.getAttributePrefix(att);
+            if (prefix != null && prefix.length() > 0) {
+                name = prefix + ":" + name;
+            }
+
+            Attr attr = doc.createAttributeNS(reader.getAttributeNamespace(att), name);
+            attr.setValue(reader.getAttributeValue(att));
+            e.setAttributeNode(attr);
+        }
+
+        reader.next();
+
+        readDocElements(e, reader, repairing, stopAt);
+
+        if (repairing && !isDeclared(e, reader.getNamespaceURI(), reader.getPrefix())) {
+            declare(e, reader.getNamespaceURI(), reader.getPrefix());
+        }
+
+        return e;
+    }
+
+    private static boolean isDeclared(Element e, String namespaceURI, String prefix) {
+        Attr att;
+        if (prefix != null && prefix.length() > 0) {
+            att = e.getAttributeNodeNS(XML_NS, "xmlns:" + prefix);
+        } else {
+            att = e.getAttributeNode("xmlns");
+        }
+
+        if (att != null && att.getNodeValue().equals(namespaceURI)) {
+            return true;
+        }
+
+        if (e.getParentNode() instanceof Element) {
+            return isDeclared((Element)e.getParentNode(), namespaceURI, prefix);
+        }
+
+        return false;
+    }
+
+    /**
+     * @param parent
+     * @param reader
+     * @throws XMLStreamException
+     */
+    public static void readDocElements(Node parent, XMLStreamReader reader, boolean repairing, QName stopAt)
+        throws XMLStreamException {
+        Document doc = getDocument(parent);
+
+        int event = reader.getEventType();
+
+        while (reader.hasNext()) {
+            switch (event) {
+            case XMLStreamConstants.START_ELEMENT:
+                if (startElement(parent, reader, repairing, stopAt) == null) {
+                    return;
+                }
+                if (parent instanceof Document && stopAt != null) {
+                    if (reader.hasNext()) {
+                        reader.next();
+                    }
+                    return;
+                }
+                break;
+            case XMLStreamConstants.END_ELEMENT:
+                return;
+            case XMLStreamConstants.NAMESPACE:
+                break;
+            case XMLStreamConstants.ATTRIBUTE:
+                break;
+            case XMLStreamConstants.CHARACTERS:
+                if (parent != null) {
+                    parent.appendChild(doc.createTextNode(reader.getText()));
+                }
+
+                break;
+            case XMLStreamConstants.COMMENT:
+                if (parent != null) {
+                    parent.appendChild(doc.createComment(reader.getText()));
+                }
+
+                break;
+            case XMLStreamConstants.CDATA:
+                parent.appendChild(doc.createCDATASection(reader.getText()));
+
+                break;
+            case XMLStreamConstants.PROCESSING_INSTRUCTION:
+                parent.appendChild(doc.createProcessingInstruction(reader.getPITarget(), reader.getPIData()));
+
+                break;
+            case XMLStreamConstants.ENTITY_REFERENCE:
+                parent.appendChild(doc.createProcessingInstruction(reader.getPITarget(), reader.getPIData()));
+
+                break;
+            default:
+                break;
+            }
+
+            if (reader.hasNext()) {
+                event = reader.next();
+            }
+        }
+    }
+
+    private static void declare(Element node, String uri, String prefix) {
+        if (prefix != null && prefix.length() > 0) {
+            node.setAttributeNS(XML_NS, "xmlns:" + prefix, uri);
+        } else {
+            if (uri != null /* && uri.length() > 0 */) {
+                node.setAttributeNS(XML_NS, "xmlns", uri);
+            }
+        }
+    }
+
+    /**
+     * @param in
+     * @param encoding
+     * @param ctx
+     * @return
+     */
+    public static XMLStreamReader createXMLStreamReader(InputStream in, String encoding) {
+        if (encoding == null) {
+            encoding = "UTF-8";
+        }
+
+        try {
+            return getXMLInputFactory().createXMLStreamReader(in, encoding);
+        } catch (XMLStreamException e) {
+            throw new RuntimeException("Couldn't parse stream.", e);
+        }
+    }
+
+    /**
+     * @param in
+     * @return
+     */
+    public static XMLStreamReader createXMLStreamReader(InputStream in) {
+
+        try {
+            return getXMLInputFactory().createXMLStreamReader(in);
+        } catch (XMLStreamException e) {
+            throw new RuntimeException("Couldn't parse stream.", e);
+        }
+    }
+
+    /**
+     * @param reader
+     * @return
+     */
+    public static XMLStreamReader createXMLStreamReader(Reader reader) {
+
+        try {
+            return getXMLInputFactory().createXMLStreamReader(reader);
+        } catch (XMLStreamException e) {
+            throw new RuntimeException("Couldn't parse stream.", e);
+        }
+    }
+
+}

Propchange: incubator/cxf/trunk/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/main/java/org/apache/cxf/version/Version.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/main/resources-filtered/org/apache/cxf/version/version.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/main/resources/schemas/configuration/metadata.xsd
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/annotation/AnnotatedGreeterImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/annotation/AnnotationProcessorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/annotation/AnnotationProcessorTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/annotation/Base.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/annotation/Base.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/classloader/FireWallClassLoaderTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/commands/ForkedCommandTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/commands/ResultBufferedCommandTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/commands/TestCommand.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/i18n/BundleUtilsTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/i18n/MessageTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/i18n/Messages.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/injection/ResourceInjectorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/injection/ResourceInjectorTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/logging/LogUtilsTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/logging/Messages.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/Base64UtilityTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/PackageUtilsTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java (original)
+++ incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java Fri Aug 25 06:16:36 2006
@@ -1,41 +1,41 @@
-package org.apache.cxf.common.util;
-
-import java.util.*;
-
-import junit.framework.TestCase;
-
-public class PropertiesLoaderUtilsTest extends TestCase {
-
-    Properties properties;
-    String soapBindingFactory = "org.apache.cxf.bindings.soap.SOAPBindingFactory";
-    
-    public void setUp() throws Exception {
-        properties = PropertiesLoaderUtils.
-            loadAllProperties("org/apache/cxf/common/util/resources/bindings.properties.xml",
-                              Thread.currentThread().getContextClassLoader());
-        assertNotNull(properties);        
-        
-    }
-    public void testLoadBindings() throws Exception {
-
-        assertEquals(soapBindingFactory,
-                     properties.getProperty("http://schemas.xmlsoap.org/wsdl/soap/"));
-
-        assertEquals(soapBindingFactory,
-                     properties.getProperty("http://schemas.xmlsoap.org/wsdl/soap/http"));
-
-        assertEquals(soapBindingFactory,
-                     properties.getProperty("http://cxf.apache.org/transports/jms"));
-        
-
-    }
-
-    public void testGetPropertyNames() throws Exception {
-        Collection<String> names = PropertiesLoaderUtils.getPropertyNames(properties, soapBindingFactory);
-        assertNotNull(names);
-        assertEquals(3, names.size());
-        assertTrue(names.contains("http://schemas.xmlsoap.org/wsdl/soap/"));
-        assertTrue(names.contains("http://schemas.xmlsoap.org/wsdl/soap/http"));
-        assertTrue(names.contains("http://cxf.apache.org/transports/jms"));
-    }
-}
+package org.apache.cxf.common.util;
+
+import java.util.*;
+
+import junit.framework.TestCase;
+
+public class PropertiesLoaderUtilsTest extends TestCase {
+
+    Properties properties;
+    String soapBindingFactory = "org.apache.cxf.bindings.soap.SOAPBindingFactory";
+    
+    public void setUp() throws Exception {
+        properties = PropertiesLoaderUtils.
+            loadAllProperties("org/apache/cxf/common/util/resources/bindings.properties.xml",
+                              Thread.currentThread().getContextClassLoader());
+        assertNotNull(properties);        
+        
+    }
+    public void testLoadBindings() throws Exception {
+
+        assertEquals(soapBindingFactory,
+                     properties.getProperty("http://schemas.xmlsoap.org/wsdl/soap/"));
+
+        assertEquals(soapBindingFactory,
+                     properties.getProperty("http://schemas.xmlsoap.org/wsdl/soap/http"));
+
+        assertEquals(soapBindingFactory,
+                     properties.getProperty("http://cxf.apache.org/transports/jms"));
+        
+
+    }
+
+    public void testGetPropertyNames() throws Exception {
+        Collection<String> names = PropertiesLoaderUtils.getPropertyNames(properties, soapBindingFactory);
+        assertNotNull(names);
+        assertEquals(3, names.size());
+        assertTrue(names.contains("http://schemas.xmlsoap.org/wsdl/soap/"));
+        assertTrue(names.contains("http://schemas.xmlsoap.org/wsdl/soap/http"));
+        assertTrue(names.contains("http://cxf.apache.org/transports/jms"));
+    }
+}

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/TwoStageCacheTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/resources/bindings.properties.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/resources/bindings.properties.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/resources/bindings.properties.xml (original)
+++ incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/resources/bindings.properties.xml Fri Aug 25 06:16:36 2006
@@ -1,7 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
-<properties>
-    <entry key="http://schemas.xmlsoap.org/wsdl/soap/">org.apache.cxf.bindings.soap.SOAPBindingFactory</entry>
-    <entry key="http://schemas.xmlsoap.org/wsdl/soap/http">org.apache.cxf.bindings.soap.SOAPBindingFactory</entry>
-    <entry key="http://cxf.apache.org/transports/jms">org.apache.cxf.bindings.soap.SOAPBindingFactory</entry>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
+<properties>
+    <entry key="http://schemas.xmlsoap.org/wsdl/soap/">org.apache.cxf.bindings.soap.SOAPBindingFactory</entry>
+    <entry key="http://schemas.xmlsoap.org/wsdl/soap/http">org.apache.cxf.bindings.soap.SOAPBindingFactory</entry>
+    <entry key="http://cxf.apache.org/transports/jms">org.apache.cxf.bindings.soap.SOAPBindingFactory</entry>
 </properties>

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/resources/bindings.properties.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/resources/bindings.properties.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/common/util/resources/bindings.properties.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/configuration/impl/ConfigurationBuilderImplTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/configuration/impl/TestProvider.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/helpers/NameSpaceTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/jaxb/JAXBUtilsTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/resource/ClassLoaderResolverTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/DepthXMLStreamReaderTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/DepthXMLStreamReaderTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/DepthXMLStreamReaderTest.java (original)
+++ incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/DepthXMLStreamReaderTest.java Fri Aug 25 06:16:36 2006
@@ -1,40 +1,40 @@
-package org.apache.cxf.staxutils;
-
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLStreamReader;
-
-import junit.framework.TestCase;
-
-public class DepthXMLStreamReaderTest extends TestCase {
-    public void testReader() throws Exception {
-        XMLInputFactory ifactory = StaxUtils.getXMLInputFactory();
-        XMLStreamReader reader = 
-            ifactory.createXMLStreamReader(getClass().getResourceAsStream("./resources/amazon.xml"));
-        
-        DepthXMLStreamReader dr = new DepthXMLStreamReader(reader);
-        
-        StaxUtils.toNextElement(dr);
-        assertEquals("ItemLookup", dr.getLocalName());
-        assertEquals(XMLStreamReader.START_ELEMENT, reader.getEventType());
-
-        assertEquals(1, dr.getDepth());
-
-        assertEquals(0, dr.getAttributeCount());
-
-
-        dr.next();
-
-        assertEquals(1, dr.getDepth());
-        assertTrue(dr.isWhiteSpace());
-
-        dr.nextTag();
-
-        assertEquals(2, dr.getDepth());
-        assertEquals("SubscriptionId", dr.getLocalName());
-
-        dr.next();
-        assertEquals("1E5AY4ZG53H4AMC8QH82", dr.getText());
-        
-        dr.close();
-    }
-}
+package org.apache.cxf.staxutils;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+
+import junit.framework.TestCase;
+
+public class DepthXMLStreamReaderTest extends TestCase {
+    public void testReader() throws Exception {
+        XMLInputFactory ifactory = StaxUtils.getXMLInputFactory();
+        XMLStreamReader reader = 
+            ifactory.createXMLStreamReader(getClass().getResourceAsStream("./resources/amazon.xml"));
+        
+        DepthXMLStreamReader dr = new DepthXMLStreamReader(reader);
+        
+        StaxUtils.toNextElement(dr);
+        assertEquals("ItemLookup", dr.getLocalName());
+        assertEquals(XMLStreamReader.START_ELEMENT, reader.getEventType());
+
+        assertEquals(1, dr.getDepth());
+
+        assertEquals(0, dr.getAttributeCount());
+
+
+        dr.next();
+
+        assertEquals(1, dr.getDepth());
+        assertTrue(dr.isWhiteSpace());
+
+        dr.nextTag();
+
+        assertEquals(2, dr.getDepth());
+        assertEquals("SubscriptionId", dr.getLocalName());
+
+        dr.next();
+        assertEquals("1E5AY4ZG53H4AMC8QH82", dr.getText());
+        
+        dr.close();
+    }
+}

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/DepthXMLStreamReaderTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/DepthXMLStreamReaderTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/FragmentStreamReaderTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/FragmentStreamReaderTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/FragmentStreamReaderTest.java (original)
+++ incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/FragmentStreamReaderTest.java Fri Aug 25 06:16:36 2006
@@ -1,35 +1,35 @@
-package org.apache.cxf.staxutils;
-
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLStreamReader;
-
-import junit.framework.TestCase;
-
-public class FragmentStreamReaderTest extends TestCase {
-
-    public void testReader() throws Exception {
-        XMLInputFactory ifactory = StaxUtils.getXMLInputFactory();
-        XMLStreamReader reader = 
-            ifactory.createXMLStreamReader(getClass().getResourceAsStream("./resources/amazon.xml"));
-        
-        DepthXMLStreamReader dr = new DepthXMLStreamReader(reader);
-        
-        StaxUtils.toNextElement(dr);
-        assertEquals("ItemLookup", dr.getLocalName());
-        assertEquals(XMLStreamReader.START_ELEMENT, reader.getEventType());
-        
-        FragmentStreamReader fsr = new FragmentStreamReader(dr);
-        assertTrue(fsr.hasNext());
-        
-        assertEquals(XMLStreamReader.START_DOCUMENT, fsr.next());
-        assertEquals(XMLStreamReader.START_DOCUMENT, fsr.getEventType());
-        
-        fsr.next();
-
-        assertEquals("ItemLookup", fsr.getLocalName());
-        assertEquals("ItemLookup", dr.getLocalName());
-        assertEquals(XMLStreamReader.START_ELEMENT, reader.getEventType());
-        
-        fsr.close();
-    }
-}
+package org.apache.cxf.staxutils;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+
+import junit.framework.TestCase;
+
+public class FragmentStreamReaderTest extends TestCase {
+
+    public void testReader() throws Exception {
+        XMLInputFactory ifactory = StaxUtils.getXMLInputFactory();
+        XMLStreamReader reader = 
+            ifactory.createXMLStreamReader(getClass().getResourceAsStream("./resources/amazon.xml"));
+        
+        DepthXMLStreamReader dr = new DepthXMLStreamReader(reader);
+        
+        StaxUtils.toNextElement(dr);
+        assertEquals("ItemLookup", dr.getLocalName());
+        assertEquals(XMLStreamReader.START_ELEMENT, reader.getEventType());
+        
+        FragmentStreamReader fsr = new FragmentStreamReader(dr);
+        assertTrue(fsr.hasNext());
+        
+        assertEquals(XMLStreamReader.START_DOCUMENT, fsr.next());
+        assertEquals(XMLStreamReader.START_DOCUMENT, fsr.getEventType());
+        
+        fsr.next();
+
+        assertEquals("ItemLookup", fsr.getLocalName());
+        assertEquals("ItemLookup", dr.getLocalName());
+        assertEquals(XMLStreamReader.START_ELEMENT, reader.getEventType());
+        
+        fsr.close();
+    }
+}

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/FragmentStreamReaderTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/FragmentStreamReaderTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxStreamFilterTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxStreamFilterTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxStreamFilterTest.java (original)
+++ incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxStreamFilterTest.java Fri Aug 25 06:16:36 2006
@@ -1,67 +1,67 @@
-package org.apache.cxf.staxutils;
-
-import java.io.*;
-
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLStreamConstants;
-import javax.xml.stream.XMLStreamReader;
-
-import junit.framework.TestCase;
-
-public class StaxStreamFilterTest extends TestCase {
-    public static final QName  SOAP_ENV = 
-        new QName("http://schemas.xmlsoap.org/soap/envelope/", "Envelope");
-    public static final QName  SOAP_BODY = 
-        new QName("http://schemas.xmlsoap.org/soap/envelope/", "Body");
-
-    public void testFilter() throws Exception {
-        StaxStreamFilter filter = new StaxStreamFilter(new QName[]{SOAP_ENV, SOAP_BODY});
-        String soapMessage = "./resources/sayHiRpcLiteralReq.xml";
-        XMLStreamReader reader = StaxUtils.createXMLStreamReader(getTestStream(soapMessage));
-        reader = StaxUtils.createFilteredReader(reader, filter);
-        
-        DepthXMLStreamReader dr = new DepthXMLStreamReader(reader);
-
-        StaxUtils.toNextElement(dr);
-        QName sayHi = new QName("http://apache.org/hello_world_rpclit", "sayHi");
-        
-        assertEquals(sayHi, dr.getName());
-    }
-
-    public void testFilterRPC() throws Exception {
-        StaxStreamFilter filter = new StaxStreamFilter(new QName[]{SOAP_ENV, SOAP_BODY});
-        String soapMessage = "./resources/greetMeRpcLitReq.xml";
-        XMLStreamReader reader = StaxUtils.createXMLStreamReader(getTestStream(soapMessage));
-        reader = StaxUtils.createFilteredReader(reader, filter);
-        
-        DepthXMLStreamReader dr = new DepthXMLStreamReader(reader);
-
-        StaxUtils.toNextElement(dr);
-        assertEquals(new QName("http://apache.org/hello_world_rpclit", "sendReceiveData"), dr.getName());
-
-        StaxUtils.nextEvent(dr);
-        StaxUtils.toNextElement(dr);
-        assertEquals(new QName("", "in"), dr.getName());
-
-        StaxUtils.nextEvent(dr);
-        StaxUtils.toNextElement(dr);
-        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "elem1"), dr.getName());
-
-        StaxUtils.nextEvent(dr);
-        StaxUtils.toNextText(dr);
-        assertEquals("this is element 1", dr.getText());
-        
-        StaxUtils.toNextElement(dr);
-        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "elem1"), dr.getName());
-        assertEquals(XMLStreamConstants.END_ELEMENT, dr.getEventType());
-
-        StaxUtils.nextEvent(dr);
-        StaxUtils.toNextElement(dr);
-        
-        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "elem2"), dr.getName());
-    } 
-
-    private InputStream getTestStream(String file) {
-        return getClass().getResourceAsStream(file);
-    }
-}
+package org.apache.cxf.staxutils;
+
+import java.io.*;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.XMLStreamReader;
+
+import junit.framework.TestCase;
+
+public class StaxStreamFilterTest extends TestCase {
+    public static final QName  SOAP_ENV = 
+        new QName("http://schemas.xmlsoap.org/soap/envelope/", "Envelope");
+    public static final QName  SOAP_BODY = 
+        new QName("http://schemas.xmlsoap.org/soap/envelope/", "Body");
+
+    public void testFilter() throws Exception {
+        StaxStreamFilter filter = new StaxStreamFilter(new QName[]{SOAP_ENV, SOAP_BODY});
+        String soapMessage = "./resources/sayHiRpcLiteralReq.xml";
+        XMLStreamReader reader = StaxUtils.createXMLStreamReader(getTestStream(soapMessage));
+        reader = StaxUtils.createFilteredReader(reader, filter);
+        
+        DepthXMLStreamReader dr = new DepthXMLStreamReader(reader);
+
+        StaxUtils.toNextElement(dr);
+        QName sayHi = new QName("http://apache.org/hello_world_rpclit", "sayHi");
+        
+        assertEquals(sayHi, dr.getName());
+    }
+
+    public void testFilterRPC() throws Exception {
+        StaxStreamFilter filter = new StaxStreamFilter(new QName[]{SOAP_ENV, SOAP_BODY});
+        String soapMessage = "./resources/greetMeRpcLitReq.xml";
+        XMLStreamReader reader = StaxUtils.createXMLStreamReader(getTestStream(soapMessage));
+        reader = StaxUtils.createFilteredReader(reader, filter);
+        
+        DepthXMLStreamReader dr = new DepthXMLStreamReader(reader);
+
+        StaxUtils.toNextElement(dr);
+        assertEquals(new QName("http://apache.org/hello_world_rpclit", "sendReceiveData"), dr.getName());
+
+        StaxUtils.nextEvent(dr);
+        StaxUtils.toNextElement(dr);
+        assertEquals(new QName("", "in"), dr.getName());
+
+        StaxUtils.nextEvent(dr);
+        StaxUtils.toNextElement(dr);
+        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "elem1"), dr.getName());
+
+        StaxUtils.nextEvent(dr);
+        StaxUtils.toNextText(dr);
+        assertEquals("this is element 1", dr.getText());
+        
+        StaxUtils.toNextElement(dr);
+        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "elem1"), dr.getName());
+        assertEquals(XMLStreamConstants.END_ELEMENT, dr.getEventType());
+
+        StaxUtils.nextEvent(dr);
+        StaxUtils.toNextElement(dr);
+        
+        assertEquals(new QName("http://apache.org/hello_world_rpclit/types", "elem2"), dr.getName());
+    } 
+
+    private InputStream getTestStream(String file) {
+        return getClass().getResourceAsStream(file);
+    }
+}

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxStreamFilterTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxStreamFilterTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java (original)
+++ incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java Fri Aug 25 06:16:36 2006
@@ -1,31 +1,31 @@
-package org.apache.cxf.staxutils;
-
-import java.io.*;
-
-import javax.xml.stream.XMLStreamReader;
-import junit.framework.TestCase;
-
-public class StaxUtilsTest extends TestCase {
-
-    public void testFactoryCreation() {
-        XMLStreamReader reader = StaxUtils.createXMLStreamReader(getTestStream("./resources/amazon.xml"));
-        assertTrue(reader != null);
-    }
-
-    private InputStream getTestStream(String resource) {
-        return getClass().getResourceAsStream(resource);
-    }
-
-    public void testToNextElement() {
-        String soapMessage = "./resources/sayHiRpcLiteralReq.xml";
-        XMLStreamReader r = StaxUtils.createXMLStreamReader(getTestStream(soapMessage));
-        DepthXMLStreamReader reader = new DepthXMLStreamReader(r);
-        assertTrue(StaxUtils.toNextElement(reader));
-        assertEquals("Envelope", reader.getLocalName());
-
-        StaxUtils.nextEvent(reader);
-
-        assertTrue(StaxUtils.toNextElement(reader));
-        assertEquals("Body", reader.getLocalName());
-    }
-}
+package org.apache.cxf.staxutils;
+
+import java.io.*;
+
+import javax.xml.stream.XMLStreamReader;
+import junit.framework.TestCase;
+
+public class StaxUtilsTest extends TestCase {
+
+    public void testFactoryCreation() {
+        XMLStreamReader reader = StaxUtils.createXMLStreamReader(getTestStream("./resources/amazon.xml"));
+        assertTrue(reader != null);
+    }
+
+    private InputStream getTestStream(String resource) {
+        return getClass().getResourceAsStream(resource);
+    }
+
+    public void testToNextElement() {
+        String soapMessage = "./resources/sayHiRpcLiteralReq.xml";
+        XMLStreamReader r = StaxUtils.createXMLStreamReader(getTestStream(soapMessage));
+        DepthXMLStreamReader reader = new DepthXMLStreamReader(r);
+        assertTrue(StaxUtils.toNextElement(reader));
+        assertEquals("Envelope", reader.getLocalName());
+
+        StaxUtils.nextEvent(reader);
+
+        assertTrue(StaxUtils.toNextElement(reader));
+        assertEquals("Body", reader.getLocalName());
+    }
+}

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/StaxUtilsTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/GreetMeDocLiteralReq.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/GreetMeDocLiteralReq.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/GreetMeDocLiteralReq.xml (original)
+++ incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/GreetMeDocLiteralReq.xml Fri Aug 25 06:16:36 2006
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><ns4:greetMe xmlns:ns4="http://apache.org/hello_world_soap_http/types"><ns4:requestType>TestSOAPInputPMessage</ns4:requestType></ns4:greetMe></SOAP-ENV:Body></SOAP-ENV:Envelope>
+<?xml version="1.0" encoding="utf-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><ns4:greetMe xmlns:ns4="http://apache.org/hello_world_soap_http/types"><ns4:requestType>TestSOAPInputPMessage</ns4:requestType></ns4:greetMe></SOAP-ENV:Body></SOAP-ENV:Envelope>

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/GreetMeDocLiteralReq.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/GreetMeDocLiteralReq.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/GreetMeDocLiteralReq.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/StringStruct.xsd
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/StringStruct.xsd?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/StringStruct.xsd (original)
+++ incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/StringStruct.xsd Fri Aug 25 06:16:36 2006
@@ -1,12 +1,12 @@
-<xsd:schema targetNamespace="http://apache.org/hello_world_soap_http/types"
-    xmlns="http://www.w3.org/2001/XMLSchema"
-    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-    xmlns:x1="http://apache.org/hello_world_soap_http/types"
-    elementFormDefault="qualified">
-        <xsd:complexType name="stringStruct">
-            <xsd:sequence>
-                <xsd:element name="arg0" type="string"/>
-                <xsd:element name="arg1" type="string"/>
-            </xsd:sequence>
-        </xsd:complexType>
-</xsd:schema>
+<xsd:schema targetNamespace="http://apache.org/hello_world_soap_http/types"
+    xmlns="http://www.w3.org/2001/XMLSchema"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:x1="http://apache.org/hello_world_soap_http/types"
+    elementFormDefault="qualified">
+        <xsd:complexType name="stringStruct">
+            <xsd:sequence>
+                <xsd:element name="arg0" type="string"/>
+                <xsd:element name="arg1" type="string"/>
+            </xsd:sequence>
+        </xsd:complexType>
+</xsd:schema>

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/StringStruct.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/StringStruct.xsd
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/StringStruct.xsd
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/amazon.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/amazon.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/amazon.xml (original)
+++ incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/amazon.xml Fri Aug 25 06:16:36 2006
@@ -1,9 +1,9 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ns:ItemLookup xmlns:ns="http://xml.amazon.com/AWSECommerceService/2004-08-01">
-    <ns:SubscriptionId>1E5AY4ZG53H4AMC8QH82</ns:SubscriptionId>
-    <ns:AssociateTag>dandiephosblo-20</ns:AssociateTag>
-    <ns:Request>
-	<ns:IdType>ASIN</ns:IdType>
-	<ns:ItemId>0486411214</ns:ItemId>
-    </ns:Request>
+<?xml version="1.0" encoding="UTF-8"?>
+<ns:ItemLookup xmlns:ns="http://xml.amazon.com/AWSECommerceService/2004-08-01">
+    <ns:SubscriptionId>1E5AY4ZG53H4AMC8QH82</ns:SubscriptionId>
+    <ns:AssociateTag>dandiephosblo-20</ns:AssociateTag>
+    <ns:Request>
+	<ns:IdType>ASIN</ns:IdType>
+	<ns:ItemId>0486411214</ns:ItemId>
+    </ns:Request>
 </ns:ItemLookup>

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/amazon.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/amazon.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/amazon.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/greetMeRpcLitReq.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/greetMeRpcLitReq.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/greetMeRpcLitReq.xml (original)
+++ incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/greetMeRpcLitReq.xml Fri Aug 25 06:16:36 2006
@@ -1,13 +1,13 @@
-<?xml version="1.0" encoding="utf-8"?>
-<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
-		   xmlns:xs="http://www.w3.org/2001/XMLSchema" 
-		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-    <SOAP-ENV:Body>
-	<ns1:sendReceiveData xmlns:ns1="http://apache.org/hello_world_rpclit">
-	    <in xmlns:ns5="http://apache.org/hello_world_rpclit/types">
-		<ns5:elem1>this is element 1</ns5:elem1>
-		<ns5:elem2>this is element 2</ns5:elem2>
-	    <ns5:elem3>42</ns5:elem3></in>
-	</ns1:sendReceiveData>
-    </SOAP-ENV:Body>
+<?xml version="1.0" encoding="utf-8"?>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
+		   xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+    <SOAP-ENV:Body>
+	<ns1:sendReceiveData xmlns:ns1="http://apache.org/hello_world_rpclit">
+	    <in xmlns:ns5="http://apache.org/hello_world_rpclit/types">
+		<ns5:elem1>this is element 1</ns5:elem1>
+		<ns5:elem2>this is element 2</ns5:elem2>
+	    <ns5:elem3>42</ns5:elem3></in>
+	</ns1:sendReceiveData>
+    </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/greetMeRpcLitReq.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/greetMeRpcLitReq.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/greetMeRpcLitReq.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/sayHiRpcLiteralReq.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/sayHiRpcLiteralReq.xml?rev=436785&r1=436784&r2=436785&view=diff
==============================================================================
--- incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/sayHiRpcLiteralReq.xml (original)
+++ incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/sayHiRpcLiteralReq.xml Fri Aug 25 06:16:36 2006
@@ -1,10 +1,10 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<SOAP-ENV:Envelope 
-    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
-    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xmlns:m1="http://apache.org/hello_world_rpclit">
-    <SOAP-ENV:Body>
-	<m1:sayHi> </m1:sayHi>
-    </SOAP-ENV:Body>
+<?xml version="1.0" encoding="utf-8" ?>
+<SOAP-ENV:Envelope 
+    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
+    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:m1="http://apache.org/hello_world_rpclit">
+    <SOAP-ENV:Body>
+	<m1:sayHi> </m1:sayHi>
+    </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/sayHiRpcLiteralReq.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/sayHiRpcLiteralReq.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/staxutils/resources/sayHiRpcLiteralReq.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/cxf/trunk/common/src/test/java/org/apache/cxf/version/VersionTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/common/src/test/resources/logging.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/docs/forrest.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/docs/resources/classes/CatalogManager.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/docs/resources/skinconf.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/docs/resources/skinconf.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/cxf/trunk/docs/skins/skinconf.xsl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/docs/skins/xslt/fo/document2fo.xsl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/docs/skins/xslt/html/book2menu.xsl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/docs/skins/xslt/html/document2html.xsl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/docs/skins/xslt/html/site2xhtml.xsl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/docs/skins/xslt/html/tab2menu.xsl
------------------------------------------------------------------------------
    svn:keywords = Rev Date