org.eclipse.higgins.util.jscript
Class JScriptHelper
java.lang.Object
org.eclipse.higgins.util.jscript.JScriptHelper
- public class JScriptHelper
- extends Object
Random helper functions for dealing with Java - JavaScript
conversion and storage.
- Author:
- dbuss@novell.com
|
Method Summary |
static String |
convertNodeToScriptString(Node root)
Convert a dom element to a string value, this routine
knows about and handles when the root node a <SCRIPT>
or the single child node is a <SCRIPT> element. |
JScriptHelper
public JScriptHelper()
convertNodeToScriptString
public static String convertNodeToScriptString(Node root)
- Convert a dom element to a string value, this routine
knows about and handles when the root node a <SCRIPT>
or the single child node is a <SCRIPT> element.
Note that when JavaScript is stored in XML then the proper
formating rules must be followed for example, " instead
of a quote charachter. An alternative to mucking with indidual
chars throughout the script is to enclose the entire script
in <![CDATA[ ...script... ]]>
- Parameters:
root - node containing javascript
- Returns:
- String or null if no valid data found