Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #25.0K
~652 People Reached
Favorite Tags

6 Posted Topics

Member Avatar for push

User jdom for that. import org.jdom.*; import java.io.*; class parseXml { public static void main(String args[]) { Saxbuilder build = new SaxBuilder(); Document doc =build.build(new File("youxml")) ; String value = (Element)XPath.selectSingleNode(doc,"yournodepath").getValue(); } }

Member Avatar for push
0
82
Member Avatar for nschessnerd
Member Avatar for nschessnerd
Member Avatar for nschessnerd
0
116
Member Avatar for amtallah

You can use SimpleDateFormat class also. String s="mm/dd/yyyy" Date d = new Date(); SimpleDateFormat st = new SimpleDateFormat(s); st.format(d);

Member Avatar for rgtaylor
0
127
Member Avatar for sanju21
Member Avatar for rgtaylor
0
118
Member Avatar for sushilover25_78

[B][COLOR=#7f0055]public[/COLOR][/B][B][COLOR=#7f0055]class[/COLOR][/B][COLOR=#000000] Recursion {[/COLOR] [B][COLOR=#7f0055]static[/COLOR][/B] [B][COLOR=#7f0055]long[/COLOR][/B] [I][COLOR=#0000c0]st[/COLOR][/I] = 440403; [B][COLOR=#7f0055]static[/COLOR][/B] [B][COLOR=#7f0055]int[/COLOR][/B] [I][COLOR=#0000c0]no[/COLOR][/I] = 0; [B][COLOR=#7f0055]static[/COLOR][/B] [B][COLOR=#7f0055]int[/COLOR][/B] [I][COLOR=#0000c0]count[/COLOR][/I] = 1; [B][COLOR=#7f0055]static[/COLOR][/B] [B][COLOR=#7f0055]int[/COLOR][/B] [I][COLOR=#0000c0]finalVal[/COLOR][/I] = 1; [COLOR=#3f5fbf]/**[/COLOR] [COLOR=#3f5fbf]*[/COLOR] [B][COLOR=#7f9fbf]@param[/COLOR][/B] [COLOR=#3f5fbf]args[/COLOR] [COLOR=#3f5fbf]*/[/COLOR] [B][COLOR=#7f0055]public[/COLOR][/B] [B][COLOR=#7f0055]static[/COLOR][/B] [B][COLOR=#7f0055]void[/COLOR][/B] main(String[] args)[B][COLOR=#7f0055]throws[/COLOR][/B] Exception { [I][COLOR=#0000c0]no[/COLOR][/I] = String.[I]valueOf[/I](st).length(); [B][COLOR=#7f0055]try[/COLOR][/B] { System.[I][COLOR=#0000c0]out[/COLOR][/I].println([COLOR=#2a00ff]"final "[/COLOR]+[I]doRecursive[/I]([I][COLOR=#0000c0]st[/COLOR][/I])); } [B][COLOR=#7f0055]catch[/COLOR][/B](Exception e){ e.printStackTrace(); } } [B][COLOR=#7f0055]static[/COLOR][/B] [B][COLOR=#7f0055]long[/COLOR][/B] …

Member Avatar for soumyajit
0
123

The End.