DEE

数据交换


[获取document根节点]

<p><strong>方法签名:</strong> </p> <p><code>getRootElement(document)</code></p> <p><strong>简要描述:</strong> </p> <ul> <li>获取document根节点</li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">document</td> <td style="text-align: left;">是</td> <td style="text-align: left;">object</td> <td>document对象</td> </tr> </tbody> </table> <p><strong>参数传入示例</strong></p> <pre><code>###### document: &amp;lt;root&amp;gt; &amp;lt;b count=2 totalCount=2&amp;gt; &amp;lt;row&amp;gt; &amp;lt;b2&amp;gt;a&amp;lt;/b2&amp;gt; &amp;lt;b1&amp;gt;1&amp;lt;/b1&amp;gt; &amp;lt;/row&amp;gt; &amp;lt;row&amp;gt; &amp;lt;b2&amp;gt;b&amp;lt;/b2&amp;gt; &amp;lt;b1&amp;gt;1&amp;lt;/b1&amp;gt; &amp;lt;/row&amp;gt; &amp;lt;/b&amp;gt; &amp;lt;/root&amp;gt;</code></pre> <p><strong>函数调用示例</strong></p> <pre><code>Element root = getRootElement(document); if(root != null){ for(Element e:root.getChildren()){ if(e == null) continue; println &amp;quot;表名:&amp;quot;+e.getName(); //循环打印根节点下的所有表名 } }</code></pre> <p><strong>函数返回说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">Element</td> <td>根节点对象</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code></code></pre> <p><strong>备注</strong> </p> <ul> <li> </li> </ul>

页面列表

ITEM_HTML