in reply to Re: Parsing dodgy XML
in thread Parsing dodgy XML

Likelihood of refusing bad XML tends towards zero as desperation to win new business tends towards infinity....

I will be giving them an XSD and a small script to test validation, but if they (and 'they' are a national newspaper) use the current XML, then getting them to change it may prove difficult.

Replies are listed 'Best First'.
Re^3: Parsing dodgy XML
by merlyn (Sage) on Sep 20, 2006 at 15:42 UTC
      They're the client; it's your job to make them happy. If they don't want to give you XML, they don't have to.

      If you want to get paid, you have to deal with what you're given, not what you wish you were given.

        Tell them you must charge more to correct their mistakes in what is not quite XML. Or, which might sound better to them (but means the same), you give a discount when their XML is XML.

        There's a reason why the standard of XML is as intolerant to dodgy pseudo-XML, as it is: to enforce it to people in cases like this. Use that power. Point to the standard.

        You can do so once, twice, maybe more. When things go bad it is always good to have stated "there is a risk". It is the clients job to decide to take the risk or not to take it. Clients don't know what they want. If you want to deliver real good work, you tell them what they might want and then go to work.