dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: work with xml in vb6

  1. #1
    Join Date
    Mar 2008
    Posts
    164

    work with xml in vb6

    hi,
    i have this xml:
    Code:
    <?xml version="1.0" standalone="yes"?>
    <DocumentElement>
      <export>
        <operador>administrador</operador>
        <data>4/3/2010</data>
        <hora>16:45:59</hora>
        <codigo>mosca</codigo>
        <ean>DDKD</ean>
        <descricao>0.70X1250X2500E</descricao>
        <movimento>+</movimento>
        <adjudicante />
        <fornecedor_id />
        <cliente_id />
        <id>51</id>
        <id_at>56</id_at>
        <n_serie />
      </export>
      <export>
        <operador>administrador</operador>
        <data>4/3/2010</data>
        <hora>16:46:18</hora>
        <codigo>sapo</codigo>
        <ean>SDFSDFSDFSDF</ean>
        <descricao>0.70X1500X3000NI</descricao>
        <movimento>+</movimento>
        <adjudicante />
        <fornecedor_id />
        <cliente_id />
        <id>52</id>
        <id_at>56</id_at>
        <n_serie />
      </export>
    </DocumentElement>
    
    i can import the values from the xml using this function:
    
    if objXML.Load(file.xml) Then
    
    msgbox = objXML.selectSingleNode("//" & valor & "/descricao").Text
    
    but i only can see the first data, how can i pass to next record?
    i have tryed this: 
    
    objXML.selectSingleNode("//" & valor & "/hora").childNodes.nextNode
    
    but this return in same data
    
    thanks a lot for your help
    :)
    
    end if
    Last edited by Hack; 04-04-2010 at 07:53 AM. Reason: Added Code Tags

Similar Threads

  1. VB6 and xml
    By amersohail794 in forum VB Classic
    Replies: 1
    Last Post: 11-27-2007, 09:03 AM
  2. Reading XML in VB6
    By sowjon in forum XML
    Replies: 0
    Last Post: 12-21-2005, 09:53 PM
  3. Why use XML?
    By Brian in forum XML
    Replies: 5
    Last Post: 01-10-2003, 09:39 PM
  4. XML and relational databases
    By Colin Webster in forum XML
    Replies: 8
    Last Post: 09-09-2001, 03:40 PM
  5. Replies: 3
    Last Post: 06-19-2000, 09:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center