Can someone please explain the details of a XML parser? I know that it make a raw XML document available for application. I was wondering the generic interpratation of a parser. Is it like a compiler?
posted 15 years ago
Adrian, To answer your question is an XML parser like a compiler? Yes and no. Yes, because a compiler contains a parser component to parse the source file. No, because a compiler also contains another component that takes the parsed token and converts them to bytecode (JAVA) or machine code (C/C++). An XML parser doesn't have any such component. It doesn't do anything with the parsed token from your XML document. It doesn't know what to do with them. Only you as the programmer know what you're going to do with the parsed XML document token. -Peter