Skip to content
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

Some words like ������ can't be parse #12

Open
fantasylion opened this issue May 8, 2018 · 2 comments

Comments

@fantasylion
Copy link

Hi
I have xml like this

<last-name>&#55357;&#56452;&#55357;&#56388;&#55357;&#56416;糖</last-name>

when I parse the xml will be error here

com.ximpleware.extended.EntityExceptionHuge: Errors in entity reference: Invalid XML char.
	at com.ximpleware.extended.VTDGenHuge.entityIdentifier(VTDGenHuge.java:980)
	at com.ximpleware.extended.VTDGenHuge.getCharAfterSe(VTDGenHuge.java:1119)
	at com.ximpleware.extended.VTDGenHuge.parse(VTDGenHuge.java:1445)
	at com.ximpleware.extended.VTDGenHuge.parseFile(VTDGenHuge.java:1293)
	at com.baozun.sql.maker.MemberSqlFactory.main(MemberSqlFactory.java:364)

What can I do to fix it. some one can help me.

@jzhang2004
Copy link
Owner

Thanks for reporting I will need to look into it...

@jzhang2004
Copy link
Owner

I think that the character encoded in the entity reference &#55357 does not fall into the category of a valid xml character... that is the reason...your xml is not well formed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants