ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Functions
validateMioctEncodingFileDTD Namespace Reference
Functions
main
()
Function Documentation
◆
main()
main
(
)
Definition at line
7
of file
validateMioctEncodingFileDTD.py
.
7
def
main
():
8
9
if
len(sys.argv)<=1:
10
print
(
"Usage:\n%s TestGeomety.xml"
% sys.argv[0])
11
return
1
12
13
xmlfile = sys.argv[1]
14
15
checkResult = os.system(
"get_files -xmls -symlink MUCTPIGeometry.dtd"
)
16
if
checkResult != 0:
17
print
(
"ERROR Could not find MUCTPIGeometry.dtd in $DATAPATH"
)
18
return
1
19
20
checkResult = os.system(
"xmllint --noout --dtdvalid MUCTPIGeometry.dtd %s"
% xmlfile)
21
if
checkResult == 0:
22
print
(
"XML file %s is conform with MUCTPIGeometry.dtd"
% xmlfile)
23
else
:
24
print
(
"ERROR the XML does not follow the document type definition MUCTPIGeometry.dtd"
)
25
return
1
26
27
return
0
28
print
void print(char *figname, TCanvas *c1)
Definition
TRTCalib_StrawStatusPlots.cxx:26
main
int main()
Definition
hello.cxx:18
Generated on
for ATLAS Offline Software by
1.17.0