Hi All,

 

I have an xml file whose data needs to be validated with 250+ rules, the size of the xml can range from 4MB to 50 MB. Have the following questions.

 

1. Where the Rules should be defined, as i would like them to dynamically controlled(instead of hard coding)

2.  Given the size of the data and input being xml, how should i approach this problem(considering the rules might change etc)

3.The names of the UI and XML tag names will be different, so when should the translation takes place

 

Following is the structure of the xml

<DATA>

<Parent>

     <Fields>

     //All the data like name, age, height, weight, blood group etc goes here

     </Fields>

     <Childs>

     <Name = 'Andrew' id = 7560>

     .......

     </Childs>

     <Relatives>

     //Relationships

     </Relatives>

</Parent>

     <Children> //For each children it list their details

       //All the data like name, age, height, weight, blood group etc goes here

     </Children>

     <Relationships>//For each relationship it list their details

     </Relationship>

</Data>

 

thanks

FacebookTwitterLinkedin
Pin It
Joomla Tutorials for Beginners