In order to adapt different languages and platforms, the paper discusses how to process and validate IDL symbol table and intermediate code by XML API. It puts emphasis on IDL API extension towards DOM API based on the idea of combining XML with IDL compilers. At last, the IDL compiler designing framework based on XML API is given, in which compiler front end can be managed and validated by some XML techniques and tools, IDL API can be validated on the basis of test, so IDL intermediate code is provided with maintainability, portability and generation. IDL compiler can be developed and extended by XML-based API, which realizes versatility and portability of modern compiler.The interface definition language (IDL) is a special-purpose language for describing the interfaces of a software component. From Distributed Computing Environment (DCE) to CORBA, DCOM and Java RMI use IDL to describe interface. Some IDL compilers have been developed over the past ten years, such as Flick [1] , IDL2WSDL [2] and MICO [3] . There are many compiling code production tools, such as JavaCC (a Java parser generator) and SableCC (an LALR (1) parser and AST builder generator) [4] . JavaCC provides a lot of modern grammars, such as Java, HTML and C/C++ [5] , which is the reason why it is widely used in compiler development. For example, it has developed the IDL compiler based on CORBA, which accepts an IDL interface specification and outputs an implementation of the specification. Typically, its implementation is a set of data type declarations, stubs of Client and skeletons of Server written in a conventional programming language, such as C, C++ or Java.On the other hand, XML is a kind of flexible exchange format that can represent many classes of data, including semi-structured records, structured documents and heterogeneous data. The increasing importance of XML as a data representation format leads to several proposals for facilitating the development of applications that operate on XML data. These proposals range from API-based interfaces to XML-based programming languages. However there are few reports about XML in IDL compiler development. GCCXML Kitware project [6] , where XML is adopted to output procedural information. It uses gcc_xml as preprocessor based on the GNU C++