[DEV] update new etk Uri API

This commit is contained in:
Edouard DUPIN 2018-10-23 22:19:31 +02:00
parent 3826dfb41a
commit 9844ad4bd4
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ static void readFromFile() {
exml::Document doc;
//! [exml_sample_declare_doc]
//! [exml_sample_read_file]
bool retParse = doc.load("DATA:///read.xml");
bool retParse = doc.load(etk::Uri("DATA:///read.xml"));
//! [exml_sample_read_file]
TEST_INFO("parse ret = " << retParse);
TEST_INFO("Debug display of the tree:");
@ -56,7 +56,7 @@ static void readFromString2() {
static void readFull() {
exml::Document doc;
TEST_INFO("parse");
bool retParse = doc.load("DATA:///read.xml");
bool retParse = doc.load(etk::Uri("DATA:///read.xml"));
TEST_INFO("parse ret = " << retParse);
TEST_INFO("Debug display of the tree:");
doc.display();

View File

@ -18,7 +18,7 @@ static void writeToFile() {
doc.nodes.add(exml::Comment("basic comment"));
TEST_INFO("store");
//! [exml_sample_write_file]
bool retGenerate = doc.store("generate.xml");
bool retGenerate = doc.store(etk::Path("generate.xml"));
//! [exml_sample_write_file]
TEST_INFO("parse ret = " << retGenerate);
TEST_INFO("Debug display of the tree:");