Working on exported XML files
Posted: Mon Jul 28, 2014 6:44 pm
Hello,
Is there a way to edit values in XML file using table view?
One of my (non-XML) programs exports project into an XML file like this:
Is it possible to use oxygen to edit something like that in an grid-like view in form of:
This data is a screen from operator panel in FTView ME Studio exported to XML.
This will allow me to work on large objects with 100+ states. Mostly I will have to overwrite captions from another project. In previous version of this program (PanelBuilder) you could edit objects in excel like list just like I listed right above and I would get my captions in excel, copy whole range of captions and paste into that list. In new version, you have to edit one by one and XML export is the only way to possibly automate this.
If anybody has an idea how to do it, I will really appreciate it.
Is there a way to edit values in XML file using table view?
One of my (non-XML) programs exports project into an XML file like this:
Code: Select all
<listIndicator name="ListIndicator1" height="18" width="248" left="32" top="94" visible="true" wallpaper="false" isReferenceObject="false" backColor="black" borderStyle="line" borderUsesBackColor="false" borderWidth="1" selectionForeColor="black" selectionBackColor="black" description="" borderColor="black" patternColor="white" patternStyle="none" blink="false" triggerType="value" fontFamily="PV 8x16" fontSize="12" bold="false" italic="false" underline="false" strikethrough="false" captionTruncate="character" setLastStateId="144">
<states>
<state stateId="0" value="0">
<caption caption="F01_480VAC Segment 1" color="#CECBCE" backColor="black" backStyle="transparent" alignment="left" blink="false"/>
</state>
<state stateId="1" value="-127">
<caption caption="F10_120VAC for PLC" color="#CECBCE" backColor="black" backStyle="transparent" alignment="left" blink="false"/>
</state>
<state stateId="2" value="-1">
<caption caption="F11_24VDC for PanelView" color="#CECBCE" backColor="black" backStyle="transparent" alignment="left" blink="false"/>
</state>
..... more states
</states>
</listIndicator>
Code: Select all
stateId | value | caption | color | backColor | backStyle | alignment | blink
0 | 0 | F01_480*| CECBCE| black | transpar* | left | false
....
This will allow me to work on large objects with 100+ states. Mostly I will have to overwrite captions from another project. In previous version of this program (PanelBuilder) you could edit objects in excel like list just like I listed right above and I would get my captions in excel, copy whole range of captions and paste into that list. In new version, you have to edit one by one and XML export is the only way to possibly automate this.
If anybody has an idea how to do it, I will really appreciate it.