Jump to content
UBot Underground

Ubot XML plugin - Ubot Discount


Recommended Posts

  • 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

Did you find anything when testing namespace's Aymen? I've tested a few api feeds from Amazon and get the same issue.

 

I don't think namespaces are supported in the native System.Xml , but that can be achieved using LINQ , so i'll see about adding a LINQ parser in future updates

 

 

Link to post
Share on other sites

Just got it today, LOVEEEE IT. Making my life so much easier already. Just been playing around with it and got it to do what I need.

BTW: 

If anyone is trying to search text/value inside the XML from a Table/List use "Contain" and not Compare with $xpath parser. Xpath, if you don't know brings back a full list from ALL elements and just not single/first one like xml parser. I just figured it out. First time with contain always been compare lol. Anywho, hope it's helpful to someone like me. 

Example Code: (Jacking your #x Dan) Lol 

(TABLE ATTACHED DOWN BELOW)

create table from file("{$special folder("Desktop")}/table.csv", &Table With Data)
set(#x, "<?xml version=\"1.0\"?>
<AccountDetails>
  <UserID>
    <ID>R10985412</ID>
    <LoginTimes Login=\"23\" UserSince=\"2014/09/23\" LastLogin=\"2014/10/04\">
    </LoginTimes>
  </UserID>
  <UserID>
    <ID>R101441883</ID>
    <LoginTimes Login=\"24\" UserSince=\"2014/09/24\" LastLogin=\"2014/10/05\">
    </LoginTimes>
  </UserID>
  <UserID>
    <ID>R103828466</ID>
    <LoginTimes Login=\"34\" UserSince=\"2014/09/09\" LastLogin=\"2014/10/05\">
    </LoginTimes>
  </UserID>
  <UserID>
    <ID>R104950769</ID>
    <LoginTimes Login=\"44\" UserSince=\"2014/08/25\" LastLogin=\"2014/10/03\">
    </LoginTimes>
  </UserID>
  <UserID>
    <ID>R105836511</ID>
    <LoginTimes Login=\"16\" UserSince=\"2014/09/24\" LastLogin=\"2014/10/04\">
    </LoginTimes>
  </UserID>
</AccountDetails>", "Global")
set(#Found, 0, "Global")
set(#Found_Not, 0, "Global")
Finding IN XML(0)
define Finding IN XML(#Row) {
    loop($table total rows(&Table With Data)) {
        if($contains($plugin function("HTTP post.dll", "$xpath parser", #x, "//ID", "InnerText", "XML"), $table cell(&Table With Data, #Row, 0))) {
            then {
                increment(#Found)
            }
            else {
                increment(#Found_Not)
            }
        }
        increment(#Row)
    }
}


Regards, 
HaHaItsJake

table.csv

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

I don't think namespaces are supported in the native System.Xml , but that can be achieved using LINQ , so i'll see about adding a LINQ parser in future updates

Hi Ayman,

 

Any idea when you will be able to look into adding NameSpace support?

 

Thanks.

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

Hi Aymen,

 

How can I append existing XML File ? I mean When I restart my bot it rewrites my XML File and I loss my previous saved Data in same file,

 

Thanks

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

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...