Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - MSXML: problem with specifying of URL address in DOCTYPE declarati >Thread Next - Re: MSXML: problem with specifying of URL address in DOCTYPE decla Re: MSXML: problem with specifying of URL address in DOCTYPE declaratiTo: NULL Date: 2/6/2009 12:38:00 PM Alexander Sviridov wrote:
> I tried to load this file using MSXML (I tried with all versions of the
> parser from 2.6 to 6.0) as shown below:
>
> //XmlDoc: IXMLDOMDocument2;
> XmlDoc.validateOnParse := True;
> XmlDoc.resolveExternals := True;
> XmlDoc.setProperty('ProhibitDTD', False);
> XmlDoc.async := True;
> XmlDoc.load(FileName);
> while True do
> if XmlDoc.readyState = 4 then
> begin
> if XmlDoc.parseError.errorCode <> 0 then
> raise Exception.Create('Error.')
> else
> Break;
> end;
I don't know which language you use but I would expect that while loop
to block execution. So either use synchronous loading (with async set to
false) where you can then put code after the blocking load() call) or,
if you want to use asynchronous loading, use an onreadystatechange event
handler to check the readyState.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
