example XML

command createXmlData = exec_js {
"Java.type(\"catdata.Util\").writeFile(\" <data xmlns=\\\"http://example.org\\\">\\n    <item>\\n        <name>Hello</name>\\n    </item>\\n    <item>\\n        <name>Hello</name>\\n    </item>\\n</data> \", \"tempX.xml\")" 
}

instance I = import_xml_all "tempX.xml"


command exportXmlData = export_rdf_instance_xml I "fileO.xml" {
	external_types
		Integer -> "http://www.w3.org/2001/XMLSchema#Integer" "x => x.toString()"
}
Keywords:

export_rdf_instance_xml
import_xml_all
exec_js

Options:




instance I

R
IDpredicatesubjectobject
0cql://json#data?0?1
1cql://json#name?2Hello
2cql://json#item?1?3
3cql://json#item?1?2
4cql://json#xmlns?1http://example.org
5cql://json#name?3Hello


command createXmlData

Java.type("catdata.Util").writeFile(" \n    \n        Hello\n    \n    \n        Hello\n    \n ", "tempX.xml")

command exportXmlData

Size 25