DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18818>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18818

Output indentation of XML not working, HTML okay.





------- Additional Comments From [EMAIL PROTECTED]  2003-04-09 15:09 -------
Hi Brian,   
   
This is a snippet of the xml I'm working with -   
   
<?xml version="1.0" encoding="UTF-8"?>   
<project name="test" default="compile" basedir=".">   
        <property name="tools" value="../../dev"/>   
   
        <target name="clean">   
                <antcall target="dotargets">   
<param name="target" value="clean"/>   
                </antcall>   
        </target>   
</project>   
   
I'm not using a stylesheet.  
  
What I want to do is have a piece of code that will run through config files  
(which may not have the same format as the example above), reduce the doc to   
'pure' xml in memory and then reoutput the xml hopefully with the formatting   
as defined by indent. The idea is to produce clean XML regardless of which   
editor may have been used to produce it, or the settings that each individual   
programmer may have set in his editor. Now as far as I can tell this should be   
a fairly simple procedure and should be possible using the code as supplied   
previously. As I said earlier, using this procedure but outputting html   
(using SerializerToHTML I guess) does the indentation as expected. Its because 
of this difference in the output when outputting xml vs html that lead to the 
bug report. 
 
I'm quite happy to stand corrected if I've missed something but it does feel 
as if something somewhere is broken. If there is other info you require, I'll 
do what I can.  
 
Thanks 
 
GMD

Reply via email to