Results 1 to 18 of 18

Thread: get XML from php into vb6, possible?

Hybrid View

  1. #1
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: get XML from php into vb6, possible?

    Can you try this for me and tell me what happens?

    Code:
    Private Sub Command46_Click()
        Dim objXML As MSXML2.DOMDocument
        Dim objElem As MSXML2.IXMLDOMElement
        Dim strXML As String
        
        Set objXML = New MSXML2.DOMDocument
    
        strXML = "<Laboratory><LaboratoryAeroInv>0</LaboratoryAeroInv><LaboratoryAeroPrice>2525</LaboratoryAeroPrice></Laboratory>"
    
        If objXML.LoadXML(strXML) = False Then
            MsgBox ("XML LOAD ERROR")
        Else
            Set objElem = objXML.selectSingleNode("//LaboratoryAeroPrice")
            Text4.Text = objElem.getAttribute("value")
        End If
    End Sub
    Last edited by Siddharth Rout; Jun 17th, 2010 at 09:57 AM. Reason: Typo
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width