I assume you're asking about how to impose these constraints using XML Schema?
1. (I assume by "I want get" you mean "I won't get"). There's no such thing as an empty integer so you don't need to prevent it. You can prevent an empty string using <xs:minLength value="1"/>
2. <xs:pattern value="[A-Z0-9][A-Z0-9]"/>
3. for string: maxLength. For integer, specify maxInclusive value="999999" say.
These are very basic questions, I'm surprised you found it difficult to find the answers. Don't try using XML Schema without a reference book on your desk - even experienced users find it hard to remember the syntax.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference