cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How do you search for comments?

ptc-953926
1-Newbie

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 5

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

If you do a Find/Replace and put "_comment" in the Find Within box, it
will restrict to just comment nodes.

keith

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

Thanks, Andy. Now I remember that "trick".

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


Top Tags