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

How to strip all optional but empty elements from a XM

Subject: How to strip all optional but empty elements from a XML doc?
From: "Ben Stover" <bxstover@xxxxxxxxxxx>
Date: Tue, 04 Aug 2009 06:55:28 +0200
 How to strip all optional but empty elements from a XM
Assume I have a XML doc and a XSD schema file which defines mandatory and optional element fields.

How can I now go recursively through the whole XML document and find all elements which are optional (e.g. minoccurs=0)
but currently EMPTY. These empty, optional elements should be stripped off so that the resulting XML does not contain them any more.

How can I achive this with an XSLT script?

Ben

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-2007 All Rights Reserved.