Skip to main content
1-Visitor
July 28, 2010
Question

How do you search for comments?

  • July 28, 2010
  • 5 replies
  • 1680 views
Adepters:

One of my users wants to search for comments. I can't see how you can do that. The user just wants to find each comment without concern for their content.

Thanks,
Dave

    5 replies

    1-Visitor
    July 28, 2010
    Find-->Tag/Attribute

    _comment

    [cid:image001.png@01CB2E53.488881A0]



    \ / Andy Esslinger LM Aero - Tech Order Data
    _____-/\-_____ (817) 279-0442 1 Lockheed Blvd, Mail Zone 4285
    \_\/_/ (817) 777 3047 Fort Worth, TX 76108
    1-Visitor
    July 28, 2010
    If you do a Find/Replace and put "_comment" in the Find Within box, it
    will restrict to just comment nodes.

    keith

    1-Visitor
    July 28, 2010
    Oh, I guess I misread that... but find Tag/Entity with "_comment" as
    the tagname will also work.

    Or //comment() as an XPath if you prefer.

    keith

    1-Visitor
    July 28, 2010
    Thanks, Andy. Now I remember that "trick".
    1-Visitor
    July 28, 2010
    That is a neat trick. 🙂 I tried and found that it also works inside the Find Within: field of the Find/Replace box. I'm always making notes in comments so the ability to find obscure ones is handy. So thanks Andy!



    Greg

    J