Hi Abishek,
Can you give us a bit more background on what you are trying to achieve with
these maps? Maps can be usefull from time to time, but for large scale data
lookups you might be better off with the index-backed search functionality
provided by MarkLogic Server..
Kind regards,
Geert
Va
Rojan,
You could try the MarkLogic XQuery Unit package, it's built with JUnit,
XML Unit and XCC.
http://developer.marklogic.com/code/xquery-unit
Just the trick.
Regards,
Charles
> Hi,
>
> I would like to do unit testing for my xquery code using junit.Kindly
> advice
> how we can write junit
Ambika,
You could also try XML Unit:
http://xmlunit.sourceforge.net/
Regards,
Charles
> Comparing XML files can be tricky because it depends on exactly what you
> want to compare.
>
> If you want an exact byte comparison (rarely) you can serialize the
> result to a string and use a byte compa
Hello All,
I went through quite a few threads in mark mail to learn about
how large an hierarchical structure can map:map accommodate. An eg. is this
thread where Jason talks
about having a Million document loaded into a hierarchical map in the
memory, assuming that this is just a stati
Comparing XML files can be tricky because it depends on exactly what you
want to compare.
If you want an exact byte comparison (rarely) you can serialize the
result to a string and use a byte compare or MD5.
Most likely you want some kind of semantic check where things that are
not considered 's
Consider xquery-unit: http://code.google.com/p/xquery-unit/updates/list which
has methods to build an ad-hoc xquery function call by adding import statements
etc. You can then test the result using XPath or any string based method.
Damon
From: general-boun...@developer.marklogic.com
[mailto:ge
Hi all,
I would like to test the output xml of the marklogic server with a xml file
in the file system using java Environment. I have converted the output from
the ML server into NodeList and then i am doing a comparison with the
existing xml file on the file system. Is this correct? Or do we have