Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: 2d array into JSON or XML

  1. #1
    Junior Member
    Join Date
    Jan 2018
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb 2d array into JSON or XML

    hi people!,
    im doing a project and i have to load game map by xml or json, so i decided to do a matrix of 0's and 1's to define, with 0 the streets, and with 1 the other part of the map, can you guys please help me, i dont know if this is the correct way to do what i have to do, i tried to save it into a XML file but, i cant figure out how to correct put there my java matrix i mean, how to organize it in the xml file.

    thanks in advice!!
    bless.

  2. #2
    Member
    Join Date
    Dec 2013
    Location
    Honolulu
    Posts
    83
    Thanks
    1
    Thanked 4 Times in 2 Posts

    Default Re: 2d array into JSON or XML

    If you're on netbeans the file saved is not integrated with the other Windows file. Not possible to open up the xml file from your window screen or IDE.

Similar Threads

  1. querying xml and json
    By gemma29 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 27th, 2014, 04:45 PM
  2. Converting JSON Schema to XML Schema
    By aksriva3 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: June 10th, 2014, 07:50 AM
  3. convert excel to xml and read the input from xml file
    By rahulruns in forum Object Oriented Programming
    Replies: 5
    Last Post: April 3rd, 2012, 11:13 AM
  4. Reading XML File using DOMParser and have problem with accessing xml
    By optiMystic23 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 21st, 2012, 02:22 PM
  5. PHP Developer - OOP / MVC / XML / JSON - 40,000 (NEG)
    By JacquelineRobbins in forum Paid Java Projects
    Replies: 0
    Last Post: January 12th, 2012, 06:58 AM