Hypothetically, if I were to write a full-fledged XML Parser(Search through large XML documents, take user input and search for that, but without a GUI), which language would work best? I've heard that functional programming is good for this job and since Erlang is good to me, it would work. But I also know that scripting languages are better at text processing, Python is my favorite language overall, so that would work out too. But the OO concept is good when making a application so C# or C++ might do the job also.
But this is all hypothetical and right now I'm probably not at a high enough level to make something like that. But I still do want to know what your guys opinions are.
Hypothetical XML Parser
Page 1 of 15 Replies - 2450 Views - Last Post: 27 October 2011 - 08:18 AM
Replies To: Hypothetical XML Parser
#2
Re: Hypothetical XML Parser
Posted 25 October 2011 - 05:05 PM
It up to you if want to write a XML parser.
The current support for XML in the .net languages is very good, but vb.net (since vb2008) has the best support for XML of them because it has XML Literals embedded in it language grammar.
The current support for XML in the .net languages is very good, but vb.net (since vb2008) has the best support for XML of them because it has XML Literals embedded in it language grammar.
#3
Re: Hypothetical XML Parser
Posted 26 October 2011 - 12:32 AM
Don't write an XML parser. Any language you use is likely to have a stable and mature XML parser somewhere already. Furthermore, VB.NET's xml literals will do fuck-all for parsing xml.
#4
Re: Hypothetical XML Parser
Posted 26 October 2011 - 10:05 AM
Quote
But I also know that scripting languages are better at text processing, Python is my favorite language overall, so that would work out too. But the OO concept is good when making a application so C# or C++ might do the job also.
Python is an OO language, among other things. Arguably, it's more OO than either C++ or C#.
#5
Re: Hypothetical XML Parser
Posted 26 October 2011 - 11:12 AM
If you want to write an XML parser, write an XML parser. It's good practice, and it'll help you appreciate why it's better to use existing code, and to fix it where it's broken, than to start from scratch.
Any language that can read and write files and generate a tree structure can parse XML, so all of the ones you've mentioned will work.
Any language that can read and write files and generate a tree structure can parse XML, so all of the ones you've mentioned will work.
#6
Re: Hypothetical XML Parser
Posted 27 October 2011 - 08:18 AM
Raynes, on 26 October 2011 - 02:32 AM, said:
Furthermore, VB.NET's xml literals will do fuck-all for parsing xml.
That's a good point. They'll allow you to construct XML, or query XML that's already been parsed, but it won't do anything to actually take the XML from the text file and parse through it.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote






|