Sedna loads xml files and sedna loads xml files
Suppose there is an xml file named a. xml, which needs to be loaded into the sedna database xml_db.
Sedna loads xml into the database through se_term. There are two methods:
1. Use the-query parameter of se_term.
Se_term-query "LOAD 'a. xml'''" xml_db
If a. xml is only one of a batch of xml files, the labels of these xml files are the same. You can consider using a set for storage.
Create a set:
Se_term-query "create collection 'mycol'" xml_db
Then load the file into the collection.
Se_term-query "LOAD 'a. xml''' mycol'" xml_db
2. Use the-file parameter of se_term.
Write the loaded statement to file a. query first.
LOAD "a. xml" ""
Call it to load a. xml to xml_db.
Se_term-file a. query xml_db
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.