0

i used some point in array like this

<array name="placeholderBucket">
    <item>0</item>
    <item>20</item>
    <item>276</item>
    <item>150</item>
    <item>522</item>
    <item>150</item>
    <item>848</item>
    <item>20</item>
    <item>0</item>
    <item>600</item>
    <item>848</item>
    <item>220</item>
</array>

//i want to get these point divide by 1.5 like

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <array name="placeholderBucket">
        <item>0</item>
        <item>13</item>
        <item>184</item>
        <item>100</item>
</resources>

actually i have lots of arrays for changing the original points into points which is divide by 1.5

Yazan
  • 6,074
  • 1
  • 19
  • 33
manish rawat
  • 101
  • 1
  • 1
  • 7

1 Answers1

0

parse XML file read each value and rewrite back to file.for reading xml file from shell script refer How to parse XML using shellscript?

Community
  • 1
  • 1
Kirtan
  • 1,782
  • 1
  • 13
  • 35