rajesh75
asked on
Help HTMLDocument
Hi,,
This is the code I have:
Dim XMLDOM As XmlDocument = New XmlDocument()
Dim i As Integer
Dim elementObj As IHTMLElement
Dim HTMLDoc As HTMLDocument
XMLDOM.LoadXml(s_strXMLDat a)
Dim XMLNode As XmlElement = XMLDOM.DocumentElement()
TemplateURL = s_URLString
HTMLDoc = ParseHTML()
Dim objElements As IHTMLElementCollection = HTMLDoc.all
For i = 0 To XMLNode.ChildNodes(0).Chil dNodes.Cou nt - 1
For Each elementObj In objElements
If elementObj.id = "X_" & XMLNode.ChildNodes(0).Chil dNodes(i). Name Then
elementObj.innerText = XMLNode.ChildNodes(0).Chil dNodes(i). InnerXml
End If
Next
Next
This doesnt work INPUT tag of type radio. That is if elementObj is "Radio" how do I insert a value for the tag????? With INPUT tag of type "radio", it is innertext...Same question for checkboxes and selection lists....Can someone help???Thanks.
This is the code I have:
Dim XMLDOM As XmlDocument = New XmlDocument()
Dim i As Integer
Dim elementObj As IHTMLElement
Dim HTMLDoc As HTMLDocument
XMLDOM.LoadXml(s_strXMLDat
Dim XMLNode As XmlElement = XMLDOM.DocumentElement()
TemplateURL = s_URLString
HTMLDoc = ParseHTML()
Dim objElements As IHTMLElementCollection = HTMLDoc.all
For i = 0 To XMLNode.ChildNodes(0).Chil
For Each elementObj In objElements
If elementObj.id = "X_" & XMLNode.ChildNodes(0).Chil
elementObj.innerText = XMLNode.ChildNodes(0).Chil
End If
Next
Next
This doesnt work INPUT tag of type radio. That is if elementObj is "Radio" how do I insert a value for the tag????? With INPUT tag of type "radio", it is innertext...Same question for checkboxes and selection lists....Can someone help???Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.