5 Replies - 4053 Views - Last Post: 27 October 2011 - 08:18 AM

#1 zem107  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 84
  • Joined: 10-April 11

Hypothetical XML Parser

Posted 25 October 2011 - 04:01 PM

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.

Is This A Good Question/Topic? 0
  • +

Replies To: Hypothetical XML Parser

#2 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2257
  • View blog
  • Posts: 9,450
  • Joined: 29-May 08

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.
Was This Post Helpful? 0
  • +
  • -

#3 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

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.
Was This Post Helpful? 0
  • +
  • -

#4 dorknexus  Icon User is offline

  • or something bad...real bad.
  • member icon

Reputation: 1256
  • View blog
  • Posts: 4,618
  • Joined: 02-May 04

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#.
Was This Post Helpful? 0
  • +
  • -

#5 jon.kiparsky  Icon User is online

  • Pancakes!
  • member icon


Reputation: 7653
  • View blog
  • Posts: 12,909
  • Joined: 19-March 11

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.
Was This Post Helpful? 0
  • +
  • -

#6 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4469
  • View blog
  • Posts: 7,783
  • Joined: 08-June 10

Re: Hypothetical XML Parser

Posted 27 October 2011 - 08:18 AM

View PostRaynes, 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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1