Results 1 to 5 of 5
  1. #1
    kroiz is offline Member
    Join Date
    Jul 2009
    Posts
    12
    Rep Power
    0

    Default XML Schema what is it good for.

    Hi,

    I am considering XStream and JAXB for binding my app conf files to XML.
    Is there advantage to using XML Schema based solution such as when using JAXB to a solution like XStream where XML Schema is not needed?

  2. #2
    devunion is offline Member
    Join Date
    Jun 2008
    Posts
    56
    Rep Power
    0

    Default

    All depends on your needs. I'm using JiBX. It is very fast. You can find performance comparison in Google.
    Try Controls4J - Advanced Swing Components.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    I've heard that there is a potential advantage in that the schema information can help turn the xml data into objects allowing for much greater loosening of coupling. I'm no expert in this though, far from it.

  4. #4
    kroiz is offline Member
    Join Date
    Jul 2009
    Posts
    12
    Rep Power
    0

    Default

    Quote Originally Posted by devunion View Post
    All depends on your needs. I'm using JiBX. It is very fast. You can find performance comparison in Google.
    I need it for configuration files.
    So performance are not an issue.
    And generally (at least according to the xstream FAQ) using Schema is faster.
    I also think that binding is mostly used in the part of the program that performance are not an issue at - doing otherwise seem a design flaw.

    My question remains:
    Is there advantage to using XML Schema based solutions over solutions where XML Schema is not needed?

  5. #5
    kroiz is offline Member
    Join Date
    Jul 2009
    Posts
    12
    Rep Power
    0

    Default

    Quote Originally Posted by Fubarable View Post
    I've heard that there is a potential advantage in that the schema information can help turn the xml data into objects allowing for much greater loosening of coupling. I'm no expert in this though, far from it.
    Maybe the intension was to binding vs the old way of doing configuration where the class was coupled with the code to write it down to disk.

Similar Threads

  1. Hello Good Morning, Good afternoon, and Good Evening
    By MrFreeweed in forum Introductions
    Replies: 3
    Last Post: 12-11-2009, 04:32 PM
  2. problem with getting alll schema names from database
    By sandeepsai17 in forum New To Java
    Replies: 1
    Last Post: 07-21-2009, 01:38 PM
  3. XML Schema
    By Abder-Rahman in forum XML
    Replies: 1
    Last Post: 02-22-2009, 05:33 PM
  4. Merge 2 XMLs Based on Schema
    By wowstartup in forum XML
    Replies: 0
    Last Post: 02-12-2009, 06:46 PM
  5. Graphic library for XML Schema
    By earns in forum XML
    Replies: 0
    Last Post: 10-26-2008, 05:49 PM

Tags for this Thread

Posting Permissions

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