I have a java application where i can map a XSD type to another with same type. Now i have requirement to have one anyType xsd to which i can map any type. Like as we have O
You could use the xs:any element - this allows you to have a section of you schema that can contain any arbitrary XML.