outputEmptyTags

Top  Previous  Next

- outputEmptyTags [false] ( true | false )

 

Should your domain objects be converted to XML, this attribute allows you to specify whether to output empty tags in the XML document that gets generated.

 

if outputEmptyTags="true"

 

<Employee>
    <FirstName>John</FirstName>
    <MiddleInitial></MiddleInitial>
    <LastName>Doe</LastName>
    <AddressLine1>1234 Happy Lane</AddressLine1>
    <AddressLine2></AddressLine2>
    <AddressLine3></AddressLine3>
</Employee>

 

if outputEmptyTags="false"

 

<Employee>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <AddressLine1>1234 Happy Lane</AddressLine1>
</Employee>