xhtml, remove element
can't figure it out to remove in vbscript an element in xhtml
have this:
xhtmlvalue = "<html><body><SPAN id=""intro"">to remove</SPAN><p>rest</p></body></html>"
Set objXMLDoc = CreateObject("Msxml2.DOMDocument.3.0")
objXMLDoc.loadxml(xhtmlvalue)
Set objRoot = objXMLDoc.documentelement
set objExNode = objRoot.selectsinglenode("//SPAN")
objRoot.removeChild(objExNode)
any help?
thx!
kristof
|