简体   繁体   中英

How to load xml file in Marklogic with special character in element value?

I have a zip file which I loaded into the marklogic.zip file has many XML, and these XMLs have a special character in it. So while loading this xml out of zip file is throwing an error. How to handle this in MarkLogic?

First of all, the XML need to comply to the XML standard, meaning you can't just wrap any kind of special character in XML.

If that is the case, your file should be in a particular encoding. MarkLogic by default assumes UTF-8, regardless of the xml processing-instruction. You can tell it to either attempt a full-repair, which will make it do a guess at the encoding by looking at the first few lines of XML (still ignores the xml-pi), or you pass in the accurate encoding yourself.

HTH!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM