Jump to content
UBot Underground

Ubot XML plugin - Ubot Discount


Recommended Posts

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,

Link to post
Share on other sites
  • Replies 85
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Get and Store Data on the fly , harness the power of XML inside your bots. For the first time ever you are able to store your data in XML files , then get data directly or in a table plus much much mo

Wow!   Aymen, all I can say is Amen!   Good job!

not a big deal, but mine still says 1.0 after updating too, but the new command is in there... kinda wondering if maybe plugin developers could have an area here outside their sales threads for suppor

Posted Images

  • 2 weeks later...
  • 1 month later...

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:

xml.JPG

 

 

What am I doing wrong here?

Dan

post-1200-0-30024200-1393111678_thumb.jpg

Link to post
Share on other sites

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 help
Dan
Link to post
Share on other sites

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']

Link to post
Share on other sites

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

Link to post
Share on other sites

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

Link to post
Share on other sites

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

Link to post
Share on other sites
  • 3 weeks later...

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

Link to post
Share on other sites

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

Awesome Aymen! Thanks a lot for that update!

 

Dan

Link to post
Share on other sites

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

Link to post
Share on other sites
  • 2 months later...

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

Link to post
Share on other sites

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"))

 

Cheers

Dan

Link to post
Share on other sites
  • 4 months later...

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

Link to post
Share on other sites

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 need

example

set(#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!

Link to post
Share on other sites

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")

Link to post
Share on other sites

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?
Link to post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...