Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Java and xml

Options
  • 24-07-2006 12:14pm
    #1
    Closed Accounts Posts: 36


    Hi,
    I have an xml file that i need to indent properly,the file is an ouput from a transformation,is there any way i can do this using java and not my xslt stylesheet.

    sample

    <M Name="1" Type="Jvm">
    <JvmId>1</JvmId>
    <userLabel/>
    <classpath/>
    <admClasspath/>
    <freeMemory>0</freeMemory>
    <totalMemory>0</totalMemory>
    <mopplets/>
    <main/>
    <options/>
    <properties/>
    <reliableProgramUniter/>
    <admMain/>
    <admOptions/>
    <reservedBySwAllocation/>
    </m>

    obviously this is hard to read,so need to indent it properly.
    Thanks
    Pj


Comments

  • Registered Users Posts: 197 ✭✭Patrick


    you could try google :P


  • Registered Users Posts: 1,996 ✭✭✭lynchie


    As above.. a quick google should lead you to the indent attribute of the xsl output tag


Advertisement