Utils
Purpose¶
Provides utility methods.
Methods¶
Binding name: p6.utils
Method: String p6.utils.escapeXml(String xmlStr)
Escape the given XML string.
Method: XPath p6.utils.getXPath()
Provide a javax.xml.xpath.XPath
using the Saxon factory.
Method: String p6.utils.unescapeXml(String escStr)
Unescape the given escaped XML string.
Method: String p6.utils.pause()
Pauses the execution until Platform 6 is stopped or the user manually stops the script via the UI.
Examples¶
println p6.utils.espaceXml("<root><node>value</node></root>")
println p6.utils.unescapeXml("<root><node>value</node></root>")
println p6.utils.pause()