如何在sqlite数据库中保存xml文件?

时间:2022-01-05 09:59:18

I am writing a project where I am required to save an entire XML file in a database. So how can I save it? I don't want to save parsed XML only the entire XML file.

我正在编写一个项目,要求我将整个XML文件保存到数据库中。那么我如何保存它呢?我不希望仅将解析XML保存到整个XML文件中。

Thanks.

谢谢。

1 个解决方案

#1


5  

The content of an XML file is a text. So use a column of type text and insert the whole content of the file.

XML文件的内容是文本。因此,使用类型为text的列并插入文件的整个内容。

#1


5  

The content of an XML file is a text. So use a column of type text and insert the whole content of the file.

XML文件的内容是文本。因此,使用类型为text的列并插入文件的整个内容。