[wpkg-users] [Bug 285] wpkg.xml not valid under some circumstances.

Keith Jones K.E.Jones at brighton.ac.uk
Fri May 23 00:43:17 CEST 2014


>-----Original Message-----
>From: wpkg-users-bounces at lists.wpkg.org [mailto:wpkg-users-bounces at lists.wpkg.org] On Behalf Of Stefan Pendl
>Sent: 22 May 2014 21:42
>To: wpkg-users at lists.wpkg.org
>Subject: Re: [wpkg-users] [Bug 285] wpkg.xml not valid under some circumstances.
>
>Am 22.05.2014 16:10, schrieb Keith Jones:
>>   The single accidental double quote probably was encoded correctly as 
>> "e; (when initially saved to the settings file). But in the 
>> subsequent run, WPKG ended up with a raw quote somehow (possibly 
>> reading it from the package definition?). It was that raw quote that 
>> broke the x-path query  and proved to be really hard to identify as a 
>> problem. I was expecting a more user friendly, "file not found" or 
>> "can't get file version" or "learn to type properly" etc  :-)
>>
>>   My suggested improvement and description sucked of course :-) All that code did was move the problem elsewhere.
>>
>>   I think I've found a way to code things but I appreciate that Rainer probably doesn't want to risk causing breakage at this level so I'll work on it and submit it once I've got it as good as I can.
>>   
>
>I have always found an XML validator to be of reasonable help, when writing XML files manually.
>
>Notepad++ has a working add on, so you might want to switch to a XML editor with validation.
>
>
>--
>Stefan P.

Hiya Stefan,

NP++. Same here!! It's a brilliant all-round editor of scripts, code and even the odd bit of hex editing. 

I use Nicolas' "XML Tools" add-in on a regular basis for editing WPKG files and pretty-printing them. I haven't
used them to validate my files to the XSD yet though. The DSpell add-in might have been the one that "corrected" your name earlier today.
I'm stuck with Outlook as the corporate e-mail client so I can't quote responses easily. I use NP++ in column mode to add indents and
respond properly to e-mails and posts where netiquette counts . It's not perfect  :-/

Strangely enough,  I sent a PM to Nicholas about some quotation quirks affecting "pretty printing" a while back. I had a bunch of
XML files that needed editing and (for a change) they had nicely matching quotes. If you had "' then it indented correctly, if you had '" the
Indentation just drifted off to the right infinitely.  I get the same effect if I "pretty print" WPKG XML files where I'm using the
lazy method

Do you get the same?
 
Keith___________________________________________________________

___________________________________________________________
This email has been scanned by MessageLabs' Email Security
System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
___________________________________________________________



More information about the wpkg-users mailing list