_Chambers_
New Member
I have an XML like this;\[code\]<?xml version="1.0" standalone="yes"?><Claim.Submission> <Header> <SenderID>DHA123</SenderID> <ReceiverID>A002</ReceiverID> <TransactionDate>2012-07-05T15:00:00+05:30</TransactionDate> <RecordCount>3</RecordCount> <DispositionFlag>PRODUCTION</DispositionFlag> </Header> <Claim> <ID>123</ID> <MemberID>m01254</MemberID> <PayerID>A002</PayerID> <ProviderID>DHA123</ProviderID> <EmiratesIDNumber>111-1111-1111111-1</EmiratesIDNumber> <Gross>100</Gross> <PatientShare>0</PatientShare> <Net>100</Net> </Claim> </Claim.Submission>\[/code\]but I want to add a datatable in the \[code\]<Claim>\[/code\] node dynamically. ie; I want the XML as \[code\]<?xml version="1.0" standalone="yes"?><Claim.Submission> <Header> <SenderID>DHA123</SenderID> <ReceiverID>A002</ReceiverID> <TransactionDate>2012-07-05T15:00:00+05:30</TransactionDate> <RecordCount>3</RecordCount> <DispositionFlag>PRODUCTION</DispositionFlag> </Header> <Claim> <ID>123</ID> <MemberID>m01254</MemberID> <PayerID>A002</PayerID> <ProviderID>DHA123</ProviderID> <EmiratesIDNumber>111-1111-1111111-1</EmiratesIDNumber> <Gross>100</Gross> <PatientShare>0</PatientShare> <Net>100</Net> <Encounter> <FacilityID>DHA123</FacilityID> <Type>3</Type> <PatientID>1245</PatientID> <Start>2012-01-01T12:00:00+05:30</Start> <End>2012-01-05T15:00:00+05:30</End> <StartType>1</StartType> <EndType>1</EndType> </Encounter> </Claim></Claim.Submission>\[/code\]