[MarkLogic Dev General] using XQuery on Word documents
Yves Dolce
yvesdolc at hotmail.com
Mon Dec 10 14:26:33 PST 2007
This is a question that will have a simple answer. If only I knew more about XQuery...
If I run the following line in CQ:
xdmp:zip-get(doc("Contract.docx"), "customXml/item1.xml")
I get:
<Customer> <Date>2008-11-15T00:00:00</Date> <CompanyName>Bebop Corporation</CompanyName> <FirstName>Erick</FirstName> <LastName>Trojan</LastName> <SSN>1111-22-3333</SSN> <Address>Av. Revolucion 841, DF, CP 03910, Mexico</Address> <ContactTitle>Test Manager</ContactTitle> <Phone>+52 (55) 6666-66666</Phone> </Customer>
How should I express a query that essentially says: for each docx file in the DB, get me its customXml/item1.xml part, if it has one, and the <Date> element in it is greater than 1/1/2008.
Does my question make sense? Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20071210/f73d7dde/attachment.html
More information about the General
mailing list