jeya prabha

Greenhorn
+ Follow
since Jun 03, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by jeya prabha

Please explain advantages of inner classes.

Thanks.
16 years ago
I am using DocumentBuilderFactory for XMLSchemaValidation.
how to set jaxp.properties file?
I am using this link http://www.onjava.com/pub/a/onjava/2004/09/15/schema-validation.html
using jaxp parser for validation.
am using apachePOi for reading xls data and displaying data.
how to convert xml and how to validate using schema?
please help me out.
thanks.
yes,i want to validate xml using xsd.
how to fetch data form xls?
thanks.
hi ,

i have done code for reading and displaying data in xls using Apache POI.
how to map these values to schema file(it contains structre of the xml)
please help me out .
thanks
XLS file is nothing but ,it contains structre of the XML document.
we need to map schema and datas into xlsheet
then tell me how to convert into XML ?
which API methods we can use?
for example
<xs:element name="Employee">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string"/>
<xs:element name="Emp_ID" type="xs:string"/>
<xs:element name="Designation" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>

</xs:schema>

and am having the datas for like ,Name,Emp_ID,Designation
i need to map schemas into xl sheet .
then i need to produce xml output
how to map schemas into excel sheet?
then how to convert xml data file?
please help me out.

thanks,
jeyaprabha.
how to map xml schema into excel sheet ?
what is legacy methods in collections?

Thanks,
jeyaprabha
16 years ago
HI ,
Now i can understand this.
for my understanding
: queue.add("one");
R2: queue.add("Four");
R3: queue.add("two");
R4: queue.add("four");
R5: queue.add("five");
R6: queue.add("FIVE");
R7: queue.add("three");
R8:

R10:System.out.println(queue.peek());
R11:System.out.println(queue.size());

if i am directly peek this means
the output is FIVE .
is it correct?
please help me out.
thanks.
16 years ago
i can not understand this.
how it comes ?
what it means natural order?
is it means alphabetical order?
please help me out
16 years ago
Anybody know about these two methods .
for example
public class Test {

/** Creates a new instance of Test */
public static void main(String args[]) {
Queue<String> queue=new PriorityQueue<String>();
queue.add("one");
queue.add("two");
queue.add("three");
queue.add("four");
queue.add("five");
queue.add("FIVE");
queue.add("Four");
System.out.println(queue.poll());
System.out.println(queue.peek());
System.out.println(queue.size());
}

}

output is
one
three
2
please explain how this methods are working.
thanks.
16 years ago
try this
import java.text.*;
import java.util.*;
class Dates3 {
public static void main(String[] args) {
Date d1 = new Date(1000000000000L);

DateFormat[] dfa = new DateFormat[6];
dfa[0] = DateFormat.getInstance();
dfa[1] = DateFormat.getDateInstance();
dfa[2] = DateFormat.getDateInstance(DateFormat.SHORT);
dfa[3] = DateFormat.getDateInstance(DateFormat.MEDIUM);
dfa[4] = DateFormat.getDateInstance(DateFormat.LONG);
dfa[5] = DateFormat.getDateInstance(DateFormat.FULL);

for(DateFormat df : dfa)
System.out.println(df.format(d1));
}
}
16 years ago