com.intellij.psi.xml find indents between tags Follow
Answered
Hi!
how to find indents between tags?
Please sign in to leave a comment.
Hi Turalllb,
Please be more specific with the question. I don't understand what you mean and what you try to achieve. Please explain the context and use case.
I parse the xml file, translate the text into other languages and write everything into a new xml file. But in the original xml file there is a line break character between two string, I don't know how I can find out about the character and how to add it to the new file.
I'm sorry, but it is still too little information. What does it mean that you parse the XML file? How do you write it to a new file? What APIs do you use? Why do you expect a line break character to be added between lines in a new file? Why original file does have these line breaks?
Please be more specific.
Hi,
I can't see your code and don't understand the algorithm, but maybe you skip white space elements when you process the XML PSI tree?