Posted 1 year ago by Sascha Nitschke
Version: 22.1.4
Avatar

Hello Actipro,

it is possible to format XML inside a SyntaxEditor with indented attributes organized in columns? Example:

Default format:

<Root>
  <Parent name="first" year="2022">
    <Child name="Peter" nickname="Pete" job="teacher" />
    <Child name="John" nickname="Joe" job="doctor" />
    <Child name="Frank" job="unemployed" />
  <Parent>
  <Parent name="second" year="2023">
    <Child name="Lucas" nickname="Luc" job="bakerman" />
    <Child name="Philip" nickname="Phil" job="taxidriver" />
  <Parent>
</Root>


Wanted format:

<Root>
  <Parent name="first"  year="2022">
    <Child name="Peter"  nickname="Pete" job="teacher" />
    <Child name="John"   nickname="Joe"  job="doctor" />
    <Child name="Frank"                  job="unemployed" />
  <Parent>
  <Parent name="second" year="2023">
    <Child name="Lucas"  nickname="Luc"  job="bakerman" />
    <Child name="Philip" nickname="Phil" job="taxidriver" />
  <Parent>
</Root>

Is there a way to archieve this?

Regards
Sascha

Comments (2)

Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Sascha,

I'm sorry but we don't have any logic in the add-on to do aligned attributes like that.  You would have to code that kind of logic yourself.


Actipro Software Support

Posted 1 year ago by Sascha Nitschke
Avatar

Hello and thank you for the quick answer. I will do that. No problem ;)

Regards
Sascha

The latest build of this product (v24.1.2) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.