Page 1 of 1

Oxygen formatting settings

Posted: Mon Jul 03, 2023 4:10 pm
by Idrees Mahmood
Hello, within the oxygen formatting settings I wish to auto add a newline before an attribute of a specific name on format.

I go to Preferences > Editor > Format > XML > Line break

I then add an option similar to the following

//TagName/@attributeName

And tick the Before option and untick the After option. This XPath correctly identifies those attributes when using the XPath/XQUERY Builder view. Though on format no newline is added.

Is there something I'm doing wrong.

Thanks in advance

Re: Oxygen formatting settings

Posted: Tue Jul 04, 2023 6:00 am
by Radu
Hi,

The "Line Break" list in the Oxygen Preferences->"Editor / Format / XML" page identifies XML elements before which a line break should be added.
You seem to want to add a line break only before a specific XML attribute inside an XML element. We do not have such a setting. We have the "Break line before attribute name" setting but it applies to all XML attributes.

Regards,
Radu

Re: Oxygen formatting settings

Posted: Thu Aug 10, 2023 12:23 pm
by ney10
Radu wrote: Tue Jul 04, 2023 6:00 am Hi,

The "Line Break" list in the Oxygen Preferences->"Editor / Format / XML" page identifies XML elements before which a line break should be added.
You seem to want to add a line break only before a specific XML attribute inside an XML element. We do not have such a settingmyloweslife We have the "Break line before attribute name" setting but it applies to all XML attributes.

Regards,
Radu
Hello Radu,
I had the same doubt. Thank you for clarification.