mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 03:04:00 +00:00
TVLXML works
This commit is contained in:
parent
f86615677c
commit
7a3e19b694
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
NSURL * dtdURL = [[NSBundle bundleForClass:[TVLXML class]] URLForResource:@"partwise" withExtension:@"dtd"];
|
NSURL * dtdURL = [[NSBundle bundleForClass:[TVLXML class]] URLForResource:@"partwise" withExtension:@"dtd"];
|
||||||
NSXMLDTD * dtd = [[NSXMLDTD alloc] initWithContentsOfURL:dtdURL options:0 error:&err];
|
NSXMLDTD * dtd = [[NSXMLDTD alloc] initWithContentsOfURL:dtdURL options:0 error:&err];
|
||||||
[dtd setName:@"partwise.dtd"];
|
[dtd setName:@"score-partwise"];
|
||||||
|
|
||||||
STAssertNotNil(dtd, @"DTD: %@\n", [err localizedDescription]);
|
STAssertNotNil(dtd, @"DTD: %@\n", [err localizedDescription]);
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
STAssertNotNil(xml, @"Parsing `%@': %@", testName, [err localizedDescription]);
|
STAssertNotNil(xml, @"Parsing `%@': %@", testName, [err localizedDescription]);
|
||||||
|
|
||||||
[xml setDTD:dtd];
|
[xml setDTD:dtd];
|
||||||
STAssertTrue([xml validateAndReturnError:&err], @"Validating `$@': %@", testName, [err localizedDescription]);
|
STAssertTrue([xml validateAndReturnError:&err], @"Validating `%@': %@", testName, [err localizedDescription]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user