I have a very large file that is not on the same box as the Marklogic server. Putting the file on the same server is not an option.
What is the best way to load the file into the database? I'm thinking that a SAX
parser could pick off nodes and load them into the database.
<a>
<b>xxx</b>
<b>yyy</b>
<b>zzz</b>
</a>
So, using the above xml I'd create a document in Marklogic containing .
Then, using the SAX
parser, I'd grab the first <b>
element and insert it as child of <a>
. I'd repeat for all remaining <b>
elements.
Does that sound like the best approach? Would it be performant?
TIA