public class Utl
extends java.lang.Object
Refer to zUtl for basic utilities.
| Modifier and Type | Method and Description |
|---|---|
static String |
getElementValue(DOMElement el)
Returns the concatenation of the text nodes under the specified
DOM element.
|
static DOMElement |
loadXML(String url,
Function callback)
Loads XML from the resource at the specified URL.
|
static DOMElement |
parseXML(String text)
Parses and returns the XML document from the specified text.
|
static String |
renType(String url,
String type)
Renames the type embedded in an URL
For example,
zk.xml.Utl.renType("/zkdemo/img/whatever-off.gif", "on");
//return "/zkdemo/img/whatever-on.gif"
as shown above, it assumes the type is embedded after dash (-). |
public static DOMElement loadXML(String url, Function callback)
url - callback - public static DOMElement parseXML(String text)
text - public static String renType(String url, String type)
zk.xml.Utl.renType("/zkdemo/img/whatever-off.gif", "on");
//return "/zkdemo/img/whatever-on.gif"
as shown above, it assumes the type is embedded after dash (-).url - the URL to modifytype - the type to replace withpublic static String getElementValue(DOMElement el)
el - the DOM element.Copyright © 2005-2023 Potix Corporation. All Rights Reserved.