Export XML lines without header

SpikeSpiegelSpikeSpiegel Member Posts: 7
edited 2021-07-29 in NAV Three Tier
Hi!, I'm using an XMLPort to generate an XML but I need generate an XML like this: (repeating error without header):

<Response>
<Errors>
<Line Number=1>
<Comment>comment</Comment>
<Error>Error x</Error>
<Error>Error y</Error>
<Error>Error z</Error>
</Linea>
<Line Number=2>
<Comment>comment</Comment>
<Error>Error x</Error>
</Linea>
</Errors>
</Response>

Now I generate a similar XML but each "error" is inside his own header:
<Error><Message>Error x</Message></Error>
<Error><Message>Error x</Message></Error>

And I don'l like use "Attribute" .
Thansk

Answers

  • krikikriki Member, Moderator Posts: 9,115
    [Topic moved from 'NAV Tips & Tricks' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.