| View previous topic :: View next topic |
| Author |
Message |
Andrea Raimondi Guest
|
Posted: Sat Jan 06, 2007 1:43 pm Post subject: Better use TXMLDocument *or* IXMLDocument? |
|
|
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
|
Posted: Sat Jan 06, 2007 4:12 pm Post subject: Re: Better use TXMLDocument *or* IXMLDocument? |
|
|
"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
|
Posted: Mon Jan 08, 2007 6:24 am Post subject: Re: Better use TXMLDocument *or* IXMLDocument? |
|
|
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 so I'm wondering what approach suits best.
Ideas?
Andrew |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Jan 10, 2007 5:06 am Post subject: Re: Better use TXMLDocument *or* IXMLDocument? |
|
|
"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 |
|
 |
|