1. I have corrected the e-mail settings so that outgoing e-mails from these forums should be sent now. If you tried to Register or Reset your Password, please try again!
    Dismiss Notice

item tags question and XML

Discussion in 'Census: General Discussion' started by Lera, Oct 27, 2012.

  1. Lera

    Lera Guest

    I've imported an xml item list as a CSV file. Most of the columns display correctly, but the item tags have "value", "value3", "value4", etc. instead of "heirloom", "notrade", "lore", etc. Can this be changed, or am I just importing it wrong?

     
  2. ThyMajesty

    ThyMajesty Guest

    i dont know how you process the xml into the csv, but to me this sounds like a transition error in your script

     
  3. Quicktiger

    Quicktiger Guest

    I suspect the reason you get this is the way the XML is rendered.  You need to look at the field name, and the value is then a boolean.

    In Ruby, to parse the json, I do something like this:

    flags = []

    item.flags.each do |flag_name, options|

      flags << flag_name.downcase if options.value == 1

    end

     

Share This Page