Gozi Posted October 1, 2010 Report Share Posted October 1, 2010 Hi, this is the output for an exported job. XML encoding seems not to work correctly. Can anyone confirm? Greetings Gozi <?xml version='1.0' encoding='utf-8'?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="4499f9bc-dbe0-4c78-a4a2-01a9fea07b35"> <SourceTemplate><?xml version="1.0" encoding="utf-8"?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <WebsiteUrl><placeholder name="Enter the Softopedia url" value="http://www.softpedia.com/get/Internet/Other-Internet-Related/WGET.shtml" /></WebsiteUrl> <UserNotes></UserNotes> <LastFileSize>106681</LastFileSize> <LastFileDate>2010-09-26T23:50:38.7502</LastFileDate> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator /> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer>http://www.softpedia.com/</HttpReferer> <Variables> <item> <key> <string>InfoPage</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{property:WebsiteUrl}</TextualContent> <Name>InfoPage</Name> </UrlVariable> </value> </item> <item> <key> <string>APPName</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>Here are some key features of "([\S\W]*)":</Regex> <Url>{InfoPage}</Url> <Name>APPName</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex><title>Download {APPName} ([\s\d\w.]*) Free</Regex> <Url>{InfoPage}</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>GetDownloadLink</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex><a href="([^\s]*)" title="Download </Regex> <Url>{InfoPage}</Url> <Name>GetDownloadLink</Name> </UrlVariable> </value> </item> <item> <key> <string>GetFileLink</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex><a href="([^\s]*)" title="Download </Regex> <Url>{GetDownloadLink}</Url> <Name>GetFileLink</Name> </UrlVariable> </value> </item> <item> <key> <string>GetRedirect</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex> If it doesn't, please <a href="([\d\s\w\S]*)" rel</Regex> <Url>{GetFileLink}</Url> <Name>GetRedirect</Name> </UrlVariable> </value> </item> <item> <key> <string>GetSSLink</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>href="http://www.softpedia.com/progScreenshots/([^\s]*)"</Regex> <Url>{InfoPage}</Url> <Name>GetSSLink</Name> </UrlVariable> </value> </item> <item> <key> <string>GetSSImage</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>href="http://www.softpedia.com/screenshots/([^\s]*)"</Regex> <Url>http://www.softpedia.com/progScreenshots/{GetSSLink}</Url> <Name>GetSSImage</Name> </UrlVariable> </value> </item> <item> <key> <string>ImageLink</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://www.softpedia.com/screenshots/{GetSSImage}</TextualContent> <Name>ImageLink</Name> </UrlVariable> </value> </item> <item> <key> <string>SetUserNotes</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>class="KonaBody"> ([\w\s\d\W]*) \[</Regex> <Url>{GetDownloadLink}</Url> <Name>SetUserNotes</Name> </UrlVariable> </value> </item> <item> <key> <string>url</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{GetRedirect}</TextualContent> <Name>url</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand>wget {ImageLink} -O "{2DIR}\{appname}.{GetSSImage:split:.:1}" echo "{SetUserNotes}">"{2DIR}\{appname}.info"</ExecuteCommand> <ExecutePreCommand></ExecutePreCommand> <Category> Tools</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation>q:\Software\WGET_1.5.3.1.zip</PreviousLocation> <DeletePreviousFile>false</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2010-09-26T23:50:38.7502</LastUpdated> <TargetPath>{2DIR}\{appname}_{version}.{url:ext}</TargetPath> <FixedDownloadUrl>{url}</FixedDownloadUrl> <Name><placeholder name="Enter desired application name" regex="(Name:trimend:.)" value="wgett" /></Name> </ApplicationJob> </Jobs></SourceTemplate> <WebsiteUrl>http://www.softpedia.com/get/Internet/Other-Internet-Related/WGET.shtml</WebsiteUrl> <UserAgent /> <UserNotes /> <LastFileSize>106681</LastFileSize> <LastFileDate>2010-09-26T23:50:38.7502</LastFileDate> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator /> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer>http://www.softpedia.com/</HttpReferer> <SetupInstructions /> <Variables> <item> <key> <string>InfoPage</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{property:WebsiteUrl}</TextualContent> <Name>InfoPage</Name> </UrlVariable> </value> </item> <item> <key> <string>APPName</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>;">([\S^/]+) description<</Regex> <Url>{InfoPage}</Url> <Name>APPName</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex><title>Download {APPName} ([\s\d\w.]*) Free</Regex> <Url>{InfoPage}</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>GetDownloadLink</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex><a href="([^\s]*)" title="Download </Regex> <Url>{InfoPage}</Url> <Name>GetDownloadLink</Name> </UrlVariable> </value> </item> <item> <key> <string>GetFileLink</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex><a href="([^\s]*)" title="Download </Regex> <Url>{GetDownloadLink}</Url> <Name>GetFileLink</Name> </UrlVariable> </value> </item> <item> <key> <string>GetRedirect</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex> If it doesn't, please <a href="([\d\s\w\S]*)" rel</Regex> <Url>{GetFileLink}</Url> <Name>GetRedirect</Name> </UrlVariable> </value> </item> <item> <key> <string>GetSSLink</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>href="http://www.softpedia.com/progScreenshots/([^\s]*)"</Regex> <Url>{InfoPage}</Url> <Name>GetSSLink</Name> </UrlVariable> </value> </item> <item> <key> <string>GetSSImage</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>href="http://www.softpedia.com/screenshots/([^\s]*)"</Regex> <Url>http://www.softpedia.com/progScreenshots/{GetSSLink}</Url> <Name>GetSSImage</Name> </UrlVariable> </value> </item> <item> <key> <string>ImageLink</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://www.softpedia.com/screenshots/{GetSSImage}</TextualContent> <Name>ImageLink</Name> </UrlVariable> </value> </item> <item> <key> <string>SetUserNotes</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>class="KonaBody"> ([\w\s\d\W]*) \[</Regex> <Url>{GetDownloadLink}</Url> <Name>SetUserNotes</Name> </UrlVariable> </value> </item> <item> <key> <string>url</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{GetRedirect}</TextualContent> <Name>url</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand>wget {ImageLink} -O "{2DIR}\{appname}.{GetSSImage:split:.:1}" echo "{SetUserNotes}">"{2DIR}\{appname}.info"</ExecuteCommand> <ExecutePreCommand /> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <Category> Tools</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation>q:\Software\WGET_1.5.3.1.zip</PreviousLocation> <DeletePreviousFile>false</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2010-09-26T23:50:38.7502</LastUpdated> <TargetPath>{2DIR}\{appname}_{version}.{url:ext}</TargetPath> <FixedDownloadUrl>{url}</FixedDownloadUrl> <Name>wgett</Name> </ApplicationJob> </Jobs> Link to comment Share on other sites More sharing options...
floele Posted October 1, 2010 Report Share Posted October 1, 2010 Perfectly fine The first part of the encoding is the source template, which is "XML in XML" and thus needs to be encoded. Link to comment Share on other sites More sharing options...
josh Posted October 1, 2010 Report Share Posted October 1, 2010 Hi, I am almost afraid to ask... what did you do ??? :-) Link to comment Share on other sites More sharing options...
shawn Posted October 2, 2010 Report Share Posted October 2, 2010 I have a request. I know it's kinda late (already being beta), but maybe not too late in the game. The entity-encoding of the template is (IMHO) the wrong way to do this. It would be far more portable and externally (such as thru batch, shell, vbs and so on) if you used XML CDATA blocks to store the exact template, so no interpretation, reformatting or entity-encoding is required externally when automating data manipulation. Link to comment Share on other sites More sharing options...
floele Posted October 2, 2010 Report Share Posted October 2, 2010 I can do that for the next beta. Remember though, that all existing XML files with a non CDATA section will no longer work. Link to comment Share on other sites More sharing options...
shawn Posted October 3, 2010 Report Share Posted October 3, 2010 I can cope with that - but I hope the others will forgive me. Link to comment Share on other sites More sharing options...
CybTekSol Posted October 3, 2010 Report Share Posted October 3, 2010 I can do that for the next beta. Remember though, that all existing XML files with a non CDATA section will no longer work. Detailed instructions for converting old templates for compatibility... PLEASE! Link to comment Share on other sites More sharing options...
floele Posted October 4, 2010 Report Share Posted October 4, 2010 Not relevant for templates. Only app exports. 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