 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Arthur Hoornweg Guest
|
Posted: Wed May 09, 2007 2:00 pm Post subject: txmltransform Transformations without resorting to files? |
|
|
Hello all,
I'm converting an application that directly used Microsoft's xmldom
(MSXML2_TLB.PAS) interfaces so that it now uses Borland's
XMLDOC, XMLINTF and XMLXFORM units.
The reason for this is that I don't want to rely on the presence of a
certain DOM implementation on a computer, I'd rather use whatever
is available.
I create iXmldocuments manually at runtime like
"iMyXml=txmldocument.create(NIL);"
My problem is applying transformations. I have two iXmlDocuments,
one of which contains my data, the other contains an XML
transform that "beautifies" the text by inserting linefeeds
and indentation.
How do I apply the transformation without resorting to temporary
files? txmltransform.transformxml doesn't work.
This used to be dead simple if I directly use iXmlDomDocument from
Microsoft.
--
Arthur Hoornweg
(In order to reply per e-mail, please just remove the ".net"
from my e-mail address. Leave the rest of the address intact
including the "antispam" part. I had to take this measure to
counteract unsollicited mail.) |
|
| Back to top |
|
 |
Don Siders Guest
|
Posted: Wed May 09, 2007 6:00 pm Post subject: Re: txmltransform Transformations without resorting to files |
|
|
| Quote: | I'm converting an application that directly used Microsoft's xmldom
(MSXML2_TLB.PAS) interfaces so that it now uses Borland's
XMLDOC, XMLINTF and XMLXFORM units.
My problem is applying transformations. I have two iXmlDocuments,
one of which contains my data, the other contains an XML
transform that "beautifies" the text by inserting linefeeds
and indentation.
How do I apply the transformation without resorting to temporary
files? txmltransform.transformxml doesn't work.
|
I believe this class is specifically designed to handle transforms using
data packets in XML format.
| Quote: | This used to be dead simple if I directly use iXmlDomDocument from
Microsoft.
|
Have you used the TransformNode from the IXMLNode interface? Like:
TXMLDocument.DocumentElement.TransformNode( [stylesheet], [string] )
TXMLDocument.DocumentElement.TransformNode( [stylesheet], [document] )
where [stylesheet] is the TXMLDocument.DocumentElement for your stylesheet,
and [document] is the TXMLDocument used to stored the results of the
transform. [string] is obviously a string data type.
hth... |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu May 10, 2007 12:43 am Post subject: Re: txmltransform Transformations without resorting to files |
|
|
"Arthur Hoornweg" <antispam.hoornweg (AT) casema (DOT) nl.net> wrote in message
news:46418d55$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I create iXmldocuments manually at runtime like
"iMyXml=txmldocument.create(NIL);"
|
Use the NewXMLDocument() function instead:
iMyXml := NewXMLDocument;
| Quote: | How do I apply the transformation without resorting to
temporary files? txmltransform.transformxml doesn't work.
|
Just saying that something doesn't work says nothing about the actual
problem you are having with it. You need to be more specific.
| Quote: | This used to be dead simple if I directly use iXmlDomDocument from
Microsoft.
|
What exactly were you using back then?
Gambit |
|
| Back to top |
|
 |
|
|
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
|
|