[XML Records] Struggling with structure

Forge Component
Published on 2019-11-25 by Afonso Carvalho
43 votes
Published on 2019-11-25 by Afonso Carvalho


I'm using XML records to convert data from an API to a structure. For the 'normal' lines it works fine, but I don't get the permissions to work. Any hints what I am doing wrong?

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
                <channel name="EMAIL">true</channel>
                <channel name="SMS">false</channel>

                    <entry bit="1" description="Opt-in">true</entry>



Hi Raymond,

I believe you need to map the <entry> tag itself. Right now the structure is named MailPlusGet_entry, and if you do not change its name or add an alias with the AttributesConfig structure, no fields will be mapped to it.


Hi Afonso,

Changing the name didn't work, since the "MailPlusGet_entry" is a substructure In the parent structure it has the proper name.

 Changing the name "text" to "entry" resulted in the value "true" in that field so I am one step closer to the answer.

Now I only need to get the value "bit" and "description".

 <entry bit="1" description="Opt-in">true</entry>

Hints are welcome ;)

Try prefixing those attributes with "Attr_" - rename bit and description to "Attr_bit" and "Attr_description".

Hi Afonso,

It turns out I made another typo that made it look like changing the name didn't work.

Thanks for your help!