eroticland.biz
New Member
i have two different xml file
Region.xml:-\[code\]<childrens><child_4 entity_id="4" value="http://stackoverflow.com/questions/15680013/Activities" parent_id="2"> <child_10066 entity_id="10066" value="http://stackoverflow.com/questions/15680013/Physical1" parent_id="4"> <child_10067 entity_id="10067" value="http://stackoverflow.com/questions/15680013/Cricket" parent_id="10066"> <child_10068 entity_id="10068" value="http://stackoverflow.com/questions/15680013/One Day" parent_id="10067"/> </child_10067> </child_10066></child_4><child_4331 entity_id="4331" value="http://stackoverflow.com/questions/15680013/Region" parent_id="2"> <child_5069 entity_id="5069" value="http://stackoverflow.com/questions/15680013/Irungattukottai" parent_id="4331"/></child_4331></childrens><br><br>\[/code\]Product.xml:-
\[code\]<products> <product_id value="http://stackoverflow.com/questions/15680013/1"> <tab_id value="http://stackoverflow.com/questions/15680013/351"> <tab_name value="http://stackoverflow.com/questions/15680013/test1"/> <region_timezone value="http://stackoverflow.com/questions/15680013/1"/> <registrationstatus value="http://stackoverflow.com/questions/15680013/2"/> <eventstatus value="http://stackoverflow.com/questions/15680013/2"/> <dist_activity value="http://stackoverflow.com/questions/15680013/5"/> <dist_activity value="http://stackoverflow.com/questions/15680013/10068"/> <dist_activity value="http://stackoverflow.com/questions/15680013/10070"/> <dist_region value="http://stackoverflow.com/questions/15680013/5069"/> <dist_region value="http://stackoverflow.com/questions/15680013/5069"/> <dist_region value="http://stackoverflow.com/questions/15680013/5069"/> </tab_id> </product_id> <product_id value="http://stackoverflow.com/questions/15680013/2"> <tab_id value="http://stackoverflow.com/questions/15680013/352"> <tab_name value="http://stackoverflow.com/questions/15680013/test2"/> <region_timezone value="http://stackoverflow.com/questions/15680013/1"/> <registrationstatus value="http://stackoverflow.com/questions/15680013/2"/> <eventstatus value="http://stackoverflow.com/questions/15680013/2"/> <dist_activity value="http://stackoverflow.com/questions/15680013/5"/> <dist_activity value="http://stackoverflow.com/questions/15680013/10069"/> <dist_activity value="http://stackoverflow.com/questions/15680013/10070"/> <dist_region value="http://stackoverflow.com/questions/15680013/4457"/> <dist_region value="http://stackoverflow.com/questions/15680013/7140"/> <dist_region value="http://stackoverflow.com/questions/15680013/5069"/> </tab_id> </product_id></products>\[/code\]
i have two array value \[code\]One Day\[/code\] & \[code\]Irungattukottai\[/code\] i want to try check this both in to region.xml if both are exit then take there \[code\]entity_id\[/code\] and check into product.xml
if this both entity_id is exit in product.xml then return \[code\]product_id\[/code\] attribute value.
\[code\]One Day\[/code\] is on my \[code\]$event\[/code\] and \[code\]Irungattukottai\[/code\] is \[code\]$region\[/code\]
thanks...
Region.xml:-\[code\]<childrens><child_4 entity_id="4" value="http://stackoverflow.com/questions/15680013/Activities" parent_id="2"> <child_10066 entity_id="10066" value="http://stackoverflow.com/questions/15680013/Physical1" parent_id="4"> <child_10067 entity_id="10067" value="http://stackoverflow.com/questions/15680013/Cricket" parent_id="10066"> <child_10068 entity_id="10068" value="http://stackoverflow.com/questions/15680013/One Day" parent_id="10067"/> </child_10067> </child_10066></child_4><child_4331 entity_id="4331" value="http://stackoverflow.com/questions/15680013/Region" parent_id="2"> <child_5069 entity_id="5069" value="http://stackoverflow.com/questions/15680013/Irungattukottai" parent_id="4331"/></child_4331></childrens><br><br>\[/code\]Product.xml:-
\[code\]<products> <product_id value="http://stackoverflow.com/questions/15680013/1"> <tab_id value="http://stackoverflow.com/questions/15680013/351"> <tab_name value="http://stackoverflow.com/questions/15680013/test1"/> <region_timezone value="http://stackoverflow.com/questions/15680013/1"/> <registrationstatus value="http://stackoverflow.com/questions/15680013/2"/> <eventstatus value="http://stackoverflow.com/questions/15680013/2"/> <dist_activity value="http://stackoverflow.com/questions/15680013/5"/> <dist_activity value="http://stackoverflow.com/questions/15680013/10068"/> <dist_activity value="http://stackoverflow.com/questions/15680013/10070"/> <dist_region value="http://stackoverflow.com/questions/15680013/5069"/> <dist_region value="http://stackoverflow.com/questions/15680013/5069"/> <dist_region value="http://stackoverflow.com/questions/15680013/5069"/> </tab_id> </product_id> <product_id value="http://stackoverflow.com/questions/15680013/2"> <tab_id value="http://stackoverflow.com/questions/15680013/352"> <tab_name value="http://stackoverflow.com/questions/15680013/test2"/> <region_timezone value="http://stackoverflow.com/questions/15680013/1"/> <registrationstatus value="http://stackoverflow.com/questions/15680013/2"/> <eventstatus value="http://stackoverflow.com/questions/15680013/2"/> <dist_activity value="http://stackoverflow.com/questions/15680013/5"/> <dist_activity value="http://stackoverflow.com/questions/15680013/10069"/> <dist_activity value="http://stackoverflow.com/questions/15680013/10070"/> <dist_region value="http://stackoverflow.com/questions/15680013/4457"/> <dist_region value="http://stackoverflow.com/questions/15680013/7140"/> <dist_region value="http://stackoverflow.com/questions/15680013/5069"/> </tab_id> </product_id></products>\[/code\]
i have two array value \[code\]One Day\[/code\] & \[code\]Irungattukottai\[/code\] i want to try check this both in to region.xml if both are exit then take there \[code\]entity_id\[/code\] and check into product.xml
if this both entity_id is exit in product.xml then return \[code\]product_id\[/code\] attribute value.
\[code\]One Day\[/code\] is on my \[code\]$event\[/code\] and \[code\]Irungattukottai\[/code\] is \[code\]$region\[/code\]
thanks...