I want to compare node like below. Deep-equal will give me true or false
(for below case, it will give false)

I want it to return me true if it matches more than 50% of item nodes
(for below case, it is matching 3 item nodes so it should return me
true)

 

Is there any way I can do that?

 

<List xmlns="http://www.mynamespace.com/report/1";>

       <item>

              <term1>a b c</term1> 

              <term2>key1</term2> 

       </item>

       <item>

              <term1>d e f</term1> 

              <term2>key2</term2> 

       </item>

       <item>

              <term1>g h i.</term1> 

              <term2>key3</term2> 

       </item>

       <item>

              <term1>j k l</term1> 

              <term2>key4</term2> 

       </item>

       <item>

              <term1>m n o</term1> 

              <term2>key5</term2> 

       </item>

</List>

 

<List xmlns="http://www.mynamespace.com/report/1";>

       <item>

              <term1>a b c</term1> 

              <term2>key1</term2> 

       </item>

       <item>

              <term1>d e f</term1> 

              <term2>key2</term2> 

       </item>

       <item>

              <term1>g h i.</term1> 

              <term2>key6</term2> 

       </item>

       <item>

              <term1>j k l</term1> 

              <term2>key4</term2> 

       </item>

</List>

 

Regards

 

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to