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

Empty elements

Subject: Empty elements
From: "Porter, Ian" <Ian.Porter@xxxxxxxxxxxxxxxxx>
Date: Thu, 21 Feb 2002 17:47:57 -0000
tia porter
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


Current Thread
  • Empty elements
    • Porter, Ian - Thu, 21 Feb 2002 12:50:42 -0500 (EST) <=
      • TP - Thu, 21 Feb 2002 13:24:37 -0500 (EST)
        • Michael Kay - Thu, 21 Feb 2002 13:46:31 -0500 (EST)
        • TP - Thu, 21 Feb 2002 13:50:19 -0500 (EST)

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.