<html><head><title>LoadXML</title></head><body bgcolor="#FFFFFF" link="#207BC3" vlink="#003B83" alink="#003B83"><font face="Arial" size="2"><p align="center"><b><font size="4">LoadXML()</font></b></p><p><b>Syntax</b></p><blockquote>Result = <font color="#207BC3"><b>LoadXML</b></font>(#XML, Filename$ [, Encoding [, Flags]])</blockquote></blockquote><b>Description</b><br><blockquote>Loads a XML tree from an URL or a local file.</blockquote><p><b>Parameters</b></p><blockquote><style type="text/css">table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }</style><table width="90%" class="parameters"><tr><td width="10%"><i>#XML</i></td><td width="90%">A number to identify the new XML.<a href="../reference/spiderbasic_objects.html">#PB_Any</a> can be used to auto-generate this number.</td></tr><tr><td><i>Filename$</i></td><td>The filename to load the XML from.</td></tr><tr><td><i>Encoding (optional)</i></td><td>Ignored.</td></tr><tr><td><i>Flags (optional)</i></td><td>It can be one of the following value:<pre><font face="Courier New, Courier, mono"size="2"> <font color="#924B72">#PB_LocalFile</font>: the filename is a local file, <a href="../requester/openfilerequester.html">OpenFileRequester()</a>() needs to be called beforeto have access to local files. <a href="../requester/selectedfileid.html">SelectedFileID()</a>() is used to get thelocal file identifier.</font></pre></td></tr></table></blockquote><p><b>Return value</b></p><blockquote>Nonzero if the xml object has been created. The xml data is still not loaded, the callbacks binded to<font color="#924B72">#PB_Event_Loading</font> and <font color="#924B72">#PB_Event_LoadingError</font> will be called once the loading is done.If <font color="#924B72">#PB_Any</font> was used for the #XML parameter then the generated number is returned on success.</blockquote><p><b>See Also</b></p><blockquote><a href="createxml.html">CreateXML()</a>, <a href="freexml.html">FreeXML()</a>, <a href="parsexml.html">ParseXML()</a></Blockquote><center><- <a href=isxml.html>IsXML()</a> - <a href="index.html">XML Index</a> - <a href="mainxmlnode.html">MainXMLNode()</a> -><br><br></body></html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。