Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to compare 2 ClobDomains

John Ray Mendoza-OracleMay 23 2024 — edited May 23 2024

Hi Team, I have two ClobDomain attributes

1st is from EO

public ClobDomain getxml1(({

   return (ClobDomain)getAttributeInternal(XML1);

 }
EO.getxml1();
2nd is from VO (cached row)

VORow.getAttribute("xml2");
*VO also returns ClobDomain.*

When I try to compare both ClobDomains using below code,

EO.getxml().equals(VORow.getAttribute("xml2")); 

this returns true even if there is one tag in the ClobDomain that is totally different.
ex:xml1
<value>100</value>

xml2
<value>500</value>

I am able to print both ClobDomains and confirm their differences but I'm not sure how do I compare 2 ClobDomains.

Thanks in advance team.

This post has been answered by Timo Hahn on May 24 2024
Jump to Answer
Comments
Post Details
Added on May 23 2024
2 comments
212 views