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
IDobjectpredicatesubject
0?0cql://json#data?1
1?2cql://json#item?0
2?3cql://json#item?0
3http://example.orgcql://json#xmlns?0
4Hellocql://json#name?3
5Hellocql://json#name?2


command createXmlData

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

command exportXmlData

Size 25