Article View: borland.public.delphi.xml
Article #69Validating XML document against a schema (XSD)
From: Susan Harris
Date: Sat, 28 Jun 2008 19:48
Date: Sat, 28 Jun 2008 19:48
14 lines
2099 bytes
2099 bytes
I'm having a tough time validating an XML document against a schema using Delphi 2007 Win32 (under fully patched XP). MSXML will not throw an error on an invalid document. I'm setting the poResolveExternals and poValidateOnParse options. The schema is referenced in the schemaLocation tag. XMLSpy validates it. And the Xerces DOM Parser validates it too. I'm assuming that none of the DOM Parsers are embedded in the exe, so it's best to use MSXML. Is that correct? I have MSXML 6 installed on the machine (looking at System32) - along with others. Not sure which one Delphi is finding. How can I check? Anyone managed to get MSXML validating against XSDs in D2007?
Technical Details
Message-ID:
<_66dnTuUdsgBCPvVnZ2dnUVZ_jidnZ2d@earthlink.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f5d9b,8f61ad3132a49722,start X-Google-Attributes: gidf5d9b,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 28 Jun 2008 14:48:43 -0500 From: "Susan Harris" <susanbharris1972@yahoo.com> Newsgroups: borland.public.delphi.xml Subject: Validating XML document against a schema (XSD) Date: Sat, 28 Jun 2008 20:48:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000 Message-ID: <_66dnTuUdsgBCPvVnZ2dnUVZ_jidnZ2d@earthlink.com> Lines: 15 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 84.51.156.37 X-Trace: sv3-6BfKfosVhOByQJc/MEPpk+zJ8vQp2dCeErnuOiezgaWcI2ikeu160WFvURmqZYRcioDPrLNpCyXYRtg!zdLFEUMzMyCUmOCihoqJgp2wqAaB/xfH9wodoHDlkDGzQVy5sxucBRQ+lavjsbeJ3qPh52TRHMOA!n7Qyiho3oyTDEYqCfmI3x83kgrDNAQc= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39