I'm trying to load rss data from Wordpress into MarkLogic database. The data is in the form of following:
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0"
xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:wp="http://wordpress.org/export/1.2/">
<item>
<wp:post_id>1</wp:post_id>
<wp:post_title>title 1</wp:post_title>
<dc:creator>bob</dc:creator>
</item>
<item>
<wp:post_id>2</title>
<wp:post_title>title 1</wp:post_title>
<dc:creator>john</dc:creator>
</item>
</rss>
However, when I run the mlcp command, I get following warning and data is not inserted into the database:
WARN mapreduce.ContentWriter: XDMP-DOCNONSBIND: No namespace binding for prefix wp
WARN mapreduce.ContentWriter: XDMP-DOCNONSBIND: No namespace binding for prefix dc
The mlcp command I used is:
./mlcp.sh import -host localhost -port 8088 -username admin -password admin -input_file_path data.xml -mode local -input_file_type aggregates -aggregate_record_element item -aggregate_uri_id post_id -output_uri_prefix /resources/ -output_uri_suffix .xml
Any idea how I can fix this?
Thank you!
Seong