sarissa

Class Sarissa

Object
   |
   +--Sarissa

class Sarissa

Defined in sarissa.js


Field Summary
<static>  Object IS_ENABLED_SELECT_NODES
          
<static>  Object IS_ENABLED_TRANSFORM_NODE
          
<static>  Object PARSED_EMPTY
          
<static>  Object PARSED_OK
          
<static>  Object PARSED_UNKNOWN_ERROR
          
 
Constructor Summary
Sarissa ()
           

Sarissa is a utility class.

 
Method Summary
<static> void clearChildNodes(oNode)
          

Deletes all child nodes of the given node

<static> void copyChildNodes(nodeFrom, nodeTo, bPreserveExisting)
          

Copies the childNodes of nodeFrom to nodeTo

Note: The second object's original content is deleted before the copy operation, unless you supply a true third parameter

<static> Object escape(sXml)
           Escape the given string chacters that correspond to the five predefined XML entities
<static> Object getDomDocument(sUri, sName)
          

Factory method to obtain a new DOM Document object

<static> Object getParseErrorText(oDoc)
          

Returns a human readable description of the parsing error.

<static> Object getText(oNode, deep)
          
<static> void moveChildNodes(nodeFrom, nodeTo, bPreserveExisting)
          

Moves the childNodes of nodeFrom to nodeTo

Note: The second object's original content is deleted before the move operation, unless you supply a true third parameter

<static> void setXpathNamespaces(oDoc, sNsSet)
          

Programmatically control namespace URI/prefix mappings for XPath queries.

This method comes especially handy when used to apply XPath queries on XML documents with a default namespace, as there is no other way of mapping that to a prefix.

Using no namespace prefix in DOM Level 3 XPath queries, implies you are looking for elements in the null namespace.

<static> Object setXslParameter(oXslDoc, sParamQName, sParamValue)
          

Deprecated (use XSLTProcessor instead): Set xslt parameters.

Note that this method can only work for the main stylesheet and not any included/imported files.

<static> Object stripTags(s)
           strips tags from a markup string
<static> Object unescape(sXml)
           Unescape the given string.
<static> void updateContentFromNode(oNode, oTargetElement, xsltproc, callback)
           Update an element's content with the given DOM node.
<static> void updateContentFromURI(sFromUrl, oTargetElement, xsltproc, callback, skipCache)
           Update an element with response of a GET request on the given URL.
<static> Object xmlize(anyObject, objectName, indentSpace)
          

Serialize any object to an XML string.

Field Detail

IS_ENABLED_SELECT_NODES

<static> Object IS_ENABLED_SELECT_NODES

IS_ENABLED_TRANSFORM_NODE

<static> Object IS_ENABLED_TRANSFORM_NODE

PARSED_EMPTY

<static> Object PARSED_EMPTY

PARSED_OK

<static> Object PARSED_OK

PARSED_UNKNOWN_ERROR

<static> Object PARSED_UNKNOWN_ERROR

Constructor Detail

Sarissa

Sarissa()

Method Detail

clearChildNodes

<static> void clearChildNodes(oNode)

copyChildNodes

<static> void copyChildNodes(nodeFrom, nodeTo, bPreserveExisting)

escape

<static> Object escape(sXml)

getDomDocument

<static> Object getDomDocument(sUri, sName)

getParseErrorText

<static> Object getParseErrorText(oDoc)

getText

<static> Object getText(oNode, deep)

moveChildNodes

<static> void moveChildNodes(nodeFrom, nodeTo, bPreserveExisting)

setXpathNamespaces

<static> void setXpathNamespaces(oDoc, sNsSet)

setXslParameter

<static> Object setXslParameter(oXslDoc, sParamQName, sParamValue)

stripTags

<static> Object stripTags(s)

unescape

<static> Object unescape(sXml)

updateContentFromNode

<static> void updateContentFromNode(oNode, oTargetElement, xsltproc, callback)

updateContentFromURI

<static> void updateContentFromURI(sFromUrl, oTargetElement, xsltproc, callback, skipCache)

xmlize

<static> Object xmlize(anyObject, objectName, indentSpace)

sarissa

Documentation generated by JSDoc on Tue May 9 22:30:39 2006