EDN Admin
Well-known member
The Google I/O 2011 Developer conference is here. As an Android developer, what sessions should you attend? Here are 10 you cant miss.
Hi
I have the follwing xml structure.<br/>
<resultSet><br/>
- <Record><br/>
<ROUTING_ID>R_1</ROUTING_ID> <br/>
<FIELD1>A833</FIELD1> <br/>
<SOURCE_INTERFACE_NAME>TF3</SOURCE_INTERFACE_NAME> <br/>
<RECEIPIENT_INTERFACE_NAME>CORAL</RECEIPIENT_INTERFACE_NAME> <br/>
<MESSAGE_TYPE>Account Entry Request</MESSAGE_TYPE> <br/>
<SOURCE_DESTINATION>AE.IN</SOURCE_DESTINATION> <br/>
<TARGET_DESTINATION>AE.OUT</TARGET_DESTINATION> <br/>
</Record><br/>
- <Record><br/>
<ROUTING_ID>R_2</ROUTING_ID> <br/>
<FIELD1>A833</FIELD1> <br/>
<FIELD2>ABC</FIELD2> <br/>
<SOURCE_INTERFACE_NAME>TF3</SOURCE_INTERFACE_NAME> <br/>
<RECEIPIENT_INTERFACE_NAME>CORAL</RECEIPIENT_INTERFACE_NAME> <br/>
<MESSAGE_TYPE>Limit Check Request</MESSAGE_TYPE> <br/>
<SOURCE_DESTINATION>LC.IN</SOURCE_DESTINATION> <br/>
<TARGET_DESTINATION>LC.OUT</TARGET_DESTINATION> <br/>
</Record><br/>
- <Record><br/>
<ROUTING_ID>R_3</ROUTING_ID> <br/>
<FIELD2>ABC</FIELD2><br/>
<FIELD3>DBN</FIELD3> <br/>
<SOURCE_INTERFACE_NAME>CORAL</SOURCE_INTERFACE_NAME> <br/>
<RECEIPIENT_INTERFACE_NAME>TF3</RECEIPIENT_INTERFACE_NAME> <br/>
<MESSAGE_TYPE>Customer Information</MESSAGE_TYPE> <br/>
<SOURCE_DESTINATION>ST.IN</SOURCE_DESTINATION> <br/>
<TARGET_DESTINATION>ST.OUT</TARGET_DESTINATION> <br/>
</Record><br/>
</resultSet>
The xml structure of the record <Record> can get vary since this is an output from data base.<br/>
As described in the strcutre the structure of three records are different.
The objective is to filter the record based on the passed values<br/>
For the 1st record I will pass A833 which is FIELD1 and MESSAGE_TYPE = Account Entry Request and the result should be 1st record
For the 2nd one I will pass <br/>
FIELD1 = A833 <br/>
FIELD2 = ABC<br/>
MESSAGE_TYPE = Account Entry Request Then I have to get 2nd record
For the 3rd one I will pass <br/>
FIELD2 = ABC <br/>
FIELD3 = DBN<br/>
MESSAGE_TYPE = Account Entry Request Then I have to get 3rd record
Can anyone comeup with a general xslt script for this. Note that the element under <Record> keeps on varying.
Regards
Smithesh
View the full article
Hi
I have the follwing xml structure.<br/>
<resultSet><br/>
- <Record><br/>
<ROUTING_ID>R_1</ROUTING_ID> <br/>
<FIELD1>A833</FIELD1> <br/>
<SOURCE_INTERFACE_NAME>TF3</SOURCE_INTERFACE_NAME> <br/>
<RECEIPIENT_INTERFACE_NAME>CORAL</RECEIPIENT_INTERFACE_NAME> <br/>
<MESSAGE_TYPE>Account Entry Request</MESSAGE_TYPE> <br/>
<SOURCE_DESTINATION>AE.IN</SOURCE_DESTINATION> <br/>
<TARGET_DESTINATION>AE.OUT</TARGET_DESTINATION> <br/>
</Record><br/>
- <Record><br/>
<ROUTING_ID>R_2</ROUTING_ID> <br/>
<FIELD1>A833</FIELD1> <br/>
<FIELD2>ABC</FIELD2> <br/>
<SOURCE_INTERFACE_NAME>TF3</SOURCE_INTERFACE_NAME> <br/>
<RECEIPIENT_INTERFACE_NAME>CORAL</RECEIPIENT_INTERFACE_NAME> <br/>
<MESSAGE_TYPE>Limit Check Request</MESSAGE_TYPE> <br/>
<SOURCE_DESTINATION>LC.IN</SOURCE_DESTINATION> <br/>
<TARGET_DESTINATION>LC.OUT</TARGET_DESTINATION> <br/>
</Record><br/>
- <Record><br/>
<ROUTING_ID>R_3</ROUTING_ID> <br/>
<FIELD2>ABC</FIELD2><br/>
<FIELD3>DBN</FIELD3> <br/>
<SOURCE_INTERFACE_NAME>CORAL</SOURCE_INTERFACE_NAME> <br/>
<RECEIPIENT_INTERFACE_NAME>TF3</RECEIPIENT_INTERFACE_NAME> <br/>
<MESSAGE_TYPE>Customer Information</MESSAGE_TYPE> <br/>
<SOURCE_DESTINATION>ST.IN</SOURCE_DESTINATION> <br/>
<TARGET_DESTINATION>ST.OUT</TARGET_DESTINATION> <br/>
</Record><br/>
</resultSet>
The xml structure of the record <Record> can get vary since this is an output from data base.<br/>
As described in the strcutre the structure of three records are different.
The objective is to filter the record based on the passed values<br/>
For the 1st record I will pass A833 which is FIELD1 and MESSAGE_TYPE = Account Entry Request and the result should be 1st record
For the 2nd one I will pass <br/>
FIELD1 = A833 <br/>
FIELD2 = ABC<br/>
MESSAGE_TYPE = Account Entry Request Then I have to get 2nd record
For the 3rd one I will pass <br/>
FIELD2 = ABC <br/>
FIELD3 = DBN<br/>
MESSAGE_TYPE = Account Entry Request Then I have to get 3rd record
Can anyone comeup with a general xslt script for this. Note that the element under <Record> keeps on varying.
Regards
Smithesh
View the full article