The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 import xml-type of data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

yt47106

Sweden
Posts

Posted - 02/13/2013 :  4:07:16 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

Hi,

I need to import data from a xlm-file with each parameter defined in the structure as in the example below. Is there by any chance some info already available on how to achieve this? Of course the file also contains a large number of rows with useless info that I do not want to extract. The info I want to use from each parameter is:
<NAME> to be used as long name
<DESC> ; used as notes
<UNIT> ; used as unit
<DEC> ; used as number of decimals

---------------------------------------
..........(3000 rows of additional info)

<PAR>
<NAME>Param_1</NAME>
<TYPE>f</TYPE>
<DESC>TextforParam_1</DESC>
<UNIT>r/s</UNIT>
<DEC>2</DEC>
<RMIN></RMIN>
<RMAX></RMAX>
<VAL>-0.0551224;-1.90533;-1.03676;-0.78694;-0.762323;3.12175;5.98311;0.460688;-2.71742;-0.927327;-0.883293;-3.47076;-3.09572;-0.931867;0.815277;-0.508048;-0.0653076;0.873419;-</VAL> ; measured values for Param_1
</PAR>

cpyang

USA
1406 Posts

Posted - 02/14/2013 :  5:16:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
OriginC has Tree and TreeNode data type, internally XML, so it should be quite straight forward, see this

http://ocwiki.originlab.com/index.php?title=OriginC:Tree-Load#Examples

CP
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000