Advertisement

05.07.2008 at 06:08AM PDT, ID: 23382581 | Points: 500
[x]
Attachment Details

XML Validation in Delphi 2006

Tags: Delphi 2006
Hello,
the attached Code Snippet doesn't validate the XML file, which references a Schema. the Document is loaded and can be accessed. How can I validate ist?

This is running on a local WinXP Pro machine.


1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure Validieren2;
var
    Dokument: TXMLDocument;
begin
    Dokument := TXMLDocument.Create(Self);
    try
        with Dokument do begin
             ParseOptions := [poValidateOnParse];
             LoadFromFile(FileName);
        end;
    finally
        FreeAndNil(Dokument);
    end;
end;
Start your free trial to view this solution
Question Stats
Zone: Web Development
Question Asked By: Moebius97
Question Asked On: 05.07.2008
Participating Experts: 1
Points: 500
Views: 0
Translate:
Loading Advertisement...
05.07.2008 at 06:42AM PDT, ID: 21516266

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 05:18AM PDT, ID: 21572633

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 06:41AM PDT, ID: 21573498

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628