Hi, I’m new here. I’m having trouble parsing an XML file, like the one shown in the example. I’ve already looked at the documentation, but I think I don’t really understand how it works.
<result id="some-id">
<name>some name</name>
<owner>
<name>some admin</name>
</owner>
<modification_time>2000-06-12T13:27:15Z</modification_time>
<comment/>
<creation_time>2000-06-12T13:27:15Z</creation_time>
<detection>
<result id="another-id">
<details>
<detail>
<name>product</name>
<value>some value</value>
</detail>
<detail>
<name>location</name>
<value>80/tcp</value>
</detail>
<detail>
<name>source_oid</name>
<value>null</value>
</detail>
<detail>
<name>source_name</name>
<value>another value</value>
</detail>
</details>
</result>
</detection>
</result>
Is it a problem if there are tags with the same name nested (not directly, but as children of children)?
Many thanks