[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Empty elements
I've got a document that looks similar to below: <message_wrapper> <msg_header> <token>a token</token> <language>a language</language> </msg_header <msg_body> <group> <element1>value 1</element1> <element2>value 2</element2> </group> <group> <element1>value 3</element1> <element2>value 4</element2> </group> <group> <element1></element1> <element2></element2> </group> <group> <element1></element1> <element2></element2> </group> </msg_body> </message_wrapper> How can I remove the empty groups ? message_wrapper & msg_body will always have the same names, but the names of the group & element* elements will not always be the same. TIA *********************************************************************************************************** Nissan Motor Manufacturing (UK) Limited. Registered in England Number 1806912 Registered Office Washington Road, Sunderland Tyne & Wear SR5 3NS Telephone : +44 (191) 415 0000 This e-mail and any files transmitted with it are confidential and intended for the addressee only. If you are not the addressee you may not copy, forward, disclose or otherwise use it, or any part of it, in any form whatsoever. If you have received this e-mail in error please notify the sender and ensure that all copies of this e-mail and any files transmitted with it are deleted. Any views or opinions represented in this e-mail are solely those of the author and do not necessarily represent those of Nissan or its affiliate companies. Although this e-mail and its attachments have been scanned for the presence of computer viruses, Nissan will not be liable for any losses as a result of any viruses being passed on. *********************************************************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|