[获取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:
&lt;root&gt;
&lt;b count=2 totalCount=2&gt;
&lt;row&gt;
&lt;b2&gt;a&lt;/b2&gt;
&lt;b1&gt;1&lt;/b1&gt;
&lt;/row&gt;
&lt;row&gt;
&lt;b2&gt;b&lt;/b2&gt;
&lt;b1&gt;1&lt;/b1&gt;
&lt;/row&gt;
&lt;/b&gt;
&lt;/root&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 &quot;表名:&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>