Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cxf.helpers
Class XMLUtils

    java.lang.Object
      org.apache.cxf.helpers.XMLUtils

    public final class XMLUtils

extends Object

Method Summary
`static Set<QName>` | `convertStringsToQNames(List<String> expandedQNames)`
`static QName` | `convertStringToQName(String expandedQName)`
`static QName` | `convertStringToQName(String expandedQName, String prefix)`
`static Element` | `createElementNS(Document root, QName name)`
`static Element` | `createElementNS(Document root, String namespaceURI, String qualifiedName)`
`static Element` | `createElementNS(Node node, QName name)`
`static Text` | `createTextNode(Document root, String data)`
`static Text` | `createTextNode(Node node, String data)`
`static Element` | `fetchElementByNameAttribute(Element parent, String targetName, String nameValue)`
`static Node` | `fromSource(Source src)`
`static void` | `generateXMLFile(Element element, Writer writer)`
`static Attr` | `getAttribute(Element el, String attrName)`
`static InputStream` | `getInputStream(Document doc)`
`static QName` | `getNamespace(Map<String,String> namespaces, String str, String defaultNamespace)`
`static DocumentBuilder` | `getParser()`
`static QName` | `getQName(String value, Node node)`
`static boolean` | `hasAttribute(Element element, String value)`
`static Document` | `newDocument()`
`static Transformer` | `newTransformer()`
`static Transformer` | `newTransformer(int indent)`
`static Document` | `parse(byte[] in)`
`static Document` | `parse(File is)`
`static Document` | `parse(InputSource is)`
`static Document` | `parse(InputStream in)`
`static Document` | `parse(String in)`
`static void` | `printAttributes(Element element)`
`static void` | `printDOM(Node node)`
`static void` | `printDOM(String words, Node node)`
`static void` | `removeContents(Node parent)`
`static void` | `replaceAttribute(Element element, String attr, String value)`
`static String` | `toString(Node node)`
`static String` | `toString(Node node, int indent)`
`static String` | `toString(Source source)`
`static String` | `toString(Source source, Properties props)`
`static void` | `writeTo(Node node, OutputStream os)`
`static void` | `writeTo(Node node, OutputStream os, int indent)`
`static void` | `writeTo(Node node, Writer os)`
`static void` | `writeTo(Node node, Writer os, int indent)`
`static void` | `writeTo(Source src, OutputStream os)`
`static void` | `writeTo(Source src, OutputStream os, int indent)`
`static void` | `writeTo(Source src, OutputStream os, int indent, String charset, String omitXmlDecl)`
`static void` | `writeTo(Source src, Writer os)`
`static void` | `writeTo(Source src, Writer os, int indent)`
`static void` | `writeTo(Source src, Writer os, int indent, String charset, String omitXmlDecl)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### newTransformer

    public static Transformer newTransformer()
                                      throws TransformerConfigurationException

  Throws:
    `TransformerConfigurationException`

### newTransformer

    public static Transformer newTransformer(int indent)
                                      throws TransformerConfigurationException

  Throws:
    `TransformerConfigurationException`

### getParser

    public static DocumentBuilder getParser()
                                     throws ParserConfigurationException

  Throws:
    `ParserConfigurationException`

### parse

    public static Document parse(InputSource is)
                          throws ParserConfigurationException,
                                 SAXException,
                                 IOException

  Throws:
    `ParserConfigurationException`
    `SAXException`
    `IOException`

### parse

    public static Document parse(File is)
                          throws ParserConfigurationException,
                                 SAXException,
                                 IOException

  Throws:
    `ParserConfigurationException`
    `SAXException`
    `IOException`

### parse

    public static Document parse(InputStream in)
                          throws ParserConfigurationException,
                                 SAXException,
                                 IOException

  Throws:
    `ParserConfigurationException`
    `SAXException`
    `IOException`

### parse

    public static Document parse(String in)
                          throws ParserConfigurationException,
                                 SAXException,
                                 IOException

  Throws:
    `ParserConfigurationException`
    `SAXException`
    `IOException`

### parse

    public static Document parse(byte[] in)
                          throws ParserConfigurationException,
                                 SAXException,
                                 IOException

  Throws:
    `ParserConfigurationException`
    `SAXException`
    `IOException`

### newDocument

    public static Document newDocument()
                                throws ParserConfigurationException

  Throws:
    `ParserConfigurationException`

### writeTo

    public static void writeTo(Node node,
                               OutputStream os)

### writeTo

    public static void writeTo(Node node,
                               OutputStream os,
                               int indent)

### writeTo

    public static void writeTo(Source src,
                               OutputStream os)

### writeTo

    public static void writeTo(Node node,
                               Writer os)

### writeTo

    public static void writeTo(Node node,
                               Writer os,
                               int indent)

### writeTo

    public static void writeTo(Source src,
                               Writer os)

### writeTo

    public static void writeTo(Source src,
                               OutputStream os,
                               int indent)

### writeTo

    public static void writeTo(Source src,
                               Writer os,
                               int indent)

### writeTo

    public static void writeTo(Source src,
                               OutputStream os,
                               int indent,
                               String charset,
                               String omitXmlDecl)

### writeTo

    public static void writeTo(Source src,
                               Writer os,
                               int indent,
                               String charset,
                               String omitXmlDecl)

### toString

    public static String toString(Source source)
                           throws TransformerException,
                                  IOException

  Throws:
    `TransformerException`
    `IOException`

### toString

    public static String toString(Source source,
                                  Properties props)
                           throws TransformerException,
                                  IOException

  Throws:
    `TransformerException`
    `IOException`

### toString

    public static String toString(Node node,
                                  int indent)

### toString

    public static String toString(Node node)

### printDOM

    public static void printDOM(Node node)

### printDOM

    public static void printDOM(String words,
                                Node node)

### getAttribute

    public static Attr getAttribute(Element el,
                                    String attrName)

### replaceAttribute

    public static void replaceAttribute(Element element,
                                        String attr,
                                        String value)

### hasAttribute

    public static boolean hasAttribute(Element element,
                                       String value)

### printAttributes

    public static void printAttributes(Element element)

### getNamespace

    public static QName getNamespace(Map<String,String> namespaces,
                                     String str,
                                     String defaultNamespace)

### generateXMLFile

    public static void generateXMLFile(Element element,
                                       Writer writer)

### createElementNS

    public static Element createElementNS(Node node,
                                          QName name)

### createElementNS

    public static Element createElementNS(Document root,
                                          QName name)

### createElementNS

    public static Element createElementNS(Document root,
                                          String namespaceURI,
                                          String qualifiedName)

### createTextNode

    public static Text createTextNode(Document root,
                                      String data)

### createTextNode

    public static Text createTextNode(Node node,
                                      String data)

### removeContents

    public static void removeContents(Node parent)

### getInputStream

    public static InputStream getInputStream(Document doc)
                                      throws Exception

  Throws:
    `Exception`

### fetchElementByNameAttribute

    public static Element fetchElementByNameAttribute(Element parent,
                                                      String targetName,
                                                      String nameValue)

### getQName

    public static QName getQName(String value,
                                 Node node)

### fromSource

    public static Node fromSource(Source src)
                           throws Exception

  Throws:
    `Exception`

### convertStringToQName

    public static QName convertStringToQName(String expandedQName)

### convertStringToQName

    public static QName convertStringToQName(String expandedQName,
                                             String prefix)

### convertStringsToQNames

    public static Set<QName> convertStringsToQNames(List<String> expandedQNames)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Apache CXF