This is the hash structure
'image' =>
{
'linux_axp_lpae' =>
{
# Mandatory
image_name => 'uImage-axp-lpae',
code_ref => 'linux_3.2.40_13q3_uni',
linux_image =>
{
compiler => 'v7_le_sfp_latest',
defconfig => 'armada_xp_v7smp_defconfig',
modules => '1',
config =>
{
'CONFIG_ARM_LPAE' => {value => 'y'},
'CONFIG_SQUASHFS' => {value => 'y'}
},
},
'post_script' => ['cesa/openswan/ipsec_build.sh']
},
}
and this is the xml i get
<image image_name="uImage-axp-lpae"
code_ref="linux_3.2.40_13q3_uni">
<linux_image compiler="v7_le_sfp_latest"
defconfig="armada_xp_v7smp_defconfig"
modules="1">
<config image="CONFIG_ARM_LPAE"
value="y" />
<config image="CONFIG_SQUASHFS"
value="y" />
</linux_image>
<post_script>cesa/openswan/ipsec_build.sh</post_script>
</image>
as you can see "code_ref" becomes a attribute but i need it to be an element
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.