I have an XML file which I saved in notepad:
<Layouts>
<BinCode>11111</BinCode>
<BinCode>11111</BinCode>
<BinCode>11112</BinCode>
<BinCode>11121</BinCode>
<BinCode>11111</BinCode>
<BinCode>11211</BinCode>
</Layouts>
I want to Convert this XML file to array then rotate the array to -90 Degree.
Please note that the conversion back to XML and chosen data types are just illustrative.
I've just put an algorithm pointer for you to get you started.
Basically, what we do is we create a main array which the length of is the number of digits which is 5, each of those arrays will contain an array of 6 digits.
We're going to populate them from the back, so we'll reverse the strings from the bottom up.