Customizing XML Output
When creating XML documents, each document has a root node of <root>
and child elements with names corresponding to each column title. You can override the default root element name using the -delimited_root_name
option. You can use the -namespace
option to specify a root namespace.
The following example produces documents with root element <person>
in the namespace http://my.namespace
.
$ mlcp.sh ... -mode local -input_file_path /space/mlcp/data \ -input_file_type delimited_text -namespace http://my.namespace \ -delimited_root_name person ... <person xmlns="http://my.namespace"> <first>george</first> <last>washington</last> </person> ...