To all:
If there's an article on this already, please post the link. Okay, here's what I want to accomplish:
Convert this XML structure:
Into this XML structure:
Take note that the second employee was missing the "empid" element in the first XML structure. However, in the second XML structure, it is presenet with "Null" for the value.
I've been messing around with XSLT, but no success so far. Thanks for any and all help with this.
Randy
If there's an article on this already, please post the link. Okay, here's what I want to accomplish:
Convert this XML structure:
Code:
<employee>
<empid>123456</empid>
<firstname>Jon</firstname>
<lastname>Doe</lastname>
</employee>
<employee>
<firstname>Harry</firstname>
<lastname>Carry</lastname>
</employee>
Into this XML structure:
Code:
<record>
<empid>123456</empid>
<firstname>Jon</firstname>
<lastname>Doe</lastname>
</record>
<record>
<empid>Null</empid>
<firstname>Harry</firstname>
<lastname>Carry</lastname>
</record>
Take note that the second employee was missing the "empid" element in the first XML structure. However, in the second XML structure, it is presenet with "Null" for the value.
I've been messing around with XSLT, but no success so far. Thanks for any and all help with this.
Randy