somebody please help me how to make xml octets like items.jsp

Results 1 to 12 of 12
  1. #1
    Novice pwam190399 is offline
    MemberRank
    Jun 2013 Join Date
    3Posts

    sad somebody please help me how to make xml octets like items.jsp

    <%
    // item DB for send mail
    // items[index][0] -> item id
    // items[index][1] -> item name
    // items[index][2] -> xml octets for this item

    String[][] items =
    {
    {"0", "none", ""},
    {"23849", "C17 Dual Axes", "5f00ff000500000005000000a8480000a84800002c00030000000000090000000c000000000000001d020000860300000000000000000000180000000000a040000000000000000000000000"},
    {"23861", "C17 Pike", "5f00ff000500000005000000b04f0000b04f00002c00030000000000050000000c00000000000000310200001204000000000000000000001400000000006040000000000000000000000000"},
    {"23885", "C17 Pataka", "5f00ff00050000000500000060220000602200002c00030000000000240100000c000000000000007601000031020000a80200003f0300001400000000004040000000000000000000000000"}
    };
    %>


    xml octect like this , how to make :
    5f00ff00050000000500000060220000602200002c00030000000000240100000c000000000000007601000031020000a80200003f0300001400000000004040000000000000000000000000


  2. #2
    Psy Sins Psytrac is online now
    MemberRank
    Jul 2011 Join Date
    Hammond, INLocation
    2,012Posts

    Re: somebody please help me how to make xml octets like items.jsp

    really simple, there are octet editors on the forums, as well as descriptions on how to make an octet

  3. #3
    Novice pwam190399 is offline
    MemberRank
    Jun 2013 Join Date
    3Posts

    Re: somebody please help me how to make xml octets like items.jsp

    I've got the software from post : http://forum.ragezone.com/f751/relea...or-1-a-880375/
    , but there are errors in getting octects numbers, as in the image below:
    error-octet.jpg
    but at least I already know how to add items on octetcs numbers...thank bro...

    But I still do not know how to change id-gear into octets as
    from: 23885 into:5f00ff00050000000500000060220000602200002c00030000000000240100000c000000000000007601000031020000a80200003f0300001400000000004040000000000000000000000000
    Maybe somebody know..? please help
    Attached Thumbnails Attached Thumbnails octes-ui.jpg  

  4. #4
    uint is best int. Swoosh91 is offline
    MemberRank
    Feb 2010 Join Date
    BerlinLocation
    712Posts

    Re: somebody please help me how to make xml octets like items.jsp

    1.0 = floating point notation.
    1,0 = no floating point notation.

    I hate how countries, such as Germany, use commas for this. Who the heck came up with that.

  5. #5
    Angelemu founder tbnanubis is offline
    MemberRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: somebody please help me how to make xml octets like items.jsp

    Quote Originally Posted by Swoosh91 View Post
    1.0 = floating point notation.
    1,0 = no floating point notation.

    I hate how countries, such as Germany, use commas for this. Who the heck came up with that.
    actually it is the duty of the programmer to make the program platform independent. They both are valid notations, it depends on which culture setting your programs parsers use. Someone messed it up there and used the System's encoding for toString(), and some custom (my guess is invariant culture) for the ParseSingle().
    This can be especially confusing when handling xml data.

  6. #6
    Psy Sins Psytrac is online now
    MemberRank
    Jul 2011 Join Date
    Hammond, INLocation
    2,012Posts

    Re: somebody please help me how to make xml octets like items.jsp

    but just to make things simple.. change "," to "." and it works fine

  7. #7
    uint is best int. Swoosh91 is offline
    MemberRank
    Feb 2010 Join Date
    BerlinLocation
    712Posts

    Re: somebody please help me how to make xml octets like items.jsp

    I am aware of different culture settings, my critism was more pointed at the fact that there is a difference at all. In times of globalization and world wide connections, it's time to make a standard with things like this in my opinion. Points for decimals are the only logical way to go as far as I see.

  8. #8
    Psy Sins Psytrac is online now
    MemberRank
    Jul 2011 Join Date
    Hammond, INLocation
    2,012Posts

    Re: somebody please help me how to make xml octets like items.jsp

    Quote Originally Posted by Swoosh91 View Post
    I am aware of different culture settings, my critism was more pointed at the fact that there is a difference at all. In times of globalization and world wide connections, it's time to make a standard with things like this in my opinion. Points for decimals are the only logical way to go as far as I see.
    And that's perfectly alright for the culture you live in. But sometimes you have to broaden your view on things. it's not always about "you" (in general, not pointing fingers)

  9. #9
    uint is best int. Swoosh91 is offline
    MemberRank
    Feb 2010 Join Date
    BerlinLocation
    712Posts

    Re: somebody please help me how to make xml octets like items.jsp

    I am criticizing the culture I am in (German), not others. I don't really care which one though, all I would find cool is if it was standardized.

  10. #10
    Psy Sins Psytrac is online now
    MemberRank
    Jul 2011 Join Date
    Hammond, INLocation
    2,012Posts

    Re: somebody please help me how to make xml octets like items.jsp

    well.. we don't use metric in the US, and that drives the rest of the world nuts

  11. #11
    Robb rbb138 is offline
    MemberRank
    Jan 2009 Join Date
    London, EnglandLocation
    1,241Posts

    Re: somebody please help me how to make xml octets like items.jsp

    We use both. It's even worse!

  12. #12
    Psy Sins Psytrac is online now
    MemberRank
    Jul 2011 Join Date
    Hammond, INLocation
    2,012Posts

    Re: somebody please help me how to make xml octets like items.jsp

    Quote Originally Posted by rbb138 View Post
    We use both. It's even worse!
    yea, that has to drive you crazy, doesn't it?



Advertisement