📄 sarissa.html
字号:
</FONT> </TD> <TD> <CODE> <B> <A HREF="#!s!stripTags">stripTags</A></B>(s) </CODE> <BR> strips tags from a markup string </TD> </TR> <TR BGCOLOR="#eeeeee" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE><static> Object</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#!s!unescape">unescape</A></B>(sXml) </CODE> <BR> Unescape the given string. </TD> </TR> <TR BGCOLOR="#eeeeee" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE><static> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#!s!updateContentFromNode">updateContentFromNode</A></B>(oNode, oTargetElement, xsltproc, callback) </CODE> <BR> Update an element's content with the given DOM node. </TD> </TR> <TR BGCOLOR="#eeeeee" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE><static> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#!s!updateContentFromURI">updateContentFromURI</A></B>(sFromUrl, oTargetElement, xsltproc, callback, skipCache) </CODE> <BR> Update an element with response of a GET request on the given URL. </TD> </TR> <TR BGCOLOR="#eeeeee" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE><static> Object</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#!s!xmlize">xmlize</A></B>(anyObject, objectName, indentSpace) </CODE> <BR> <p>Serialize any object to an XML string. </TD> </TR></TABLE><P><!-- ========== END METHOD SUMMARY =========== --><!-- ============ FIELD DETAIL START =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD> </TR> </TABLE> <A NAME="!s!IS_ENABLED_SELECT_NODES"><!-- --></A> <H3>IS_ENABLED_SELECT_NODES</H3> <PRE><static> Object <B>IS_ENABLED_SELECT_NODES</B></PRE> <UL> </UL> <HR> <A NAME="!s!IS_ENABLED_TRANSFORM_NODE"><!-- --></A> <H3>IS_ENABLED_TRANSFORM_NODE</H3> <PRE><static> Object <B>IS_ENABLED_TRANSFORM_NODE</B></PRE> <UL> </UL> <HR> <A NAME="!s!PARSED_EMPTY"><!-- --></A> <H3>PARSED_EMPTY</H3> <PRE><static> Object <B>PARSED_EMPTY</B></PRE> <UL> </UL> <HR> <A NAME="!s!PARSED_OK"><!-- --></A> <H3>PARSED_OK</H3> <PRE><static> Object <B>PARSED_OK</B></PRE> <UL> </UL> <HR> <A NAME="!s!PARSED_UNKNOWN_ERROR"><!-- --></A> <H3>PARSED_UNKNOWN_ERROR</H3> <PRE><static> Object <B>PARSED_UNKNOWN_ERROR</B></PRE> <UL> </UL> <HR> <!-- ============ FIELD DETAIL END =========== --> <!-- ========= CONSTRUCTOR DETAIL START ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1> <FONT SIZE="+2"><B>Constructor Detail</B></FONT> </TD> </TR></TABLE><A NAME="Sarissa()"><!-- --></A><H3>Sarissa</H3><PRE><B>Sarissa</B>()</PRE><UL> <p>Sarissa is a utility class. Provides "static" methods for DOMDocument, DOM Node serialization to XML strings and other utility goodies.</p></UL> </UL><!-- Constructor return value(s) --><!-- End constructor return value(s) --><!-- ADDITIONAL ATTRIBUTES --><HR/><!-- END ADDITIONAL ATTRIBUTES --><!-- ========= CONSTRUCTOR DETAIL END ======== --><!-- ============ METHOD DETAIL START ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT> </TD> </TR></TABLE><!-- One single method detail entry --> <A NAME="!s!clearChildNodes"><!-- --></A> <H3>clearChildNodes</H3> <PRE><static> void <B>clearChildNodes</B>(oNode)</PRE> <UL><p>Deletes all child nodes of the given node</p></UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>oNode</CODE> - the Node to empty </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --><HR> <A NAME="!s!copyChildNodes"><!-- --></A> <H3>copyChildNodes</H3> <PRE><static> void <B>copyChildNodes</B>(nodeFrom, nodeTo, bPreserveExisting)</PRE> <UL><p> Copies the childNodes of nodeFrom to nodeTo</p> <p> <b>Note:</b> The second object's original content is deleted before the copy operation, unless you supply a true third parameter</p></UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>nodeFrom</CODE> - the Node to copy the childNodes from </UL> <UL><CODE>nodeTo</CODE> - the Node to copy the childNodes to </UL> <UL><CODE>bPreserveExisting</CODE> - whether to preserve the original content of nodeTo, default is false </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --><HR> <A NAME="!s!escape"><!-- --></A> <H3>escape</H3> <PRE><static> Object <B>escape</B>(sXml)</PRE> <UL>Escape the given string chacters that correspond to the five predefined XML entities</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>sXml</CODE> - the string to escape </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --><HR> <A NAME="!s!getDomDocument"><!-- --></A> <H3>getDomDocument</H3> <PRE><static> Object <B>getDomDocument</B>(sUri, sName)</PRE> <UL><p>Factory method to obtain a new DOM Document object</p></UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>sUri</CODE> - the namespace of the root node (if any) </UL> <UL><CODE>sUri</CODE> - the local name of the root node (if any) </UL> </UL> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> a new DOM Document </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --><HR> <A NAME="!s!getParseErrorText"><!-- --></A> <H3>getParseErrorText</H3> <PRE><static> Object <B>getParseErrorText</B>(oDoc)</PRE> <UL><p>Returns a human readable description of the parsing error. Usefull for debugging. Tip: append the returned error string in a <pre> element if you want to render it.</p> <p>Many thanks to Christian Stocker for the initial patch.</p></UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>oDoc</CODE> - The target DOM document </UL> </UL> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> The parsing error description of the target Document in human readable form (preformated text) </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --><HR> <A NAME="!s!getText"><!-- --></A> <H3>getText</H3> <PRE><static> Object <B>getText</B>(oNode, deep)</PRE> <!-- METHOD PARAMETERS START --> <!-- METHOD PARAMETERS END -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -