Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


load vs loadxml - one works with attributes the other not

From: redryderridesagain@-------.--- (--- -----)
To: 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent