How do you pass IXMLDOMElement to a function or subroutine?RSS

1 reply

Last post Nov 12, 2019 07:50 AM by Yuk Ding

  • How do you pass IXMLDOMElement to a function or subroutine?

    Nov 11, 2019 10:32 PM|Dr. GUI MSDN Emeritus|LINK

    Code sample below

    Dim objxml

    Set objxml = Server.CreateObject("Microsoft.XMLDOM")

    objxml.LoadXml(rsDef("ImportXml")&"")

    Set BucketTypeNode=objxml.SelectSingleNode("//tblBucketType")

    response.Write typeName(BucketTypeNode) ' Writes IXMLDOMElement

    response.Write ConvertNodeToInsert(BucketTypeNode) '<--Errors Here Type mismatch: 'ConvertNodeToInsert'

    Thanks!

  • Re: How do you pass IXMLDOMElement to a function or subroutine?

    Nov 12, 2019 07:50 AM|Yuk Ding|LINK

    Hi Dr.GUI,

    I can't find the document about ConvertNodeToInsert anywhere? Could you provide a document or code for this method? Most of time I just see that being used like IXMLDOMElement.appenchild.

    Best Regards,

    Jokies Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.