|
| wsdl TXMLData ? |
 |
Thu, 10 Jan 2008 22:37:21 -050 |
I use delphi 7 and I have alreay downloaded latest version at
http://cc.codegear.com/Item/24535
How can i use TXMLData ?
The wsdlimp.exe generate some TXMLData
Ex: city : TXMLData
I only create this data and the XML result is <city />
I would like to setup attribute and text properties but i don't know how.
The XML result that I want is <city parttype=''cty''>VANCOUVER<city
/>
I try something like that but it doesn't work because the XMLNode is
ReadOnly
city.XMLNode.Attrubute['partype'] := 'cty'
city.XMLNode.Text := 'VANCOUVER'
Martin Rousseau
|
| Post Reply
|
| Re: wsdl TXMLData ? |
 |
Wed, 16 Jan 2008 14:59:29 -080 |
Hello Martin,
I dropped in TXMLData to carry raw XML data. I refrained from exposing the
underlying document because after talking to the XML folks I found out that
I could use the same XMLNode in the SOAP request or response DOM as long as
I kept a ref-count on the document. IOW, I was trying to refrain from having
to copy data from one document to another.
So, what you can do is create/work with a raw TXMLDocument. This will allow
you to configure the data exactly the way you want it. Then load the
TXMLData using the LoadFromXML method.
The ref-count trick I mentioned earlier only really works when we're
converting XML back to native.
Please let me know if I can provide more information.
Cheers,
Bruneau.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|