You need to sign in to do that
Don't have an account?
How to loop the XML tags
Hi,
Here is my code.
}
And Here is my xml file.
<?xml version="1.0" encoding="utf-8"?>
<CnPTransactionData>
<CustomFieldList>
<CustomField>
<FieldName>Employer</FieldName>
<FieldValue>Good Company</FieldValue>
</CustomField>
<CustomField>
<FieldName>Occupation</FieldName>
<FieldValue>Good Job</FieldValue>
</CustomField>
<CustomField>
<FieldName>Place of Employment</FieldName>
<FieldValue>Blacksburg, Virginia</FieldValue>
</CustomField>
</CustomFieldList>
</CnPTransactionData>
My problem is: I can insert a record in custom question easily. but I need to insert 3 records of Custom questions for a single order number(thatis transaction name). How can I loop the code so that 3 custom questions for a single order number has been araised
Thanks in advance.
Refer my response to the below thread.
http://boards.developerforce.com/t5/Apex-Code-Development/XMLStreamReader-How-To-Get-A-Specific-Attribute-Element-value/m-p/266241#M46415
Hope that helps.
Afzal
All Answers
Refer my response to the below thread.
http://boards.developerforce.com/t5/Apex-Code-Development/XMLStreamReader-How-To-Get-A-Specific-Attribute-Element-value/m-p/266241#M46415
Hope that helps.
Afzal
Hi Afzal,
Thanks alot. I solved my problem with your link.
Thanks a ton.
Anu