vba - Generating XML file out of Excel with 50k rows -
i new vba. know other programming languages little. interested know, how transfer table below new structure efficient way. in total there 50k rows of data process , need know approach work given amount of data.
excel:
level key value reference 1 k_1 fruit 1 k_2 vegetable 2 k_1_1 banana k_1 2 k_1_2 apple k_1 2 k_2_1 cucumber k_2 2 k_2_2 carrot k_2 3 k_1_1_1 banana k_1_1 3 k_1_1_2 banana else k_1_1 3 k_1_1_3 banana else k_1_1 3 k_1_1_4 banana else k_1_1 3 k_1_1_5 banana else k_1_1
the resulting structure should group types, subtypes , subsubtypes according structure below:
<type key="k_1"> <levelid>1</levelid> <value>fruit</value> <subtype key="k_1_1"> <levelid>2</levelid> <value>banana</value> <subsubtype key="k_1_1_1"> <levelid>3</levelid> <value>banana something</value> </subsubtype> <subsubtype key="k_1_1_2"> <levelid>3</levelid> <value>banana else</value> </subsubtype> </subtype> <subtype key="k_1_2"> <levelid>2</levelid> <value>apple</value> <subsubtype key="k_1_1_1"> <levelid>3</levelid> <value>apple something</value> </subsubtype> <subsubtype key="k_1_1_2"> <levelid>3</levelid> <value>apple else</value> </subsubtype> </subtype> </type>
the biggest challenge me handle amount of data efficient way.
Comments
Post a Comment