说我有以下XML文件
<someElements>
<element 1 /> Some content, relevant to this element, etc.
<element 2 /> Some more content, relevant to this element, etc.
<element 3 /> Some other content, relevant to this element, etc.
<element 4 /> Some different content, relevant to this element, etc.
<element 5 /> Some last content, relevant to this element, etc.
</someElements>
我现在想要访问元素号的内容。 3.我怎么能用nodejs / javascript做到这一点?我尝试了不同的解析器/库,这些解析器/库为我提供了包含的东西的内容,例如。
<element> content </element>