Quantcast
Viewing all articles
Browse latest Browse all 11829

Excel to XML conversion

Hi,

I need to convert multiple columns of data with a header into the following xml output:

    <attributes>
       <attribute>
         <name></name>(the desired column header)
         <value></value>(the cell value in the underlying column)
       </attribute>
    </attributes>

In doing so, I have to supply multiple fields with same structure and element names, but different content, e.g.:

       <attribute>
         <name>Length</name>
         <value>20 cm</value>
       </attribute>

       <attribute>
         <name>Height</name>
         <value>30 cm</value>
       </attribute>

How do I create the xml schema in such a way that the units are the excel columns and the output is exactly what is described immediately above?

Mark


Viewing all articles
Browse latest Browse all 11829

Trending Articles