Read the value from XML in java

Read the value from XML in java

Hi,

i have an XML with the following code.

I need to get the path("D:/Lakki/PermissionCheck/logs/RevAppserver.log") of log file in order to check the permissions on that file.So how can i read that value. This is little urgent for me.please help.

Thanks in advance, Lakki.

View Answers

April 19, 2011 at 6:29 PM

Hi,

This is the code.

<param name="file" value="D:/Lakki/logs/test.log"/>
<param name="Append" value="true" />
<param name="MaxFileSize" value="5000kb" />
<param name="MaxBackupIndex" value="5" />
<layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="[REVELEUSLOG] %m%n"/>
</layout>

##

Thanks in advance, Lakki. View Answers









Related Tutorials/Questions & Answers:
Read the value from XML in java
Read the value from XML in java  Hi, i have an XML... on that file.So how can i read that value. This is little urgent for me.please help.... <param name="file" value="D:/Lakki/logs/test.log"/> <param
How to read value from xml using java?
How to read value from xml using java?  Hi All, I want to read value from following xml using java.. In <Line>,data is in format of key and value pair.. i want to read only values..could u plz help me in this?Thanks
Advertisements
how to read values from java in xml?
how to read values from java in xml?  how to read values from java in xml
Read XML in java - XML
Read XML in java  Hi Deepak, I want to read a xml file which have only one element with multiple attributes with same tag name. here is my file... a solution.my java code is given below. import java.io.File; import
How read xml file value in dojox chart - XML
How read xml file value in dojox chart  How to read the xml file value in dojox chart
Retrieving attribute value from XML
Retrieving attribute value from XML  I have an XML as below to parse.../Listingnode.shtml http://www.roseindia.net/xml/getting-text-values-from-a-nodel.shtml...; ..... But am not able to fetch the value of LoadTicketId attribute. My code
How to read all value from int buffer in java.
How to read all value from int buffer in java. In this tutorial, we will discuss how to read all value from int buffer in java.  IntBuffer API...() The get() method read int value from current position of int buffer
Read XML using Java
of all i need to read xml using java . i did good research in google and came to know...Read XML using Java  Hi All, Good Morning, I have been working... || []).push({}); So i request you all to suggest best way to read XML ie SAX or Dom
read value from database & alert it is available in database or not
read value from database & alert it is available in database or not  how to read value from text box and alert whether it is available in database...="text/javascript"> function check(value){ xmlHttp=GetXmlHttpObject() var
read xml using java
read xml using java  <p>to read multiple attributes and elements from xml in an order.... ex :component name="csl"\layerinterfacefile="poo.c... that the actual value controller produces derived signals (e.g. data from model
Read from file java
Read from file java  How to Read from file java? What is the best method for a text file having a size of 10GB. Since i have to process the file one line at a time so tell me the very best method. Thank you
read xml
read xml   hi all, i want to ask about how to read an xml in java ME.. here is the xml file <data> <value> <struct>... of the first value node after the data node, i just can get only 1 struct but not 2, how
how to read and write an xml file using java
how to read and write an xml file using java  Hi Can anyone help me how to read and write an xml file which has CData using java
Read from a window - Java Beginners
Read from a window  HI, I need to open a website and read the content from the site using Java script. Please suggest. Thanks
Java read lines from file
Java read lines from file  Any code example related to Java read lines from file? In my project there is requirement of reading the file line by line... of reading file line by line in Java. Can any one share me the code for reading
how to update xml from java - XML
how to update xml from java  hi, Im new to xml parsing and dont know much about. I need to modify the attribute val of a tag in a complex xml file... Girish Tewari We are going to modify the value of this XML file
Subtract a value in the database from java
Subtract a value in the database from java   Hi, i want to know how to subtract a value on a database. im using JDBC connection from access and i want to decrement the value of table "quantity" of 1 each time it passes a loop my
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <... read the xml file bcz i want to append the whole xml in my gui. seems the problems is all xml tag must be enum. can you suggest me how to read the xml file?thx
read XML file and display it using java servlets
read XML file and display it using java servlets  sir, i can't access Xml which is present in my d drive plz can u should go through my code n tell me the things where i went wrong java servlet program protected void
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <... read the xml file bcz i want to append the whole xml in my gui. seems the problems is all xml tag must be enum. can you suggest me how to read the xml file?thx
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <... read the xml file bcz i want to append the whole xml in my gui. seems the problems is all xml tag must be enum. can you suggest me how to read the xml file?thx
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <... read the xml file bcz i want to append the whole xml in my gui. seems the problems is all xml tag must be enum. can you suggest me how to read the xml file?thx
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <... read the xml file bcz i want to append the whole xml in my gui. seems the problems is all xml tag must be enum. can you suggest me how to read the xml file?thx
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <... read the xml file bcz i want to append the whole xml in my gui. seems the problems is all xml tag must be enum. can you suggest me how to read the xml file?thx
read xml elements
read xml elements  i want read xml data using sax parser in java. but is there any classes or methods to read xml elements
read xml elements
read xml elements  i want read xml data using sax parser in java. but is there any classes or methods to read xml elements
Read the Key-Value of Properties Files in Java
Read the Key-Value of Properties Files in Java  ... to read the key-value of properties files in Java. This section provides you an example for illustration how to read key and it's regarding values from
How to values from xml using java?
How to values from xml using java?  Hi All, I want to read value from following < Line> xml using java.. In < Line>,data is in format of key and value pair.. i want to read only values..could u plz help me
Read the Key-Value of Property File in Java
Read the Key-Value of Property File in Java   ...;How to Read the Key-Value of Property File in Java?" Here is the code... the key-value of properties files in Java. The properties file provides the general
Data read. - XML
Data read.  How to store or read data in XML from Struts.Plz give me example. Thanx
read excel file from Java - Java Beginners
read excel file from Java  How we read excel file data with the help of java?  Hi friend, For read more information on Java POI visit to : http://www.roseindia.net/java/poi/ Thanks
Java--Xml Modify Node Value - Java Beginners
Java--Xml Modify Node Value  I have the following xml. test... of ,,and through NodeList. I wrote the follwoing code. package xml_handson; import...)); System.out.print("Enter XML File name: "); String xmlFile = bf.readLine
To read key-value of a given property file - Java Beginners
To read key-value of a given property file   HI, As per the topic "Read the Key-Value of Property File in Java "u provided under "util java examples " I have written a java file and properties file under a package
how to read this xml file - XML
how to read this xml file  i want to read this xml file using java... read i have tried lot more , but i am not able to read this xml file... name=client menu=client action=read user employee add
Getting environment variable value from java
Getting environment variable value from java  Getting environment variable value from java
How to pretty print XML from Java?
How to pretty print XML from Java?  How to pretty print XML from Java
How to read text from - Java Beginners
How to read text from   How to retrieve text from the images... Does we have any function to get text over the images  Hi Friend, We are providing you a code that will set text over an image using javascript
how to create xml schema from xml doc using java
how to create xml schema from xml doc using java  i want to create xml schema from xml document programatically using java... am using Netbeans IDE 7.0 i hav created the xml document for a table of data from Database... now i
get the value from another class - Java Beginners
get the value from another class  Hello to all, I have stupid question. I have main.java and ConfigXML.java(read my config xml file). Code from...)).getNodeValue().trim(); from my ConfigXML.java in main.java. Sorry for my bad
Return Value From Event - Java Beginners
Return Value From Event  I would like to call a method that returns a value after an event has occurred and the value is determined by the event or listener. eg: public int mymethod() { static int value=0; KeyAdapter
XML- read Text Mode - Java Error in Windows - reg. - Java Beginners
XML- read Text Mode - Java Error in Windows - reg.  Dear All I'm creating the code as read the XML file in BufferedReader method. Here I pasted the code below:. (*) First read the XML file using FileInputStream
JDOM example in java, How to read a xml file in java.
JDOM example in java, How to read a xml file in java. In this tutorial, we will see how to  read a xml file in java. Code. Student.xml...;System.out.println("City = " + value);   
Read File from specified path in Java
How to read a file from a specified path in Java? After learning so many... reads a text file from specified path in Java. We will give complete path.... In this tutorial we are to teach you the steps to read a file from a disk
getting unique value from java.util.random - Java Beginners
getting unique value from java.util.random  i am doing a shopping... for that i used java.util.random to get random productid from product table, but the value which i am getting contains duplicate values and it is not unique, my
to read number from user
to read number from user  1)print the positive equivalent of the number 2) check if the no is integer or not 3) find the square root of the number 4) find the cube of the number
How can i read a file from nth line onwards in java
How can i read a file from nth line onwards in java  Hi, I need to read a file content from its nth line onwards till end. How can i implement it in java. Regards, Chinnu (adsbygoogle = window.adsbygoogle
java program to read multiple files from a directory and display them on a jframe
java program to read multiple files from a directory and display them on a jframe  hi guys i want to write a java program that will read all files in a directory and display them one by on on a jframe on jpanel with specific key
How to read PDF files created from Java thru VB Script
How to read PDF files created from Java thru VB Script  We have created the PDF file thru APache FOP but when we are unable to read the data thru... to read the FOP pdf? Is their any tool which convert the Apache FOP to Adobe PDF
download xml file from website using java code
download xml file from website using java code  how to download xml file from website using java code
How to read bytes from a Linked list - Java Beginners
How to read bytes from a Linked list  i have stored byte array into a linked list. How to read the bytearray dta byte after byte from a linked list.Thanking u in advance Sameer

Ads