Hi,
 
have you tried to turn on "pritty formatting" through the XML serialier in the 
castor properties file ? 
 
  # Defines the default XML serializer to be used by castor
  # The serializer must implement org.apache.xml.serialize.Serializer
  #
  org.exolab.castor.serializer=org.apache.xml.serialize.XMLSerializer

  # True if all documents should be indented on output by default
 org.exolab.castor.indent=true
 
Regards
Werner


________________________________

        From: Saurabh Agrawal [mailto:[EMAIL PROTECTED] 
        Sent: Mittwoch, 11. Jänner 2006 10:29
        To: [email protected]
        Cc: [email protected]
        Subject: [castor-dev] Formatting XML
        
        

        Hi all,

        I have an XML which is well formed but not in proper format:

         

        For example:

         

        <a><b><c></c>

        </b>

        </a>

         

        I need to format this xml like:

         

        <a>

        <b></b>

        <c></c>

        <a>

         

        Does Castor allow formatting based on some rules? I need to know this 
urgently.

         

        Please let me know.

        Thanks in advance,

        Saurabh


-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to