Read xml for text field
Read an attribute value of the XML file
File a.xml, the path is: C:\Program Files\Adobe\Adobe Photoshop CC 2018\Presets\Scripts\a.xml
The content of a.xml is:
<Mark>
<Widths>600</Widths>
<Hights>591</Hights>
<RES>254</RES>
<Name>029</Name>
<CWidths>2</CWidths>
<CHights>2</CHights>
<Quxi>0</Quxi>
<Date>29</Date>
<Cwei>20</Cwei>
<JY>029</JY>
</Mark>
i want get Date.value for text field by javascript
i try:
var f = new File('/C/Program Files/Adobe/Adobe Photoshop CC 2018/Presets/Scripts/Proof_2.0.xml');
f.open('r');
var xml = new XML( f.read() );
f.close();
var Widths = xml.child('Widths');
event.value=Widths;
but text field no value
pls help me
e pls help me
