inserting a new attribute to an existing element
Posted: Tue Feb 15, 2005 12:10 am
Hi,
I have an xml file , which has several elements ..i would like to add a new attribute to an existing element.
eg. if i wan to add attribute "district" to element "Center"
<xsl:attribute name"District">45</xsl:attribute>
and write the xml file again with updated attribute.
Thanks
I have an xml file , which has several elements ..i would like to add a new attribute to an existing element.
eg. if i wan to add attribute "district" to element "Center"
<xsl:attribute name"District">45</xsl:attribute>
and write the xml file again with updated attribute.
Thanks
Code: Select all
<Dispatch Data="16" Ver="1.5">
<Center No="2124" cc="US" region="35" Code="1" numBreaks="0" ShipNum="" GMT="0"/>
<DispDetails SerialNumber="8SZVB221" totalPkgs="5" >
<CurrencyID>L1379229754</CurrencyID>
</DispDetails>
</Dispatch>