11 from __future__
import print_function
15 file_name = RMF.get_example_path(
"simple.rmf3")
21 def show_data_xml(nh, kc):
24 keys = rh.get_keys(kc)
30 print(
"<", rh.get_name(kc))
33 name.replace(
" ",
"_")
34 print(name,
"=\"" + str(v) +
"\"")
39 def show_xml(nh, kcs):
41 name.replace(
" ",
"_")
42 print(
"<node name=\"" + name +
"\" id=\"" + str(nh.get_id().get_index())\
43 +
"\" type=\"" + str(nh.get_type()) +
"\"/>")
47 children = nh.get_children()
56 print(
"<?xml version=\"1.0\"?>")
61 print(
"<description>")
62 print(rh.get_description())
63 print(
"</description>")
67 kcs = rh.get_categories()
68 show_xml(rh.get_root_node(), kcs)
FileConstHandle open_rmf_file_read_only(std::string path)