org.thymeleaf.util
Class DOMUtils

Object
  extended by org.thymeleaf.util.DOMUtils

public final class DOMUtils
extends Object

Since:
1.1.2
Author:
Daniel Fernández

Method Summary
static char[] escapeXml(char[] ch, boolean escapeQuotes)
           
static NestableNode extractFragmentByAttributeValue(Node root, String elementName, String attributeName, String attributeValue)
           
static String getXhtmlHtml5For(Node node)
           
static String getXmlFor(Node node)
           
static String unescapeXml(String str, boolean unescapeQuotes)
           
static void writeXmlEscaped(char[] buffer, java.io.Writer writer, boolean escapeQuotes)
           
static void writeXmlEscaped(String buffer, java.io.Writer writer, boolean escapeQuotes)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

extractFragmentByAttributeValue

public static NestableNode extractFragmentByAttributeValue(Node root,
                                                           String elementName,
                                                           String attributeName,
                                                           String attributeValue)

escapeXml

public static char[] escapeXml(char[] ch,
                               boolean escapeQuotes)
                        throws java.io.IOException
Throws:
java.io.IOException

writeXmlEscaped

public static void writeXmlEscaped(String buffer,
                                   java.io.Writer writer,
                                   boolean escapeQuotes)
                            throws java.io.IOException
Throws:
java.io.IOException

writeXmlEscaped

public static void writeXmlEscaped(char[] buffer,
                                   java.io.Writer writer,
                                   boolean escapeQuotes)
                            throws java.io.IOException
Throws:
java.io.IOException

unescapeXml

public static String unescapeXml(String str,
                                 boolean unescapeQuotes)

getXmlFor

public static String getXmlFor(Node node)

getXhtmlHtml5For

public static String getXhtmlHtml5For(Node node)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.