Extracting HR tags inside TABLE tags of an Aspose Words document

We need to extract HR tags inside TABLE tags of an Aspose Words document constructed from HTML.

e.g.

Document document =  new Document(inputStream, LOAD_OPTIONS));

I know we can access tables as follows -

NodeCollection nodeCollection = document.getChildNodes(NodeType.TABLE, true);

Is it possible to do something similar to extract and modify / delete HR tags within TABLE tags?

@gs01 In MS Word document horizontal rules are represented as shapes. You can identify such shapes using Shape.isHorizontalRule property. So you can use code like the following to get horizontal rules from the document:

Document doc = new Document("C:\\Temp\\in.html");

for (Shape s : (Iterable<Shape>)doc.getChildNodes(NodeType.SHAPE, true))
{
    if (s.isHorizontalRule())
    {
        // Do something with horizontal rule.
        // ....
    }
}