Page 1 of 1

Show path anywhere?

Posted: Fri Jun 05, 2015 9:11 am
by xmler
Hi, I'm new to Oxygen XML.

I was wondering if it has the facility to show you the path as you select XML.

I know you can select a section of text, right click and Copy XPath but I'd like to see the full path just by clicking on a particular piece of text - is there a toolbar or something I can activate to do this ?

Any help appreciated
thanks

Re: Show path anywhere?

Posted: Fri Jun 05, 2015 10:47 am
by florin
Hello,

You can see the XPath expression, corresponding to the section where the caret is positioned in the document, either in the XPath toolbar, or in the XPath/XQuery Builder side view.

The XPath toolbar is located in the application toolbars area. You'll have to activate the "XPath update on caret move" option located in the popup menu corresponding to the Settings button at the right side of the XPath field.

To make visible the XPath/XQuery Builder side view, activate it from the Window > Show View sub-menu. After, you'll have to activate the "Update on caret move" option located in the popup menu corresponding to the Settings button in the right side of the view's toolbar.

Whether you use the XPath toolbar or the XPath/XQuery Builder side view, please note that there is a difference between the XPath expression displayed by any of them and the XPath expression returned by the Copy XPath action - the latter also contains the position of each element, while the former does not.

Best regards,
Florin

Re: Show path anywhere?

Posted: Tue Jun 09, 2015 2:41 am
by xmler
Thanks, this is what I was after :-

"The XPath toolbar is located in the application toolbars area. You'll have to activate the "XPath update on caret move" option located in the popup menu corresponding to the Settings button at the right side of the XPath field."

I can see the path when I click in the XML now

However, I can't see the full path without scrolling in the XPath box. Can I stretch this box ? I've got a 22" monitor so if I could stretch the box I'd be able to see the full path

Thanks

Re: Show path anywhere?

Posted: Tue Jun 09, 2015 9:11 am
by florin
Hi,

Unfortunately, the XPath field is not resizable. If the paths are too long, then I recommend to use the XPath/XQuery Builder side view. You can move it at the bottom of the oXygen window so that it has a horizontal layout and the paths will be fully displayed.

Best regards,
Florin

Re: Show path anywhere?

Posted: Tue Jun 09, 2015 9:57 am
by xmler
"use the XPath/XQuery Builder side view. You can move it at the bottom of the oXygen window so that it has a horizontal layout and the paths will be fully displayed."

ok thanks, doing that has let me see the full path.

Maybe in a future update the XPath field could be made resizable :)

thanks again

Re: Show path anywhere?

Posted: Tue Apr 17, 2018 6:52 am
by vtau
"To make visible the XPath/XQuery Builder side view, activate it from the Window > Show View sub-menu. After, you'll have to activate the "Update on caret move" option located in the popup menu corresponding to the Settings button in the right side of the view's toolbar."

I'm helping someone on an older version (v12 and can't update). they can open the XPath Builder view but there is no option to sleect 'update on selection/caret move' so they cannot see any paths. Is there another way to make them visible?

Re: Show path anywhere?

Posted: Fri Apr 20, 2018 7:30 pm
by adrian
Hi,

In v12.2 "XPath update on caret move" is available as a toggle button in the toolbar, on the right of the cogwheel (XPath options) button.

Regards,
Adrian