DomDocument in MSXML extends W
3C
The DOM standard, which provides a LOAD method that can be loaded from other locations, which can be a URL that supports LOAD from the resource file.
DLL / OCX / EXE compiled by VB6 uses an XML from a file (DLL, EXE, etc.) as an example.
1. Add an XML resource clients.xml in Client.exe:
Create a client named VB Project, add a resource (RES) file to VB6 Project,
2. Open RESource Editor in VB6Add in
Point "Add Custom Resouce" Add a custom resource, double-click the new resource number, modify TYPE into "XML", ID into "clients.xml"
3. Compile Client.exe
4. Modify the original ObjDomClient.Load statement,
Write the ObjDomClient.low statement as
ObjDomclient.async = true 'During the resource, LOAD must be set as an asynchronous
ObjDomClient.validateonParse = false
ObjDomClient.Load "res: //client.exe/xml/client.xml"
or
ObjDomClient.Load "res: //" & app.path & "/client.exe/xml/client.xml"
Note that in the VB debug environment, you must first compile the files that currently contain XML resources.