小编tor*_*ete的帖子

我怎样才能获得第一级的物品?

所以,我有这个xml

<conversation>
    <question>
        <title>I want to get this parent</title>
        <question>
            <title>I don´t want to get this one</title>
        </question>
        <question>
            <title>I don´t want to get this one</title>
        </question>
    </question>

    <question>and get this one</question>
    <question>and also this one too</question>
</conversation>
Run Code Online (Sandbox Code Playgroud)

而且我想获得最高级别,直接从而<conversation>不是从任何其他标签下降......我怎么才能得到那3个<question>节点?

javascript xml

3
推荐指数
1
解决办法
996
查看次数

标签 统计

javascript ×1

xml ×1