Skip to main content
Jul 28, 2010 5:37 PM UTC
Question

How do you search for comments?

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

    Jul 28, 2010 5:49 PM UTC
    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
    Jul 28, 2010 5:49 PM UTC
    If you do a Find/Replace and put "_comment" in the Find Within box, it
    will restrict to just comment nodes.

    keith

    Jul 28, 2010 5:50 PM UTC
    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

    Jul 28, 2010 5:55 PM UTC
    Thanks, Andy. Now I remember that "trick".
    Jul 28, 2010 6:09 PM UTC
    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