| 300 | } |
| 301 | |
| 302 | void readFromXmlStream(DocumentPtr doc, std::istream& stream, FileSearchPath searchPath, const XmlReadOptions* readOptions) |
| 303 | { |
| 304 | searchPath.append(getEnvironmentPath()); |
| 305 | |
| 306 | xml_document xmlDoc; |
| 307 | xml_parse_result result = xmlDoc.load(stream, getParseOptions(readOptions)); |
| 308 | validateParseResult(result); |
| 309 | |
| 310 | documentFromXml(doc, xmlDoc, searchPath, readOptions); |
| 311 | } |
| 312 | |
| 313 | void readFromXmlFile(DocumentPtr doc, FilePath filename, FileSearchPath searchPath, const XmlReadOptions* readOptions) |
| 314 | { |
no test coverage detected