96
Views
7
Comments
Solved
[XML Records] How to configure the output structure?
Question
xml-records
Service icon
Forge asset by Afonso Carvalho

Hi!

I already have my Record List with all the values I need and I want to build an XML output with this structure. 

How should I do?

What I want:

What I have:

As you can see the tags are getting separated.

The structure I have is Scheduler for a list of SchedulerEventList


Tks!

2019-06-15 21-39-22
Afonso Carvalho
 
MVP
Solution

The name for your attribute within the structure should be "Attr_Name". This way, it will be processed as an atribute and not as a full tag - the thread has an example module. 

Let us know if you need further assistance.

2022-02-08 17-38-18
Noun Eltoum

Hi Danio, you issue is not clear , you already have the right forge component? you need to populate you data in the (make the sturcture you need as per your requirment )and convert, what is you issue exactly?

2022-11-29 22-23-45
Danilo Barbosa

Yes, I already have the component. I already have the structure. What I would like to know is how to configure for my XML to come out as expected in the image. If you take a closer look at the image, you can see that the tags are separated in some cases.


The XML example at the first level if I compare I have

<Schedule name="DT20"></Schedule>

and in the other scenario that is wrong I have

<Schedule> <Name ="DT20"></Schedule>

2022-11-29 22-23-45
Danilo Barbosa

Can anyone help me?

2019-06-15 21-39-22
Afonso Carvalho
 
MVP

Hello Danilo,

I believe you want to add "Name" as an attribute of your "Schedule" tag. Can you check the solution in this thread to see if it fits your requirements?

2022-11-29 22-23-45
Danilo Barbosa

I don't know what I could be doing wrong.

My structure:

Result:

2019-06-15 21-39-22
Afonso Carvalho
 
MVP
Solution

The name for your attribute within the structure should be "Attr_Name". This way, it will be processed as an atribute and not as a full tag - the thread has an example module. 

Let us know if you need further assistance.

2022-11-29 22-23-45
Danilo Barbosa

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.