I don;t think that the url I included is the same product. I got it
Gordon ALLAN wrote:
>This doesn't really work unfortiunately.
>I am just using the following code to create the variant
> Document := CoDOMDocument.Create;
> Document.load('c:\info.xml');
>I then can reference to each individual element and then text item as
>follows/
>document.elementname.subelement.text:='mouse';
>I need to be able to manually create this subelement to be created
>from 2 variables.
>if I simply enter the command as document.elementname.var1+var2.text:=
>mouse;
>I end up with a subelement called var1+var2
>Any oothe thoughts? The components I am using come from
>http://www.cogisoft.fr/downloads
>Thanks for now
>Gordon ALLAN
>gor...@allanhome.net
>Maarten Wiltink wrote:
>>Gordon ALLAN wrote in message ...
>>>I have command
>>>Document.Information.<element>.text
>>>where <element> is a dynamically created string.
>>>Document is of type Variant but becomes a DOM object for an XML file
>>>How can I cast this string into the command so that, for instance, if
>>><element> was 'mickey' then I could make the command say
>>>document.information.mickey.text:= 'mouse'
>>document.information.getElementsByTagName('mickey'),
>>which would give you a nodelist, from which you could
>>conceivably extract the text by further coding.
>>When you say DOM, people might just expect it to work
>>the way the World Wide Web Consortium says it should.
>>Does this have any bearing on Delphi?
>>Groetjes,
>>Maarten Wiltink