Customizing Transformer objects when writing to an XML file

Discussion in 'Java' started by Peter Loh, Feb 5, 2004.

  1. Peter Loh

    Peter Loh Guest

    Hi,

    I would like to transform an in-memory DOM object in a particular
    fashion (e.g. alphabetically sorting the elements at each level)
    before writing the result to an XML file. It seems that this should
    be possible using transformer objects
    (javax.xml.transform.Transformer), but I couldn't find any related
    documentation. Would appreciate any information on how I could
    achieve this. Thanks.

    Peter
     
    Peter Loh, Feb 5, 2004
    #1
    1. Advertisements

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. HNguyen
    Replies:
    4
    Views:
    2,692
    HNguyen
    Dec 21, 2004
  2. Jacinle Young

    XML transformer

    Jacinle Young, Jun 23, 2004, in forum: Java
    Replies:
    2
    Views:
    455
    Jacinle Young
    Jun 24, 2004
  3. Replies:
    1
    Views:
    1,116
    Esmond Pitt
    Mar 27, 2005
  4. Andreas
    Replies:
    1
    Views:
    1,108
    Raymond DeCampo
    Sep 4, 2005
  5. dibblego

    JDK Transformer bug?

    dibblego, Nov 16, 2005, in forum: Java
    Replies:
    0
    Views:
    659
    dibblego
    Nov 16, 2005
  6. Replies:
    1
    Views:
    492
    John B. Matthews
    Jan 12, 2009
  7. Aéris
    Replies:
    4
    Views:
    2,074
    Arne Vajhøj
    Oct 12, 2011
  8. Erik Wasser
    Replies:
    5
    Views:
    864
    Peter J. Holzer
    Mar 5, 2006
Loading...