Link to home
Start Free TrialLog in
Avatar of Michael Paravicini
Michael ParaviciniFlag for Chile

asked on

XML in VBA

I am using XML in vba but not sure how to represent the following code:

<InstdAmt Ccy="CHF">15.00</InstdAmt>

I am currently using:

 Set NodeAmt = doc.createNode(NODE_ELEMENT, "Amt", nmsp)
 NodeCdtTrfTxInf.appendChild NodeAmt

          Set NodeInstdAmtCcy = doc.createNode(NODE_ELEMENT, "InstdAmtCcy", nmsp)
          NodeAmt.appendChild NodeInstdAmtCcy
          NodeInstdAmtCcy.Text = Nz(rst!Ccy)

          Set NodeInstdAmt = doc.createNode(NODE_ELEMENT, "InstdAmt", nmsp)
          NodeAmt.appendChild NodeInstdAmt
          NodeInstdAmt.Text = rst!PayAmt

which obviously is wrong. Any help is really greatly appreciated... Thanks Michael
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Paravicini

ASKER

Perfect - thank you so much for your help.. Rg Michael