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=5424>.
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=5424

problem parsing config.xml





------- Additional Comments From [EMAIL PROTECTED]  2001-12-14 17:30 -------
The config.xml sent to me parses fine. Possibly when you concatenated the first
few lines:

<config><thread-manager><thread-group>

that deleted the control character, and it will work in Phoenix now too.

Here's a Java program to verify that the XML is correct, independent of Phoenix:

import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.XMLReader;

import org.apache.avalon.framework.configuration.SAXConfigurationHandler;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;
import org.apache.avalon.framework.configuration.DefaultConfigurationSerializer;

public class Print {

        public static void main(String args[]) throws Exception
        {
                String buildfile = "config.xml";
                if (args.length != 0) buildfile = args[0];
                System.out.println("Parsing "+buildfile);
                Configuration conf = build(buildfile);
                DefaultConfigurationSerializer ser = new
DefaultConfigurationSerializer();
                ser.serialize(System.out, conf);
        }
        /** Build a Configuration with a DefaultConfigurationBuilder. */
        public static Configuration build(String filename)
                throws Exception
        {
                DefaultConfigurationBuilder builder = new
DefaultConfigurationBuilder();
                Configuration conf = null;
                conf = builder.build(filename);
                return conf;
        }
}


--Jeff

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to