I need to convert docx to xml and use the DOM to find the parent node specific.
for example
<chapter>
<title>
<label>Chapter 1
</label>
</title>
<para>This is chapterpara <a id="book"/>
</para>
</chapter>
Here I want to find an anchor node a super parent child (node header).
I knew the link to the node anchor, getting
var itemanchor=ItemElement.getElementsByTagName('a');
How to cross a specific parent node from the above help?
Thanks in advance.
source
share