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
RID | predicate | subject | object |
---|
0 | cql://json#name | ?0 | Hello |
1 | cql://json#name | ?1 | Hello |
2 | cql://json#item | ?2 | ?1 |
3 | cql://json#item | ?2 | ?0 |
4 | cql://json#xmlns | ?2 | http://example.org |
5 | cql://json#data | ?3 | ?2 |
command createXmlData
Java.type("catdata.Util").writeFile(" \n - \n Hello\n
\n - \n Hello\n
\n ", "tempX.xml")
command exportXmlData
Size 25