XML comparison failing on namespace URI not being mapped to any prefix

Hi all,
I have a little XML comparison tool called 'diffx'. I run it from the command line and when I give it 2 XML files it throws an exception stating:-
"namespace URI . . . has not been mapped to any prefix"
Can any one please take a look at the tool and see how I can get it to avoid this
Below is the two lines of XML it is comparing and the entire error message.
Many thanks in advance!!!

Error Message:-
                                            <executionDateTime><ins>2010-04-19T04:15:55Z</ins><del>201
0-03-24T16:51:46Z</del></executionDateTime>
                                com.topologi.diffx.xml.UndeclaredNamespaceException: The n
amespace URI "http://www.xxxx.org/2007/FpML-4" has not been mapped to any prefix.
        at com.topologi.diffx.xml.NSAwareXMLWriter.getQName(NSAwareXMLWriter.java:599)
        at com.topologi.diffx.xml.NSAwareXMLWriter.openElement(NSAwareXMLWriter.java:373)
        at com.topologi.diffx.event.impl.OpenElementEventNSImpl.toXML(OpenElementEventNSIm
pl.java:214)
        at com.topologi.diffx.format.SmartXMLFormatter.format(SmartXMLFormatter.java:203)
        at com.topologi.diffx.algorithm.DiffXFitopsy.process(DiffXFitopsy.java:304)
        at com.topologi.diffx.Main.diff(Main.java:314)
        at com.topologi.diffx.Main.diff(Main.java:289)
        at com.topologi.diffx.Main.main(Main.java:332)

XML lines that it is comparing:-
<trade xmlns="http://www.xxxx.org/2007/FpML-4">    (its the same in both XMl files)
paddykoolAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
Can you delete your duplicate you posted first?
0
paddykoolAuthor Commented:
Opps :(

Just realised that!!!
Apologies,  done
0
CEHJCommented:
Thanks.

If you look on the authors' homepage, you'll notice that they are quite modest. To cite Churchill, they've probably got much to be modest about if your earlier issue with the crimson parser is anything to go by.

My guess is that either they've not implemented namespaces or not implemented them properly and my advice is to follow their advice and use a better diff tool
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
paddykoolAuthor Commented:
All over it!!!
Just got another little tool that does the trick.
Many thanks for your help today :)
0
CEHJCommented:
:-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.