I need to create XML with the following pattern. <Root>

I need to create XML with the following pattern.

<Root>
<Entity type="Employee">
<EmployeeNumber/>
</Entity>
</Root>

I am using toxml function to convert the CDTs into XML. But here problem is with attribute of Entity element i.e. type="Employee"
How can we have the XSD with attributes(default value of type attribute will be "Employee") which can be imported with out any error. I tried with many annotations but it seems to be not working.

Could any please share the approach. Thanks

OriginalPostID-141429

OriginalPostID-141429

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data