Maybe my fault, I don't think I packaged the dll in a parent folder.
As scott says, create a folder called xTopPicks and place the dll in there... I'll repackage when I get scotts bug done
defrag wrote:Maybe my fault, I don't think I packaged the dll in a parent folder.
As scott says, create a folder called xTopPicks and place the dll in there... I'll repackage when I get scotts bug done
defrag wrote:v1.6 now out - link in first post - should do the trick scott - even tested it with track lengths!!!! (Now I have the top 20 shortest tracks.... )
defrag wrote:Phew!!! I did a bit extra with the numerical one too, if you add a field that has non-numerical characters such as time e.g. 1:53 etc it strips out all non numeric characters allowing you to do the sort - hence my top list of short tracks
Enjoy... been a bit of a marathon this one
S Pittaway wrote:its a really useful plugin defrag, cheers
i have to ask 1 question tho...
...how the hell do you parse the databases so quicky?
i seam to hit refresh and its done in next to no time, when i parse a db in xDatabase it seems to take a damm site longer!
XmlDocument inDoc = new XmlDocument();
Utils.LoadCategory(inDoc, c.BaseCatName);
// this next bit is in the above Utils function
// add an index tag to each item
XmlNodeList xNodes = xDoc.DocumentElement.SelectNodes("//item");
if (xNodes.Count > 0)
{
for (int i = 0; i < xNodes.Count; i++)
{
XmlAttribute xAtt = xDoc.CreateAttribute("id");
xAtt.Value = i.ToString();
xNodes[i].Attributes.Append(xAtt);
}
}
// I then create xpath to get the field data
string xpath = "//item[" + c.XPathFieldName() + "/text() != '']";
XmlNodeList xNodes = inDoc.SelectNodes(xpath);
//
for (int i = 0; i < xNodes.Count; i++)
{
string data = xNodes[i].SelectSingleNode(c.XPathFieldName()).InnerText;
// the rest populates arrays for sorting
}
S Pittaway wrote:would it be posible to mod the plugin so you can run it against a database more than once?