Ulf Dittmer wrote:What, exactly is the problem - calling the WS every 15 minutes? If so, the java.util.Timer and TimerTask classes can help with that. If the problem is something else, tell us in detail what that is.
Jaikiran Pai wrote:Looking at the code and the comments in it, it looks like you want to write out the serialized version of the "token" to a String? Is that correct? If yes, it should be easy enough, you don't need all that response.getOutputStream() and other code. Take a look at StringWriter class available in Java.
Ulf Dittmer wrote:Please post the entire Java code you used for this, including all import statements, so that it's ready to compile and run.
William Brogden wrote:
grammatical
Java and all other programming languages care a lot about "grammar" - if you can't manage to keep your spelling and capitalization straight in your code perhaps you should consider a career in another field.
Programming is - above all - about clarity of expression. If you can't express your problem clearly, you can't solve it.
Bill
Paul Clapham wrote:
Durga Roobini wrote: please help me to get rid of this problem can i able to concat 2 xml file nodelist length? or any other alternate solution to merge xml files with presence of all nodelist
First you have to decide what you want to do. Do you want to concatenate (what you called "concat") the two documents in some way? Or do you want to merge them in some way? The two words mean very different things. And your examples of possible inputs have no obvious relationship, so it's impossible to tell what your desired output is. It certainly doesn't help that you didn't tell us what your desired output is from those inputs.
g tsuji wrote:I find it really amazing when the op posted his xml like
he wrote his code like
And then when he presented the document like
he wrote his code like
Is it that hard to pay that little respect to one's own work or is it that somebody, myself for instance, is accused of not being nice ? I think before one asks question, one starts with acquiring the skill of reading and comprehension otherwise I don't see the end of the loop of eternal return.
Paul Clapham wrote:Well yes, in fact we DO expect examples which are not misleading. Have a look at our FAQ entry PostRealCode to find out why.
g tsuji wrote:Do you understand xml is case-sensitive to begin with ? And then you said your output is <root/> : it seems to be a miracle as well. (What is the complete code to arrive to that result ?) And then if your for loop has index i applied to "Root" (or "root"), it should not be an index apt for element d, e, f. There is only one root in a well-formed document in any way. And then if you start with getElementsByTagName() for "subroot", your code may be closer to what you need but the code is still incredibly confusing. How about you make a more reasonable effort to clean up the logic and the code on your side before posting ? Every single line seems to be dubious at present making help to be a pain rather than a joy. That is my impression with no disguise.
Jeanne Boyarsky wrote:Can you post what got output instead? That way someone can advice without having to recreate the example/