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

Check if XML tag exists?

Subject: Check if XML tag exists?
From: David C Petite <david@xxxxxxxxxxxxx>
Date: Wed, 16 Aug 2000 17:24:37 -0500
xml tag exist
Hey folks,

First timer on the list here...

i could have swore I had seen this in the XLS FAQ before it was
re-organized on its new domain, but after a half hour of hunting, I
cannot find the answer.

Is there a way I can check if a TAG in the XML data exists or not, even
though the possibly existing TAG will not have any value?

Background is... in this instance everything would be hidden.

<RESTRICTED_FIELD_LIST>

  <HIDE_OFFICE_ALL />
  <HIDE_HOME_ALL />

</RESTRICTED_FIELD_LIST>

But in this instance ALL the Office info would be hidden while only  the
Home Address info would be hidden.

<RESTRICTED_FIELD_LIST>

  <HIDE_OFFICE_ALL />
  <HIDE_HOME_ADDRESS />

</RESTRICTED_FIELD_LIST>

The HIDE_HOME_ALL is no longer in the data.

Can I check to see if a TAG exists or not?
___________________________________________
david c petite
Lead Site Builder

david@xxxxxxxxxxxxx
http://www.standpipe.com

-------------------------------------------

" 'Ace, watch your head!' hissed Wanda 
  urgently, yet somehow provocatively, 
  through red, full, sensuous lips, but he 
  couldn't you know, since nobody can 
  actually watch more than part of his nose 
  or a little cheek or lips if he really tries, 
  but he appreciated her warning." 
                    -Dark & Stormy Contest Winner


-------------------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.