Hi all,

Background...
 In one of our applications I have written a graphics class 
(TWinGraphic) which takes as one of its parameters a CSV String that 
describes what is to be drawn. The String is parsed and the 
graphical 'Components' are extracted from the description and passed 
on to the various 'worker' classes to be drawn.  This works 
reasonably well as is.

Due to 'feature creep' the string description is becoming more and 
more complex. I have therefore decided to change the description 
string from CSV to an XML format.

The Problem...

I have now started work on a PoC prototype and have fallen at the 
first hurdle! The following code Fails at the Line marked >

 constructor TWinGraphics.CreateImage(CanvasSize: TPoint;
   Descriptor: string);
 var
   sStyle: string;
   Root: IXMLNode;
 begin
   fFrame := TObjectList.Create(True);
   fGraphicObjects := TObjectList.Create(True);
   fCanvasSize := CanvasSize;
   fXML := TXMLDocument.Create(nil);
   fXML.LoadFromXML(Descriptor);
   fXML.Active := True;
 > sStyle := fXML.DocumentElement.Attributes['Number'];
 end;

I suspect its the DOMVendor setting, but cant see how to set it 
correctly.

Any ideas please.

TIA

Paul Bennett






-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to