@Override
            public int getFieldNumber(String name)
            {
                if (name.length() != 1)
                    return 0;

                switch (name.charAt(0))
                {
                    case 'n':
                        return 1;
                    case 'd':
                        return 2;
                    default:
                        return 0;
                }
            }
Testing for xml ser/deser against messages.

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