newbie question about XML with java

Discussion in 'Java' started by Nik, Apr 29, 2005.

  1. Nik

    Nik Guest

    I am relatively new to java and would like to create a XML file which
    looks like this:

    <archive name="archive1">
    <file name="xx">
    <size>100</size>
    <ext>jpg</ext>
    </file>
    </archive>

    can anybody show me a code snippet how I can make that?
    thanks for help in advance!
    Nik, Apr 29, 2005
    #1
    1. Advertising

  2. Nik wrote:
    > I am relatively new to java and would like to create a XML file which
    > looks like this:
    >
    > <archive name="archive1">
    > <file name="xx">
    > <size>100</size>
    > <ext>jpg</ext>
    > </file>
    > </archive>
    >
    > can anybody show me a code snippet how I can make that?
    > thanks for help in advance!


    take a look at JDom - www.jdom.org

    example code at http://www-128.ibm.com/developerworks/java/library/j-jdom/
    Andrew McDonagh, Apr 29, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. peelman
    Replies:
    2
    Views:
    431
    anonymous
    Jan 13, 2005
  2. Replies:
    0
    Views:
    314
  3. Replies:
    5
    Views:
    413
    Steve Sobol
    Oct 18, 2007
  4. Jerry C.
    Replies:
    8
    Views:
    229
    Uri Guttman
    Nov 23, 2003
  5. Erik Wasser
    Replies:
    5
    Views:
    452
    Peter J. Holzer
    Mar 5, 2006
Loading...

Share This Page