Guys,

I have a serialization question that I need help with.

I have and object that I'm serializing and I've got that to work.
Now, the object has some collection properties.  However when it serializes
it, it produces output similar to this:


<Patient ...>
 ....
 <allergies id="63af378a-9fdb-4716-9cf7-c79f666085c1" code="A1"
description="Test" />
 <allergies id="158ed678-f7c3-4e5e-8948-3183b4318430" code="A2"
description="Test" />
 <diagnosisCodes id="1e97d2e8-eee8-44ae-8bcd-e0e63cd7bbe1" code="DC1"
description="Test" />
 <diagnosisCodes id="684e93b2-5429-466a-932b-633c5097658f" code="DC2"
description="Test" />
</Patient>

However, I need it to produce output similar to this:

<patient...>
 ....
<allergies>
 <code id="" code="" description="" />
 <code id="" code="" description="" />
</allergies>
<diagnosisCodes>
 <code id="" code="" description="" />
 <code id="" code="" description="" />
</diagnosisCodes>
</patient>

How might I do this?

Thanks,
Mike

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to