appyface Posted May 27, 2011 Report Share Posted May 27, 2011 (edited) I have the same problem, I can't get this template to import. (I'm using Ketarin 1.6.0.b6 on Win7 Pro SP1 64-bit, in case that matters.) The original error seems to be that Ketarin is interpreting the </b> as the end of a tag, and sees it has no opening <b> tag. Since it's part of a regex Ketarin ought not to be checking tags...? Just for grins, to see if I could get the template imported, however corrupt. The regex line being complained about, is from this segment: <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(?:Version:</b>\s?)(\d+[\.\d+]+?.*?)(?:\s<|<)</Regex> <Url>http://download.cnet.com/{find}</Url> <Name>version</Name> </UrlVariable> </value> 1. I tried escaping the '/' in </b>. Ketarin complains the filename cannot start with a '/'. 2. I removed the escape and then removed the first '<'. Ketarin moves on to what is now position 61 and complains the filename cannot start with a '|'. 3. I remove the '|'. Ketarin complains the filename cannot start with what is now in 61, a '<'. 4. I remove the '<'. Ketarin complains the filename cannot start with what is now in 61, a ')'. 5. I remove the ')'. Ketarin complains the filename cannot start with what is now in 61, a '<'. 6. I remove the '<'. The template imports. Since I have no idea how this template works yet, or what that regex does, I've no idea what I've just done to the template or it's ability to do it's job. But it was a fun exercise :-) Kind regards, --appyface Edit: Well I played with the imported template and now I have my answer. The above surgery understandably b0rked the regex for the 'version' variable. Solution: Paste the original Regex into the Ketarin app's variable. Result: The app works :-) THANK YOU CybTekSol :-) I think we need Flo to weigh in on this one... How can we get Ketarin to ignore tags inside regex strings? Edited May 27, 2011 by appyface Link to comment Share on other sites More sharing options...
shawn Posted May 27, 2011 Report Share Posted May 27, 2011 The code should be generated correctly with < and > in place of < and > respectively. If that's not working for you, replace the < and > within the values with their entity encoded counterpart. Link to comment Share on other sites More sharing options...
appyface Posted May 27, 2011 Report Share Posted May 27, 2011 @shawn Please scroll up this page and examine the template CybTekSol provided -- the problem section is marked exactly as I posted it. Have a look? If CybTekSol didn't hand-edit that portion then Ketarin goofed the export... Kind regards, --appyface Link to comment Share on other sites More sharing options...
shawn Posted May 27, 2011 Report Share Posted May 27, 2011 That may be. Ketarin has had encoding issues in the past, but the current (beta) version exports this correctly. Link to comment Share on other sites More sharing options...
appyface Posted May 28, 2011 Report Share Posted May 28, 2011 And that may be. But, what I'm addressing are the latest posts -- people having problems importing the posted template. If you can't get it imported, you can't export it correctly, can you? The best resolution is to fix the posted template above. Can you take care of that, or ping CybTekSol or Flo to do it? Kind regards, --appyface Link to comment Share on other sites More sharing options...
CybTekSol Posted May 28, 2011 Author Report Share Posted May 28, 2011 I have corrected the issue with the template. It was exported with an earlier version of Ketarin and I can only assume it burped as I do not remember hand editing it. Link to comment Share on other sites More sharing options...
floele Posted May 28, 2011 Report Share Posted May 28, 2011 If you get such an error, just save the content you copy as new file with the extension .xml and open it in Internet Explorer. It will give you a probably better error message and tell you what part of the XML is wrong and needs to be corrected. Link to comment Share on other sites More sharing options...
UksusoFF Posted May 29, 2011 Report Share Posted May 29, 2011 thanks, now it's worked Link to comment Share on other sites More sharing options...
appyface Posted May 29, 2011 Report Share Posted May 29, 2011 @Flo I did open the template in an XML editor, actually. But I've not really used templates nor studied them, and the syntax coloring actually backed up Ketarin's error message -- that some tags were not complete pairs. Not much help for me, I'm afraid. Me, I just stumbled on in looking for a solution to a problem with CNET, found a template that looked promising, so I followed the instructions: Copy/paste/import :-) For some of us, those instructions didn't work out so well LOL @CybTekSol Thank you for permanently correcting the issue, so no one else will repeat the trouble we had with it. And it really does work a treat, thanks so much for sharing it :-D Kind regards, --appyface Link to comment Share on other sites More sharing options...
appyface Posted May 29, 2011 Report Share Posted May 29, 2011 > Your post should be approved(moderated) So I'm moderated now? What is THAT about? Link to comment Share on other sites More sharing options...
shawn Posted May 30, 2011 Report Share Posted May 30, 2011 It's about dealing with the spam on this forum. As posts are approved people will be added to a whitelist of sorts. Please have patience. As you know, the forum has come under a huge deluge of spam recently, and it really really needed to be dealt with. This is us dealing with it. Link to comment Share on other sites More sharing options...
floele Posted May 30, 2011 Report Share Posted May 30, 2011 @XML: If you give me the complete XML, I can tell you what is wrong. Otherwise I can only tell you that any XML Ketarin deals with needs to be well formed. @Approval: Fixed, should not be necessary for regular members. Link to comment Share on other sites More sharing options...
appyface Posted May 30, 2011 Report Share Posted May 30, 2011 @Flo The malformed XML has been there for your inspection all along -- in the template posted above by CybTekSol (which has now been fixed). Not sure why you didn't see it. And I repeated the faulty XML section in my post #26 above. Not sure why you didn't see that either? Kind regards, --appyface Link to comment Share on other sites More sharing options...
floele Posted May 30, 2011 Report Share Posted May 30, 2011 Hm, guess I didn't realise your post was actually new. I guess I lost track of this topic somewhat. Link to comment Share on other sites More sharing options...
CybTekSol Posted May 31, 2011 Author Report Share Posted May 31, 2011 @CybTekSol Thank you for permanently correcting the issue, so no one else will repeat the trouble we had with it. And it really does work a treat, thanks so much for sharing it :-D Kind regards, --appyface You're welcome appyface... sorry it took me so long to catch this had happened. Link to comment Share on other sites More sharing options...
CybTekSol Posted October 13, 2011 Author Report Share Posted October 13, 2011 CNET Download.com Template edited to reflect recent changes to their website. Hope everyone is doing well. Best Wishes, CybTekSol Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now