Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: load vs loadxml - one works with attributes the other not load vs loadxml - one works with attributes the other notTo: NULL Date: 12/2/2004 11:50:00 PM I a loading a string using the load method 1) and the same string
using the loadxml method. One loads the string and the other does not.
Without the attribute both load correctly. The string and code snip
are below.
Using VBA - Word - VB 6.3 with the latest msxml.msi 4.0 installed
Thanks for your help.
stub2 = "<project name=""fubar""><step>stuff</step><finding>looks
good</finding></project>"
With Application.FileSearch
.FileName = "BAD RD*.doc"
.LookIn = "D:\Documents and Settings\My Documents\Client
Files\Monthly"
.Execute
For i = 1 To .FoundFiles.Count
'MsgBox .FoundFiles(i)
'xmldoc.Load (.FoundFiles(i))
Documents.Open FileName:=.FoundFiles(i),
ConfirmConversions _
:=False, ReadOnly:=True, AddToRecentFiles:=False,
PasswordDocument:="", _
PasswordTemplate:="", Revert:=False,
WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto
Selection.WholeStory
stub = Selection.Text
MsgBox (stub)
xmldoc.loadXML (stub)
Call PrintDOM(xmldoc)
Call xreportHTML(xmldoc)
Next i
End With
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
