-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XNode#toString() cannot display all information #2080
Comments
I'm fixed this issue.Pr |
chehongwei-git
pushed a commit
to chehongwei-git/mybatis-3
that referenced
this issue
Mar 19, 2021
cszxyang
added a commit
to cszxyang/mybatis-3
that referenced
this issue
May 6, 2022
Closed
human-user
added a commit
to human-user/mybatis-3
that referenced
this issue
Nov 7, 2023
Closed
harawata
added a commit
to harawata/mybatis-3
that referenced
this issue
Nov 7, 2023
- Keeping indentation, but it won't be perfect in multi-line text nodes. - Add a new line after each open/close tag even for a short line like `<id>3</id>`. There aren't many short lines like that in MyBatis mappers. - Use 2 spaces for indentation instead of 4 to save earth. Should fix mybatis#2080 Should close mybatis#2084 mybatis#2552 mybatis#2998
harawata
added a commit
to harawata/mybatis-3
that referenced
this issue
Nov 7, 2023
- Keeping indentation, but it won't be perfect in multi-line text nodes. - Add a new line after each open/close tag even for a short line like `<id>3</id>`. There aren't many short lines like that in MyBatis mappers. - Use 2 spaces for indentation instead of 4 to save earth. Should fix mybatis#2080 Should close mybatis#2084 mybatis#2552 mybatis#2998
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MyBatis version
3.5.5
java version
1.8
discription
I found that this method
org.apache.ibatis.parsing.XNode#toString()
has a defect, it only displays nodes of type Node.ELEMENT_NODE. The reason for this problem is that the methodorg.apache.ibatis.parsing.XNode#getChildren
will only list the child nodes of type Node.ELEMENT_NODE. Therefore, when I am debugging, I cannot see all the information.a xml file
Java code
Expected result
Actual result
The text was updated successfully, but these errors were encountered: