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: Unstructured Data Model

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Unstructured Data Model

    I'd like to write an application whose data model needs to be flexible and unstructured (similar to, say, XML). The model itself can contain fields and the field values can also be an array of the same structure (forming a hierarchy). Ideally, I'd like to be able to have a dictionary of field identifiers which are coupled to their field types. In that sense, it would be similar to web services but targeted at intra-application (within the application) method calls.

    That would be the main functionality requirement. Nice to haves would be a way to dump the structure to a String, create a structure from a formatted String, identify whether a structure contains a certain field type, etc. and be easy and natural to code to.

    Does a library or programming API like that exist and is open and freely available?


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Unstructured Data Model

    Not fully sure I understand those requirements, but since you mentioned XML perhaps something like JDOM would help. You can build tree-like data structures, and convert those to and from xml.

Similar Threads

  1. Data Transmission
    By relixus in forum Java Theory & Questions
    Replies: 2
    Last Post: December 9th, 2010, 12:27 AM
  2. Using File Data
    By computercoder in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 18th, 2010, 07:51 PM
  3. Data tables and such like.
    By ShaunB in forum Java Theory & Questions
    Replies: 1
    Last Post: December 30th, 2009, 06:10 PM
  4. the problems of psx model ripping
    By wolfgar in forum Java Theory & Questions
    Replies: 4
    Last Post: November 4th, 2009, 07:31 PM
  5. I can't key in the data
    By muffin in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: August 10th, 2009, 11:03 PM