Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LoadXMLDocument

43 views
Skip to first unread message

Jon Jacobs

unread,
May 29, 2002, 2:10:47 PM5/29/02
to
If I call LoadXMLDocument or LoadXMLData, I get an IXMLDocument, behind
which is a TXMLDocument. I presume and XMLDOMVendor is necessary in order to
parse the document. Does it default to MSXML (I couldn't see that happening
in the source code)? Or Do I call GetDomVendor('MSXML'); after I load the
file or xml string?

Thanks,
Jon Jacobs
This posting was made from recycled electrons. No innocent atoms were
harmed.


Mark Edington (Borland)

unread,
May 29, 2002, 5:39:12 PM5/29/02
to
> If I call LoadXMLDocument or LoadXMLData, I get an IXMLDocument, behind
> which is a TXMLDocument. I presume and XMLDOMVendor is necessary in order to
> parse the document. Does it default to MSXML (I couldn't see that happening
> in the source code)? Or Do I call GetDomVendor('MSXML'); after I load the
> file or xml string?

There is a global defined in xmldom.pas called DefaultDOMVendor which you can
set that will control the default vendor. For Delphi 6.02, this would be
'MSXML' (the default) or 'Open XML'. This value will then be used for calls to
LoadXMLDocument, etc.

Mark


Jon Q. Jacobs

unread,
May 29, 2002, 7:16:42 PM5/29/02
to
Thank you. That is what I hoped. I was aware of DefaultDOMVendor, but did
not see it used when I examined the source code for LoadXMLDocument.
--
Jon
http://home1.gte.net/jqjacobs/index.htm
This posting was made entirely from recycled electrons. No innocent atoms
were harmed.
"Mark Edington (Borland)" <medi...@nolunchmeat.com> wrote in message
news:3cf54ace$1_1@dnews...

Mark Edington (Borland)

unread,
May 29, 2002, 9:40:51 PM5/29/02
to
> Thank you. That is what I hoped. I was aware of DefaultDOMVendor, but did
> not see it used when I examined the source code for LoadXMLDocument.

It's used in TXMLDocument.AfterConstruction.

Mark


Jon Q. Jacobs

unread,
May 30, 2002, 7:15:51 PM5/30/02
to
Yes, I saw it there, and for some reason I can not recall, thought that
would only be called if the IXMLDocument component were dropped on a form.
The Load functions cause the component to be created dynamically, so I
assumed AfterConstruction would not be called in that circumstance. I'm glad
to know I was wrong about that.

--
Jon
http://home1.gte.net/jqjacobs/index.htm
This posting was made entirely from recycled electrons. No innocent atoms
were harmed.
"Mark Edington (Borland)" <medi...@nolunchmeat.com> wrote in message
news:3cf58371$1_1@dnews...
0 new messages