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

Searching with XPath in Arbortext Editor

Searching with XPath in Arbortext Editor

Hello!

Although this is s.th. for the xml power-user, it is nevertheless heavily requested from this user group:

It should be possible to do some searching in Editor with XPath-Expressions and these XPath-Expressions should consider the latest XPath standards.

Thank you very much,

your WindchillTeam@DATACOPY

Note for PTC: Legacy E8223807

3 Comments
AndreasPinter
1-Newbie

You could implement that functionality yourself with ACL and doc_xpath_nodeset() or oid_xpath_nodeset() functions.

Although I agree it would be benefitial to have that out of the box.

ClayHelberg
16-Pearl

I've done something similar, a custom dialog that lets you enter an XPath expression and it then lists the OIDs of the matching elements. You can click on any OID and jump to that spot in the document.

There are a couple of drawbacks: the nodes that match have to be things that have OIDs, which means you can't search for attribute nodes or text nodes for example. Also, the oid_xpath_* functions are restricted to XPath 1.0 (at least in version 6.x, maybe that has been changed in 7.0). XPath 2.0 support would be better, of course, but XPath 1.0 is still amazingly useful.

WindchillTeamDA
3-Visitor

HI Andreas, hi Clay,

thanks for the suggestions. From our point of view, PTC should add this feature ootb with the latest XPath-Standards. We think this should be common to an XML editor.

Kind regards,

your WindchillTeam@DATACOPY