- <RESPONSE> <EXPR>USD</EXPR> <EXCH>ARS</EXCH> <AMOUNT>1</AMOUNT> <NPRICES>1</NPRICES> - <CONVERSION> <DATE>Mon, 27 May 2013 19:00:00 GMT</DATE> <ASK>0.1908</ASK> <BID>0.1889</BID> </CONVERSION> </RESPONSE>
Node Name - Node Type - Source Type - Data Source (Indentation 0)ExchangeRate - Element - Table - <Currency Conversion - Table>(Currency Conversion - Table) (Indentation 1) RESPONSE - Element - Text - <RESPONSE> (Indentation 1) EXPR - Element - Field - Currency Conversion - Table::EXPR (Indentation 1) EXCH - Element - Field - Currency Conversion - Table::EXCH (Indentation 1) AMOUNT - Element - Field - Currency Conversion - Table::AMOUNT (Indentation 1) NPRICES - Element - Field - Currency Conversion - Table::NPRICES (Indentation 1) CONVERSION - Element - Text - CONVERSION (Indentation 1) DATE - Element - Field - Currency Conversion - Table::DATE1 (Indentation 1) ASK - Element - Field - Currency Conversion - Table::ASK (Indentation 1) BID - Element - Field - Currency Conversion - Table::BID
Name DataType Subtype Length TestFile File InStreamObj InStream OutStramObj OutStream
TestFile.OPEN('D:\MyFile.xml'); TestFile.CREATEINSTREAM(InStreamObj); XMLPORT.IMPORT(50000,InStreamObj); TestFile.CLOSE;
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
After doing that, I'm getting error - "The element <CONVERSION> is unexpected."
What to do to overcome this error?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thanks,
Aravindh.
I'll try and see if I can replicate it.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Does your xml file by any chance have multiple conversion elements?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I have one more doubt. If you see the <DATE> node...
I need to convert this value to normal date format (05/28/2013) and send to the table. What to do for achieving this?
Variables:
strDay - strMonth - strYear are text variables.
I have done the above code. But I don't know how to proceed next?
Thanks,
Aravindh
Actually I need to send Tue, 28 May 2013 19:00:00 GMT as 05/28/2013 by converting it in XMLport itself and send to the table.
I don't find problem in converting, I got strucked on how to send from XML port in desired format to the table.
How to do this?
I solved this issue. You guys just have a look.
Actually I need to update in Currency Exchange Rate."Starting Date" field.
Now I could able to insert it into the table field.