Structure of Resulting XML Documents

By default, converting a text file results in an XML document with the following format:

<document>
               

              
<row>
                   
<value1>value</value1> 
                   
<value2>value</value2> 
                   
<value3>value</value3> 
                   
... 
                   
</row> 
                   
<row> 
                   
<value1>value</value1> 
                   
<value2>value</value2> 
                   
<value3>value</value3> 
                   
... 
                   
</row> 
                   
<row> 
                   
<value1>value</value1> 
                   
<value2>value</value2> 
                   
<value3>value</value3> 
                   
... 
                   
</row> 
                   
. . . 
                   

                
</document>

The document wizard replaces value with the actual value that is in the imported file. If you want, you can specify that you want the document wizard to map the values to attributes of the row elements. The output would look like this:

<document>
               

              
<row value1="value" value2="value" value3="value"</row> 
                   
<row value1="value" value2="value" value3="value"</row> 
                   
<row value1="value" value2="value" value3="value"</row> 
                   
. . . 
                   

                
</document>

 
Free Stylus Studio XML Training: