8000 GitHub - cfoster/dict2xml: Create MarkLogic Spell / Dictionary XML documents from dictionary text files
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cfoster/dict2xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

dict2xml

Simple command line utility to convert a dictionary text file into a MarkLogic dictionary / spell XML file.

Example

e.g. a plain text dictionary file

Abra
Cadabra
Django
Tango
Zulu

would produce:

<dictionary xmlns="http://marklogic.com/xdmp/spell">
  <word>Abra</word>
  <word>Cadabra</word>
  <word>Django</word>
  <word>Tango</word>
  <word>Zulu</word>
</dictionary>

Usage

dict2xml input-dictionary.txt output-dictionary.xml

Building

  • Depends on libxml2
  • Tested with MacOS gcc-4.2

To compile on MacOS, use the following:

gcc -I/usr/include/libxml2 -lxml2 -o dict2xml dict2xml.c

About

Create MarkLogic Spell / Dictionary XML documents from dictionary text files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0