Aymen 385 Posted December 11, 2013 Author Report Share Posted December 11, 2013 aymen can you please send me again the email received after purchase with the download link !? ... made a HDD clone to change the drive with and SSD and lost outlook backups sorry for the trouble and thank you. Order Number : 5124426766 i PMed you the download link regards, Quote Link to post Share on other sites
Macster (UBotter Labs) 112 Posted December 11, 2013 Report Share Posted December 11, 2013 i PMed you the download link regards,thank you bud. you're the best can't wait to see some updates on this plug too... Quote Link to post Share on other sites
Tomas 0 Posted December 12, 2013 Report Share Posted December 12, 2013 I plan to buy. It works with Ubot 5? Quote Link to post Share on other sites
Macster (UBotter Labs) 112 Posted December 12, 2013 Report Share Posted December 12, 2013 I plan to buy. It works with Ubot 5?...didn't tried it in v.5 as i'm not using it but it should work though. Anyways, if you find a bug i'm sure aymen will fix it Quote Link to post Share on other sites
Aymen 385 Posted December 23, 2013 Author Report Share Posted December 23, 2013 Christmas promotion coupon code : CHRISTMAS25use before : 2013-12-31Description : 25% Off Product Quote Link to post Share on other sites
Bot-Factory 602 Posted February 22, 2014 Report Share Posted February 22, 2014 Table Issue? I just purchased this plugin and started playing around with it.I'm using the example script: plugin command("xml plugin.dll", "Create XML file", "{$special folder("Desktop")}\\newxml.xml", "accounts") { plugin command("xml plugin.dll", "XML Element", "element", "xxx") { plugin command("xml plugin.dll", "XML Child", "child1", "value1", "") plugin command("xml plugin.dll", "XML Child", "child2", "value2", "") plugin command("xml plugin.dll", "XML Child", "child3", "value3", "") plugin command("xml plugin.dll", "XML Child", "child2", "value2", "hans=44") plugin command("xml plugin.dll", "XML Child", "child2", "value2", "hans=44") }} Now I try to:plugin command("xml plugin.dll", "XML to Table", "{$special folder("Desktop")}\\newxml.xml", &table) But I only get: What am I doing wrong here?Dan Quote Link to post Share on other sites
Bot-Factory 602 Posted February 23, 2014 Report Share Posted February 23, 2014 Some additional questions: What's the difference between:xml parser and xml nodes values? Example:<?xml version="1.0"?><test> <Profile id="150" url="http://site.com/profile1"> <username image="http//imagepath/" userid="1254" profile="profileurl">Marko</username><username image="http//imagepath/" userid="222" profile="profileurl">Peter</username><username image="http//imagepath/" userid="333" profile="profileurl">Hannes</username> </Profile></test> How can I get the userid from the line with the Name "Hannes"? Getting it via the userid is no problem: alert($plugin function("xml plugin.dll", "$xml parser", $read file("d:/TestXml.xml"), "test/Profile/username[@userid=\'333\']", "InnerText")) But something like: alert($plugin function("xml plugin.dll", "$xml parser", $read file("d:/TestXml.xml"), "test/Profile/username[@InnerText=\'Hannes\']", "userid")) is not going to work. Thanks in advance for your helpDan Quote Link to post Share on other sites
Aymen 385 Posted February 23, 2014 Author Report Share Posted February 23, 2014 tag names have to be unique , i'm only seeing 3 columns , child1,child2,and child3 to check for innertext use text() , or "." exp: //myparent/mychild[text() = 'foo'] or //myparent/mychild[. = 'foo'] Quote Link to post Share on other sites
Bot-Factory 602 Posted February 23, 2014 Report Share Posted February 23, 2014 tag names have to be unique , i'm only seeing 3 columns , child1,child2,and child3 to check for innertext use text() , or "." exp: //myparent/mychild[text() = 'foo'] or //myparent/mychild[. = 'foo'] Awesome! Thanks Aymen! Do you have a replacement example? I need to modify different options within a XML file. But the file is relatively complicated with lots of childs and parameters. Dan Quote Link to post Share on other sites
Aymen 385 Posted February 23, 2014 Author Report Share Posted February 23, 2014 Awesome! Thanks Aymen! Do you have a replacement example? I need to modify different options within a XML file. But the file is relatively complicated with lots of childs and parameters. Dan Nope , sorry i don't have the example! regards Quote Link to post Share on other sites
whoami 26 Posted February 25, 2014 Report Share Posted February 25, 2014 Can Load XML File also load a URL API that gives me an XML? Quote Link to post Share on other sites
Aymen 385 Posted February 25, 2014 Author Report Share Posted February 25, 2014 Can Load XML File also load a URL API that gives me an XML?you can either use xml parser or xml nodes values functions to load xml text and parse it using xpath Quote Link to post Share on other sites
giganut 109 Posted March 18, 2014 Report Share Posted March 18, 2014 I just grabed the plugin, thanks Aymen is 1.4.0.0 the current version? Quote Link to post Share on other sites
Aymen 385 Posted March 18, 2014 Author Report Share Posted March 18, 2014 I just grabed the plugin, thanks Aymen is 1.4.0.0 the current version?Yea that's the latest version Quote Link to post Share on other sites
Aymen 385 Posted March 19, 2014 Author Report Share Posted March 19, 2014 XML plugin update V 1.5- Added ability to modify xml attributes (change xml attributes command)- Added Json to Xml function ($json to xml) example attached below to show you how to change options.Xml (for plugins enabling/disabling) to enable/disable plugins change xml attribute.ubot Quote Link to post Share on other sites
Bot-Factory 602 Posted March 19, 2014 Report Share Posted March 19, 2014 XML plugin update V 1.5 - Added ability to modify xml attributes (change xml attributes command)- Added Json to Xml function ($json to xml) example attached below to show you how to change options.Xml (for plugins enabling/disabling) to enable/disable pluginsAwesome Aymen! Thanks a lot for that update! Dan Quote Link to post Share on other sites
Bliss 194 Posted March 20, 2014 Report Share Posted March 20, 2014 XML plugin update V 1.5 - Added ability to modify xml attributes (change xml attributes command)- Added Json to Xml function ($json to xml) example attached below to show you how to change options.Xml (for plugins enabling/disabling) to enable/disable plugins nice update Aymen Ty Quote Link to post Share on other sites
orbital 15 Posted May 20, 2014 Report Share Posted May 20, 2014 Does anyone know what is wrong here. It only selects the first campaign element. I have tried it a couple of different ways Here is the xml <?xml version="1.0"?> <Root> <Campaign> <name>eyecream</name> <MaxPages>20</MaxPages> <ASIN>123456789</ASIN> </Campaign> <Campaign> <Name>legcream</Name> <MaxPages>20</MaxPages> <ASIN>987654321/ASIN> </Campaign> </Root> I tried the following: set(#xml content, $read file("{$special folder("Application")}\\campaignInfo.xml"), "Global") add list to list(%Campaign Names, $list from text($plugin function("xml plugin.dll", "$xml parser", #xml content, "/Root/Campaign/name", "InnerText"), $new line), "Delete", "Global") but that only gets me the first campaign/name and not both like expected I have also tried: <?xml version="1.0"?> <Root> <Campaign name=eyecream> <MaxPages>20</MaxPages> <ASIN>B00123456</ASIN> </Campaign> <Campaign name=legcream> <MaxPages>20</MaxPages> <ASIN>B00987654</ASIN> </Campaign> </Root> and then tried the xpath: @name then innertext which should in theory get all the attributes with name but it doesn't so I tried /Root/Campaign/@name and that only gets me the first one as well. How do I get all the elements with either the name attribute or the name child node under campaign? Thanks Quote Link to post Share on other sites
Bot-Factory 602 Posted May 20, 2014 Report Share Posted May 20, 2014 Does anyone know what is wrong here. It only selects the first campaign element. I have tried it a couple of different ways Here is the xml <?xml version="1.0"?> <Root> <Campaign> <name>eyecream</name> <MaxPages>20</MaxPages> <ASIN>123456789</ASIN> </Campaign> <Campaign> <Name>legcream</Name> <MaxPages>20</MaxPages> <ASIN>987654321/ASIN> </Campaign> </Root> I tried the following: set(#xml content, $read file("{$special folder("Application")}\\campaignInfo.xml"), "Global") add list to list(%Campaign Names, $list from text($plugin function("xml plugin.dll", "$xml parser", #xml content, "/Root/Campaign/name", "InnerText"), $new line), "Delete", "Global") but that only gets me the first campaign/name and not both like expected I have also tried: <?xml version="1.0"?> <Root> <Campaign name=eyecream> <MaxPages>20</MaxPages> <ASIN>B00123456</ASIN> </Campaign> <Campaign name=legcream> <MaxPages>20</MaxPages> <ASIN>B00987654</ASIN> </Campaign> </Root> and then tried the xpath: @name then innertext which should in theory get all the attributes with name but it doesn't so I tried /Root/Campaign/@name and that only gets me the first one as well. How do I get all the elements with either the name attribute or the name child node under campaign? Thanks The problem is in your XML code.In your first XML example. There is a < missing in front of the closing ASIN And your name tags are uppercase and lowercase. XML is case sensitive. So you need them upper or lowercase to get a match with a single query. Here's an example for the first one:set(#x, "<Root> <Campaign> <name>eyecream</name> <MaxPages>20</MaxPages> <ASIN>123456789</ASIN> </Campaign> <Campaign> <name>legcream</name> <MaxPages>20</MaxPages> <ASIN>987654321</ASIN> </Campaign></Root>", "Global")alert($plugin function("HTTP post.dll", "$xpath parser", #x, "//name", "InnerText", "XML")) Also in your second example the XML code is wrong. The name attribute needs to be in "" Change<Campaign name=eyecream> to<Campaign name="eyecream"> Example:set(#x, "<Root> <Campaign name=\"eyecream\"> <MaxPages>20</MaxPages> <ASIN>B00123456</ASIN> </Campaign> <Campaign name=\"legcream\"> <MaxPages>20</MaxPages> <ASIN>B00987654</ASIN> </Campaign></Root>", "Global")alert($plugin function("HTTP post.dll", "$xpath parser", #x, "//Campaign[@name=\'eyecream\']/ASIN", "InnerText", "XML")) CheersDan Quote Link to post Share on other sites
orbital 15 Posted May 20, 2014 Report Share Posted May 20, 2014 Thanks so much Dan, that is very helpful. Quote Link to post Share on other sites
Pete_UK 9 Posted September 24, 2014 Report Share Posted September 24, 2014 I'm having difficulty using this plugin with the XML files I'm getting from Amazon API's. See attached file. When I try XML to Table I only get 3 columns (see image) Code:plugin command("xml plugin.dll", "XML to Table", "C:\\Users\\Pete\\Desktop\\ubot.xml", &myXML) http://screencast.com/t/CVpnomHq7zcc Also, I can't figure out how I would select an element such as SalesRank from the XML file. Any help would be appreciated.ubot.xml Quote Link to post Share on other sites
Aymen 385 Posted September 25, 2014 Author Report Share Posted September 25, 2014 such xml documents with no exact nodes pattern are not table friendly , i would suggest instead to use $xml nodes values function to get the values you needexampleset(#nodes, $plugin function("xml plugin.dll", "$xml nodes values", #xml doc, "//SalesRank/Rank", "InnerText"), "Global") It will then give you all the ranks in the xml document! Quote Link to post Share on other sites
Pete_UK 9 Posted September 25, 2014 Report Share Posted September 25, 2014 Thanks for taking a look Aymen. Does the XML NODES VALUES bring back data for you? When I run it I get nothing. http://screencast.com/t/vKDVIW1Ls5tj set(#xml doc, $read file("C:\\Users\\Pete\\Desktop\\ubot.xml"), "Global")set(#nodes, $plugin function("xml plugin.dll", "$xml nodes values", #xml doc, "//SalesRank/Rank", "InnerText"), "Global")add list to list(%qwe, $plugin function("xml plugin.dll", "$xml nodes values", #xml doc, "//SalesRank/Rank", "InnerText"), "Delete", "Global") Quote Link to post Share on other sites
Pete_UK 9 Posted September 25, 2014 Report Share Posted September 25, 2014 Not sure is this is a bug Aymen. A bit of trial and error with the XML file shows that the plugin doesn't like the defined default namespace on the 2nd line... <?xml version="1.0"?><GetMatchingProductResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01"><GetMatchingProductResult ASIN="B00DY1WVNQ" status="Success"> <Product> <Identifiers> <MarketplaceASIN> <MarketplaceId>ATVPDKIKX0DER</MarketplaceId> <ASIN>B00DY1WVNQ</ASIN> </MarketplaceASIN> </Identifiers> <SalesRankings> <SalesRank> <ProductCategoryId>toy_display_on_website</ProductCategoryId> <Rank>22212</Rank> </SalesRank> <SalesRank> <ProductCategoryId>toy_display_on_website</ProductCategoryId> <Rank>22212</Rank> </SalesRank> </SalesRankings> </Product></GetMatchingProductResult><GetMatchingProductResult ASIN="B004NXG9IC" status="Success"></GetMatchingProductResult></GetMatchingProductResponse> Can to plugin handle NameSpaces? Quote Link to post Share on other sites
Aymen 385 Posted September 25, 2014 Author Report Share Posted September 25, 2014 if the parsing is not picking anything , that means something is off about the xml document structure , could be the namespace , i'll investigate about this and let you know! Regards Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.