How to get the HTML Nodes from the Word Documents using C#?
Hi,
Thanks for your inquiry. Yes, you can achieve this using Aspose.Words e.g. please use the following code to get HTML representation of individual Paragraphs:
Document doc = new Document(MyDir + @"in.docx");
StringBuilder sb = new StringBuilder();
foreach(Paragraph para in doc.GetChildNodes(NodeType.Paragraph, true))
sb.Append(para.ToString(SaveFormat.Html));
I hope, this helps.
Best regards,