[XML Records] Problem with Removing Null Records

Forge Component
(35)
Published on 1 Apr (3 weeks ago) by Afonso Carvalho
35 votes
Published on 1 Apr (3 weeks ago) by Afonso Carvalho

Hi Guys!


<Record2>

        <Record1>

                <Atttibute1></Attribute1>

                <Atttibute2></Attribute2>

         </Record1>

</Record2>

I have say an xml structure like above.

I set the DefaultXmlConfig to ExcludeIfNull = False;

I then create some AttributeXmlConfig Records so that:

Record1 has attribute1 and 2 set to ExcludeIfNull;

Record2 has Record1 set to ExcludeIfNull;


I create them in this order so as to avoid order problems.


Record1 persists in the XML thoe and does not get removed.


Please can someone explain what I'm doing wrong.


Kind Regards.

Hi Shawn,

I set the DefaultXmlConfig to ExcludeIfNull = False;

What happens if you set this to True?


Regards,

Afonso Carvalho