HTML-to-XML Conversion: DropTagType clarification.
Question:
I instantiated the HtmlToXml component correctly but the DropTagType method did not drop the HTML tags as I expected:
Htmltoxml.DropTagType(“span font p I”) Htmltoxml.DropTagType(“<span> <font> <p> <I>”)
Answer:
Call DropTagType once for each type of tag to be dropped (i.e. discarded) from the output. The tag string is case-insensitive:
Htmltoxml.DropTagType("span") Htmltoxml.DropTagType("i") Htmltoxml.DropTagType("p") Htmltoxml.DropTagType("font")
admin
0
Tags :