We can use file system. Firstly we replace all invalid symbols with valid symbols and then load xml file to database.