Welcome, Guest. Please Login.
IRobotSoft Robot
07/22/19 at 14:36:49
News: IRobotSoft is the Best Visual Web Computing Platform!
Home Help Search Login
Google
 


Pages: 1
Send Topic Print
Can I save data in a specific XML format? (Read 3103 times)
IRobotSoft Administrator
IRobotSoft Administrator
*****


IRobotSoft, the Best
Internet Robot
System

Posts: 1608
Gender: male
Can I save data in a specific XML format?
07/28/09 at 00:07:06
 
Question:
 
 
Can XML generated by Irobot be formatted differently for the default way like this  
<Variables Name="" Date="2009/07/24 15:44:39">  
     <VariableData Name="CCODE">E25</VariableData>  
     <VariableData Name="NAME">8TELECOM INTL HOLDINGS CO LTD</VariableData>  
</Variables>  
<Variables Name="" Date="2009/07/24 15:44:48">  
     <VariableData Name="CCODE">A53</VariableData>  
     <VariableData Name="NAME">A-SONIC AEROSPACE LIMITED</VariableData>  
</Variables>  
  
 
TO LIKE THIS  
 
 
<Variables>  
<CCODE>E25</CCODE>  
<NAME>8TELECOM INTL HOLDINGS CO LTD</NAME>  
</Variables>  
<Variables>  
<CCODE>A53</CCODE>  
<NAME>A-SONIC AEROSPACE LIMITED</NAME>  
</Variables>  
 
In other words can  <VariableData Name="CCODE">A53</VariableData> be outputted as <CCODE>E25</CCODE>  
 
 
 
 
 
Answer:
 
Just use "Text file" format with fields like:  
 
TargetField: f1;   Expression: <Variables>; Expr Type: Constant string (Value)  
TargetField: f2;   Expression: '<CCODE>'+ ccode + '</CCODE>'; Expr Type: Expr  
TargetField: f3;   Expression: '<Name>' + Name + '</Name>'; Expr Type: Expr  
TargetField: f4;   Expression: </Variables>; Expr Type: Constant string (Value)  
 
That is it.  If you want to separate each record into multiple lines, you can set field sep as LINE, and record sep as 2*LINE.
Back to top
 
 

The Administrator.
WWW   IP Logged
Pages: 1
Send Topic Print