How to find an empty attribute in Arbortext?
Hello-
I can't get Find/Replace attributes to find attributes that are null (empty). Is there a trick to that? Or a way to do it from the command line? Thank you.
Hello-
I can't get Find/Replace attributes to find attributes that are null (empty). Is there a trick to that? Or a way to do it from the command line? Thank you.
Hi Nancy--
OK, great. So to answer your follow-up questions:
Note that XPath is extremely powerful, and can let you specify complex element constraints. For example, if you wanted to get <cite.state.law> elements with no "ref" attribute, but only if they are inside <cite.state> elements where the "state.name" attribute is "MN", you could do something like this:
//cite.state[@state.name="MN"]//cite.state.law[not(@ref)]
So, if you get to know XPath well, you can be very precise in selecting exactly the elements you want (and only those elements). There are plenty of tutorials online to help you learn to use the full power of XPath. A quick Google search should turn up lots of good hits.
--Clay
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.