I have an XML file that I am trying to parse into my database, but am getting an error stating a certain field exceeds my max character count (2000). I've identified the field in question, but don't have a row number in my error, so I have to find and delete the offender(s) in the XML itself.
Below is a sample. I need to find any entries where the characters between the first occurrence of "CCCStmts Correction" and "RoAmts" is over 2000 characters. I'm using Notepad++ and can only think this will work with regex. Ideas?
<CCCStmts Correction="sample text" />
<CCCStmts Correction="sample text" />
<CCCStmts Correction="sample text" />
<CCCStmts Correction="sample text" />
<CCCStmts Correction="sample text" />
<CCCStmts Correction="sample text" />
<CCCStmts Correction="sample text" />
<RoAmts PayType="x" AmtType="x" TotalAmt="x" />