[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Copy missing elements

Subject: Copy missing elements
From: "Rick Quatro" <frameexpert@xxxxxxxxxxxx>
Date: Tue, 6 Sep 2005 08:14:17 -0400
missing elements
I have the basic structure.

<list>
    <member>
        <lastname>Jones</lastname>
        <firstname>Frank</firstname>
        <email>frank@xxxxxxxxx</email>
    </member>
    <member>
        <lastname>Smith</lastname>
        <firstname>John</firstname>
    </member>
</list>

The second <member> does not have an <email> element. I want to duplicate
the structure, but add an empty <email> element to the new xml document, so
it looks like this:

<list>
    <member>
        <lastname>Jones</lastname>
        <firstname>Frank</firstname>
        <email>frank@xxxxxxxxx</email>
    </member>
    <member>
        <lastname>Smith</lastname>
        <firstname>John</firstname>
        <email></email>
    </member>
</list>

Thank you in advance.

Rick Quatro
Carmen Publishing
585 659-8267
rick@xxxxxxxxxxxxxxx
www.frameexpert.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.