excel - Convert XML file to String variable in VBA -


i'm looking convert contents of xml file string variable in excel vba can search file specific string.

however don't know how initial conversion xml file string variable. i've been able far load xml document, , there i'm stuck.

public function determinespecifiedchange(byval vstrinputgbompath string, byval vstrinputpdppath string)   dim strpdpstring string dim strgbomstring string  dim xmlgbom new domdocument60  dim xmlpdp new domdocument60  strpdpstring = xmlpdp.load(vstrinputpdppath)  end function 

so far returns "true", signifying file being loaded.

how go converting xml file string?

here's way ask:

dim fso object : set fso = createobject("scripting.filesystemobject")     dim strxml string strxml = fso.opentextfile("c:\myfile.xml").readall  

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -