Results 1 to 2 of 2
  1. #1
    sonaljain is offline Member
    Join Date
    Jun 2011
    Posts
    1
    Rep Power
    0

    Default Problem in saving the , , values in database using xml

    Hi

    I am developing a java swing based application. In which I send data in xml format and save it on a online webstore through API calls.

    When I send the data in following format 3, 3, 3. It saves only 3 not the whole value means It is ignoring the values , , .

    Here is my xml code which I am sending on network.

    <?xml version="1.0" encoding="UTF-16" standalone="yes"?>
    <product>
    <product-type>Shirts</product-type>
    <title>testStyle</title>
    <variants type="array">
    <variant>
    <fullfilment-service>manual</fullfilment-service>
    <inventory-management>shopify</inventory-management>
    <inventory-policy>deny</inventory-policy>
    <option1>Black</option1>
    <option2>3</option2>
    <option3 nil="true"></option3>
    <price>40.0</price>
    <requires-shipping>true</requires-shipping>
    <sku>1307681713338</sku>
    <taxable>true</taxable>
    </variant>
    <variant>
    <fullfilment-service>manual</fullfilment-service>
    <inventory-management>shopify</inventory-management>
    <inventory-policy>deny</inventory-policy>
    <option1>Black</option1>
    <option2>3</option2>
    <option3 nil="true"></option3>
    <price>40.0</price>
    <requires-shipping>true</requires-shipping>
    <sku>1307681714634</sku>
    <taxable>true</taxable>
    </variant>
    </variants>
    </product>

    In option2 tag I am passing , , .

    Please give me some solutions .

    Thanks

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,225
    Rep Power
    20

    Default

    How are you saving it?
    I would have thought that would be the obvious bit of code to give us.

Similar Threads

  1. Problem in retrieving values from Oracle 10g database
    By techsing14 in forum JavaServer Pages (JSP) and JSTL
    Replies: 9
    Last Post: 04-13-2011, 02:50 AM
  2. Replies: 1
    Last Post: 03-08-2010, 07:25 PM
  3. Exception while saving in database
    By kirtichopra2003 in forum Web Frameworks
    Replies: 1
    Last Post: 10-24-2009, 03:15 AM
  4. Saving Values in a Dynamic UI
    By Nirmal_mm in forum Advanced Java
    Replies: 0
    Last Post: 01-25-2009, 07:23 AM
  5. Saving Values
    By Sysem in forum New To Java
    Replies: 10
    Last Post: 06-02-2008, 07:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •