public static <T> List<T> parseListFrom(InputStream in, Schema<T> schema,
            XMLInputFactory inFactory) throws IOException
    {
        XMLStreamReader parser = null;
        try
        {
            parser = inFactory.createXMLStreamReader(in);
            return parseListFrom(parser, schema);
        }
        catch (XMLStreamException e)
        {
            throw new XmlInputException(e);
        }
        finally
        {
            if (parser != null)
            {
                try
                {
                    parser.close();
                }
                catch (XMLStreamException e)
                {
                    // ignore
                }
            }
        }
    }
Parses the {@code messages} from the {@link InputStream} using the given {@code schema}.
protostuff-xml/src/main/java/io/protostuff/XmlIOUtil.java