SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Extracting XML data

    Hello everyone -

    I need some help with this one. From a driver script, I need to open a file containing XML data, verify whether a particular tag is set to true/false and then run a child script accordingly. The file is not, .xml, it's a proprietary file, so I'm wondering if that will be an issue too.

    thanks in advance for any help,
    anne

  2. #2
    Member
    Join Date
    May 2004
    Location
    Chicago
    Posts
    379
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Extracting XML data

    You could load the file and then cycle through the file looking for you key.

    Dim intfileNumber As Long
    intfileNumber = FreeFile ' Get file handle
    Open FileName For Input As intfileNumber ' open the file
    Do While Not EOF(intfileNumber) ' Loop until end of file.
    Line Input #intfileNumber, stTemp ' Read line into variable.
    If InStr(1, stTemp, "Value") > 0 Then
    blah=blah
    end if
    loop
    Richard DeMers
    QA Software Tester
    http://www.marchforbabies.org/rdemers25

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.11%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:20 AM.

Copyright BetaSoft Inc.