I need help in developing a logic for extracting data from a custom object for properties mentioned in XML file.
Let's take a custom class : Customer.
This customer class has properties : Customer Number, Name, Address, Phone, etc.
Now the XML file looks like
<CustomerNumber displayName="Customer Number" ListOrder="1">Customer.Number</CustomerNumber>
<Name displayName="Name" ListOrder="2">Customer.Name</Name>
<Adress displayName="Address" ListOrder="3">Customer.Address</Adress>
<Phone displayName="Phone" ListOrder="4">Customer.Phone</Phone>
I will be receiving Customer Object from another project.
What i need to know is, how can I extract the data from Customer object using above XML file.
If currently in XMLReader, Customer.Name is present then I have Name from Customer Object which I have received.
Can anyone help me please?
Thanks in advance.
P.S. Above XML can be modified as per needs.