-
May 21st, 2013, 02:19 PM
#1
Question about XML
I need to get this in an xml file:
<Amt>
<InstdAmt Ccy="EUR">298.67</InstdAmt>
</Amt>
IHow do i do that.
I tried the code below, but get a syntax error on >> oElemBerichtAmt.setAttributes "Ccy", "EUR" <<
Please help.
Herman
< code
Dim oElemBerichtInstdAmt As IXMLDOMElement
Set oElemBerichtInstdAmt = oDOM.createElement("InstdAmt")
Dim oElemBerichtAmt As IXMLDOMElement
Set oElemBerichtAmt = oDOM.createElement("Amt")
>> oElemBerichtAmt.setAttributes "Ccy", "EUR" <<
oElemBerichtAmt.Text = "298.67"
oElemBerichtInstdAmt.appendChild oElemBerichtAmt
< code
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|