[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Parsing XML with anything but

  • From: Gareth Oakes <goakes@gpslsolutions.com>
  • To: "ihe.onwuka@gmail.com" <ihe.onwuka@gmail.com>
  • Date: Mon, 9 Dec 2013 12:41:02 -0800

Re:  Parsing XML with anything but
I have seen this pattern of behaviour goodness knows how many times. I present my grand theory for this, in the form of a story…

Imagine you are not an A-grade software developer. You probably haven’t completed a formal Software Engineering or Computer Science degree. You have meddled with computers enough to be dangerous. You got a job as a web developer or “programmer” (using PHP, Visual Basic, maybe even .NET).

Your learning involves taking some beginner course you googled up. You don’t have the inclination, patience or capability to fully understand your language of choice. You did however find Stack Overflow one day and it changed your life.

Now someone has presented you with these “XML” files to process. You’ve seen enough badmouthing on Stack Overflow to know that JSON is the way forward. So you roll your eyes and you open the XML file only to see these HTML-looking tags <p>…</p>. Piece of cake you think! But then you realise it is not HTML and you can’t use a web browser on it.

So you rummage in your toolbox and find regular expressions, which you know (from Stack Overflow reputation) are powerful for string handling. Within the first 5 minutes you have a working XML parser! This is clearly the easiest way to process the XML, so off you go, hacking and patching until your application (kind of) works.

During the course of your application maintenance cycle you are forever having to update your hand-rolled XML parser. There are so many stupid things XML allows people to do! No wonder everyone is moving to JSON, you think.

</story> :)

-Gareth

From: Ihe Onwuka <ihe.onwuka@gmail.com>
Reply-To: "ihe.onwuka@gmail.com" <ihe.onwuka@gmail.com>
Date: Monday, 9 December 2013 21:20
To: "xml-dev@l..." <xml-dev@l...>
Subject: Parsing XML with anything but

I have been tagsouping (thank you thank you John Cowan).

Beautiful Soup, which I first learnt of his on his website seems to be quite widely popular. In fact that rolling your own XML parser seems de-rigeur for each language community, even amongst communities that ought to know better (what terror could XSLT pose for a Haskell dev?) 

So why are people so determined to parse (XHT)ML with anything but the tools that God (....sorry I meant Dr K and co) blessed us with and what do they gain or lose from doing so.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.