[MarkLogic Dev General] how to iterate over documents in anesteddirectory structure

Coarr, Matt mcoarr at mitre.org
Tue Nov 27 11:51:31 PST 2007


Hey Edgar,
 
Awesome!  That's very close to what I need!
 
I'm trying to figure out some perl to get this to work on a series of
deeply nested tables that may or may not have any xml files. Right now
I am calling recordloader once per directory, but it is hanging on
directories that do not contain any xml files (it's trying to read from
stdin)
 
Matt


________________________________

	From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of Schouten,
Edgar J. (RB-NL)
	Sent: Tuesday, November 27, 2007 11:02
	To: General Mark Logic Developer Discussion
	Subject: RE: [MarkLogic Dev General] how to iterate over
documents in anesteddirectory structure
	
	
	Hi Matt,
	 
	I use recordloader to load all documents in subdirectory X from
	I use a batchfile with a recursive-directory loop like 
	FOR /R . %i IN (.) DO CALL recordloader [parameters]
	 
	
http://developer.marklogic.com/howto/tutorials/2006-06-recordloader.xqy
	 
	Regards
	EdgarS

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20071127/3b2435b6/attachment.html


More information about the General mailing list