Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extracting xml data to xml attribute

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
Ive encountered the following problem:
When transferring xml to xml I want to get the value of an element to be an element in the resulting xml for example:
<row>
<field>1</field> <1>
<field>A</field> ------> <A>data</A>
<field>data</field>
</row>

Is it possible? I'm keep getting walls
 
are you using xsl to do the transform?

try looking into the <xsl:element /> tag

check out
something like:

<xsl:template name=&quot;test&quot;>
<xsl:param name=&quot;nm&quot;>default_element_name</xsl:param>

<xsl:element name=&quot;{$nm}&quot;>
<!-- nested xml here is created inside your named element -->
</xsl:element>

</xsl:template>
mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top