The latest build of this product (v22.1.4) was released 2 months ago, which was before this thread was created.
Posted 12 days 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 12 days 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 11 days ago by Sascha Nitschke
Avatar

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

Regards
Sascha

Add Comment

Please log in to a validated account to post comments.