To check there is paragraph or table in between 2 rich contentControls

Hi Team,
I want to check if there is paragraph or table node are present in between 2 contentControls.

Accoding to the attachment below.
There are 2 StructuredDocumentTag present in the document and 1 paragraph node. Can you please suggest if there any method present to check the if there is any paragraph present in between 2 StructuredDocumentTag.
001 CAG-8834 Template_31st May Test Supplier_CDR37646.docx (20.5 KB)

@hariomgupta73 Structure of your document looks like the following:

You can use Node.NextSibling and Node.PreviousSibling properties to get the next and previous sibling nodes.

For example you can use the following code to get the next node after the first SDT:

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

// Get the first SDT
StructuredDocumentTag tag = (StructuredDocumentTag)doc.GetChild(NodeType.StructuredDocumentTag, 0, true);

// Get next sibling node type
Console.WriteLine(tag.NextSibling.NodeType);