Custom XML Export Format

Completed

Hello,

I am trying to create a custom XML export format. Instead of starting a node with <data>, I would like to write the name of the table (example: TableName).

The output should look like that:

<ObjectList ObjectType="TableName">

The current script

OUT.append(
"""<ObjectList ObjectType="$TABLE">""")

... exports:

<ObjectList ObjectType="table:TableName">

Is it possible to get rid of the leading "table:"?

Thanks in advance for any advice!
Chris

1 comment
Comment actions Permalink

I found the solution.

First, I created a variable:

def tName = "$TABLE" - "table:"

Then I use this variable in my expression:

OUT.append(
"""<ObjectList ObjectType="$tName">""")

That's all! Much easier than expected!

Chris

0

Please sign in to leave a comment.