This is xml content.
<w:tbl xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:tr>
<w:tc>
<w:p>
<w:r><w:t>1</w:t></w:r>
</w:p>
<w:p /> <!-- needs to remove -->
<w:p /> <!-- needs to remove -->
</w:tc>
<w:tc>
<w:p>
<w:r><w:t>2</w:t></w:r>
</w:p>
<w:p /> <!-- needs to remove -->
<w:p /> <!-- needs to remove -->
</w:tc>
</w:tr>
<w:tr>
<w:tc>
<w:p>
<w:r><w:t>3</w:t></w:r>
</w:p>
<w:p /> <!-- needs to remove -->
<w:p /> <!-- needs to remove -->
</w:tc>
<w:tc>
<w:p>
<w:r><w:t>4</w:t></w:r>
</w:p>
<w:p /> <!-- needs to remove -->
<w:p /> <!-- needs to remove -->
</w:tc>
</w:tr>
</w:tbl>
Actually this xml content are generated by html to ooxml converter[HtmlToOpenXml.dll].But it wrongly added the two <w:p> elements at end of the every <w:tc> elements.So, i want to remove those <w:p> elements from the xml content generated by the converter.I have the xml content in string format.
Please guide me to get out of this issue…
Can you just use a string replace?