-
Help Reqired!
Hi All
i am java developer and i have a problem with xml document.
here is the xml file code.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="appender" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="c:\\abc.txt"/>
<param name="MaxFileSize" value="1KB"/>
....
<layout class="org.apache.log4j.SimpleLayout"></layout>
</appender>
<root>
<priority value ="debug"/>
<appender-ref ref="appender"/>
</root>
</log4j:configuration>
Now i want to insert a new node
<param name="MaxBackupIndex" value="3"/>
as appender child at red spot in the above code.
i am using jdom but when i try to append new child then it says that
param child already exists. how chan i do that.
Answer will be highly appriciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks