Sedna loads xml files and sedna loads xml files

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.