Getting the XML Node name at Runtime

ybyalik

New Member
Hi i have a simple question...I have an input xml file say,\[code\]<root> <c:A>AA</c:A> <c:B>BB</c:B></root>\[/code\]out of the two nodes only one can appear in the input xml(i.e. either \[code\]<c:A> or <c:B>\[/code\]) after applying the xsl transformation(InputTransformation.xsl) it is converted into the following structure and the value of the either of the nodes is stored i.e. say,\[code\] <F1>AA</F1> ,if node <c:A> is present. or <F1>BB</F1> ,if node <c:B> is present. \[/code\]Now while writing the data back to the file, which is an xml file, i have to revert the transformations that i have applied,using xsl(OutputTransformation.xsl).So that the output xml will have the same structure as that of the input xml. Now the question is that how would i get the name of the node?? i.e from which node the value has come. So that my input and output xml match.
 
Back
Top