No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
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(); } }
You have call the Date class object from the remote server.
You can use SimpleDateFormat class also. String s="mm/dd/yyyy" Date d = new Date(); SimpleDateFormat st = new SimpleDateFormat(s); st.format(d);
use logging tag avilable from jakarta project which is based on log4j
[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] …
The End.
soumyajit