BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Better use TXMLDocument *or* IXMLDocument?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML
View previous topic :: View next topic  
Author Message
Andrea Raimondi
Guest





PostPosted: Sat Jan 06, 2007 1:43 pm    Post subject: Better use TXMLDocument *or* IXMLDocument? Reply with quote



Hello.

Anybody can tell me which one is better?
I got to instantiate multiple instances of either, so I was wondering.

What would you be doing?

TIA,

Andrew
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sat Jan 06, 2007 4:12 pm    Post subject: Re: Better use TXMLDocument *or* IXMLDocument? Reply with quote



"Andrea Raimondi" <rainaple (AT) tin (DOT) it> wrote in message
news:459f52d8$1 (AT) newsgroups (DOT) borland.com...

Quote:
Anybody can tell me which one is better?

That depends. How do you want to use them in the first place? Do you
want to place them on the form at design-time? Do you want to create
instances dynamically at runtime? If the former, then use
TXMLDocument. If the latter, then use IXMLDocument.


Gambit
Back to top
Andrea Raimondi
Guest





PostPosted: Mon Jan 08, 2007 6:24 am    Post subject: Re: Better use TXMLDocument *or* IXMLDocument? Reply with quote



Remy Lebeau (TeamB) ha scritto:
Quote:
That depends. How do you want to use them in the first place? Do you
want to place them on the form at design-time? Do you want to create
instances dynamically at runtime? If the former, then use
TXMLDocument. If the latter, then use IXMLDocument.

I know that and that's exactly my doubt. Should I be placing a
component in a frame or should I use the interfaces?

Both ways have advantages/disadvantages and I'm wondering if any of
them is more speedy or has more options.

Another problem is that the frame will likely be created many times,
since it's an XML editor Very Happy so I'm wondering what approach suits best.

Ideas?

Quote:
Gambit

Andrew
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Jan 10, 2007 5:06 am    Post subject: Re: Better use TXMLDocument *or* IXMLDocument? Reply with quote

"Andrea Raimondi" <rainaple (AT) tin (DOT) it> wrote in message
news:45a18eff$1 (AT) newsgroups (DOT) borland.com...

Quote:
I know that and that's exactly my doubt.

What exactly do you doubt?

Quote:
Should I be placing a component in a frame or should I use the
interfaces?


That is up to you to choose based on your own programming style.

Quote:
Both ways have advantages/disadvantages

Such as?

Quote:
I'm wondering if any of them is more speedy or has more options.

Nope. TXMLDocument derives from IXMLDocument, so they both have the
same options available. TXMLDocument is simply avalable as a
design-time component whereas IXMLDocument is not.

Quote:
Another problem is that the frame will likely be created many times,
since it's an XML editor

So? That does not change anything.


Gambit
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.