Answer the question
In order to leave comments, you need to log in
Which model to write an XML file in Java to use?
The task is to log the history of messages from the chat. Settled on DOM. But I ran into a problem that dom is obtained as a single file, and I need new elements to be added to the xml structure as messages arrive. What do you advise?
Answer the question
In order to leave comments, you need to log in
What's the problem?
We take and do something like this:
<log>
<message nik="" data="">Я твой код парсер шатал!</message>
</log>
Why use xml at all?
Write to the file by mask and that's it.
The answers to your question may change if you tell us how you plan to use these logs later :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question