@Override
    public <T> T mergeObject(T value, final Schema<T> schema) throws IOException
    {
        emptyMessage = nextTag() == END_ELEMENT;

        if (value == null)
            value = schema.newMessage();

        schema.mergeFrom(this, value);

        if (!schema.isInitialized(value))
            throw new UninitializedMessageException(value, schema);

        // onto the next
        nextTag();

        return value;
    }
An input used for reading data with xml format.

@author David Yu
@created May 24, 2010
protostuff-xml/src/main/java/io/protostuff/XmlInput.java