@@ -0,0 +1,1007 @@
+/*%0A * Copyright (c) 2003-2012 MarkLogic Corporation. All rights reserved.%0A */%0Apackage com.marklogic.mapreduce;%0A%0Aimport java.io.DataInput;%0Aimport java.io.DataOutput;%0Aimport java.io.IOException;%0A%0Aimport org.apache.hadoop.io.Text;%0Aimport org.apache.hadoop.io.Writable;%0A%0A/**%0A * This is just a wrapper of Text, meant to be differentiated from Text by name%0A * only to represent XML in serialized form.%0A * %0A * @author jchen%0A */%0Apublic class SerializedXML implements Writable %7B%0A    private Text content;%0A    %0A    public SerializedXML()%7B%0A    %7D%0A    %0A    public SerializedXML(Text content) %7B%0A        this.content = content;%0A    %7D%0A    %0A    public Text getContent() %7B%0A        return content;%0A    %7D%0A    %0A    public void setContent(Text content) %7B%0A        this.content = content;%0A    %7D%0A%0A    @Override%0A    public void readFields(DataInput in) throws IOException %7B%0A        content.readFields(in);     %0A    %7D%0A%0A    @Override%0A    public void write(DataOutput out) throws IOException %7B%0A        content.write(out);      %0A    %7D%0A%7D%0A

Add support for mixed document type of documents from MarkLogic.