Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 9th, 2003, 01:01 AM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading XML file using VB6

Hello,
 I am facing some problem when I am reading XML file using VB6.

If any one know please reply to [email protected]
File Format:
<?xml version="1.0"?>
<xml>
<TagsConfiguration>
<TagsList FrequencyOfTagsUpdation="10">
<Tag Name="Tag1" DataSource="Database" ScalingFactor="0.89"/>
</TagsList>
</TagsConfiguration>
</xml>

Regards,
Raja.

 
Old December 21st, 2004, 11:09 AM
Registered User
 
Join Date: Aug 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The XML file may be load into a DOM object (provided within msxml4.dll) thus:

    Dim objDOM As MSXML2.DOMDocument40

    Set objDOM = New MSXML2.DOMDocument40

    objDOM.Load App.Path & "\filename.xml"

However, I believe <xml> is an illegal element name. IE can cope with elements of this name, but problems can occur if you attempt to use this file within other clients.

 
Old January 11th, 2005, 07:18 AM
Authorized User
 
Join Date: Jan 2005
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JelfMaria
Default

you remove the <xml></xml> tag and try






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with PHP file reading XML file for output rydog65 Beginning PHP 0 March 26th, 2008 05:13 PM
Reading xml file which is in a JAR file pradheepayyanar J2EE 2 December 26th, 2007 05:52 AM
reading a XML file connect2sandep XML 1 December 14th, 2006 04:50 AM
reading a XML file connect2sandep General .NET 0 December 13th, 2006 02:10 PM
Help with reading huge XML file hitesh_kapadia ASP.NET 1.x and 2.0 Application Design 0 August 6th, 2004 02:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.