Import/Export problem of references

This code helps to import/export references via plugin import/export
issues in XML. But needs some code to fill in citations table. Please
help.