Are XML parser and XML processor are two different things? Do they two different jobs?
4 Answers
XML parser and XML processor are the same. It is not applied to another languages. XML is universal data markup language. And parsing XML file already means processing it.
And on another hand processing of XML file means feed up some XML application. Nothing except parsing is not need for it.
Look https://en.wikipedia.org/wiki/XML#Key_terminology
UPD: If you assume "parsing" is syntactic analyzing then it is a "processing". Because XML statements do not make sense by themselves.
2 Comments
"Parser" is a general name people use to describe any kind of software that reads through a structured data representation. "Processor" is what the XML specification has decided to call that piece of software, maybe in an attempt to use a name that is a bit less generic than "XML parser". so while you might say that these things are the same, if you are a standards person, you might want to call it "processor", but if you want to talk to regular programmers and developers, describing it as a "parser" will help them to understand what you're talking about. From the XML spec introduction:
- "[Definition: A software module called an XML processor is used to read XML documents and provide access to their content and structure.] [Definition: It is assumed that an XML processor is doing its work on behalf of another module, called the application.] This specification describes the required behavior of an XML processor in terms of how it must read XML data and the information it must provide to the application."
Comments
Yes, an XML parser and an XML processor are the same.
In the W3C Extensible Markup Language (XML) Recommendation, the definitive authority of the XML standard, XML processor is the formal term used for an XML parser:
[Definition: A software module called an XML processor is used to read XML documents and provide access to their content and structure.] [Definition: It is assumed that an XML processor is doing its work on behalf of another module, called the application.]
[Emphasis added]
The process of read[ing] XML documents and provid[ing] access to their content and structure is precisely the process of parsing, which is done on behalf of an XML application.
You might use XML parser colloquially and XML processor more formally, but they are the same.
Comments
Appart from Formal definitions which merge the two definitions, it is possible to point some differences:
XML parser is an app/library able to read, analyze, and get the structure of XML input;
XML processor could be seen as a wider app/library, able to process more on a XML input: parse (like parser), modify, transform, select, delete, rewrite, output, using XPath and XSLT.