Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Error with selectSingleNode in VBScript to VB6 convert

From: ASPDeveloper <sarel@------------.--.-->
To: NULL
Date: 4/2/2008 1:11:00 PM
Hi everybody,

I need some assistance with the following VBScript. I need to convert
this into running under VB6 and has no idea as to why it keeps falling
oover on line no 5.

Would appreciate it if help could be given in this respect.

Thanks

----------------------------------------------------
1 Dim oDOM As New DOMDocument
2 Dim oDOMOut As New DOMDocument

3 Dim sXML

4      Call oDOM.Load("Vehicle.xml")

5          oDOM.selectSingleNode("//schemeid").Text = "1"
6          oDOM.selectSingleNode("//dateofbirth").Text = "21 jun 1970"
7          oDOM.selectSingleNode("//genderid").Text = "1"

8          sXML = x.QuoteWithPath(oDOM.XML, "")

9  oDOMOut.loadXML sXML
10 Debug.Print sXML

11 nNewPremium = oDOMOut.selectSingleNode("//grosspremium").Text

12 Set x = Nothing
13 Set oDOM = Nothing
14 Set oDOMOut = Nothing
-------------------------------------------------------------


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent