| 118 | } |
| 119 | |
| 120 | ValueVector arrayWithContentsOfFile(const ccstd::string &fileName) { |
| 121 | _resultType = SAX_RESULT_ARRAY; |
| 122 | SAXParser parser; |
| 123 | |
| 124 | CC_ASSERT(parser.init("UTF-8")); |
| 125 | parser.setDelegator(this); |
| 126 | |
| 127 | parser.parse(fileName); |
| 128 | return _rootArray; |
| 129 | } |
| 130 | |
| 131 | void startElement(void *ctx, const char *name, const char **atts) override { |
| 132 | CC_UNUSED_PARAM(ctx); |
no test coverage detected