[DEV] update new etk Uri API
This commit is contained in:
parent
3826dfb41a
commit
9844ad4bd4
@ -17,7 +17,7 @@ static void readFromFile() {
|
|||||||
exml::Document doc;
|
exml::Document doc;
|
||||||
//! [exml_sample_declare_doc]
|
//! [exml_sample_declare_doc]
|
||||||
//! [exml_sample_read_file]
|
//! [exml_sample_read_file]
|
||||||
bool retParse = doc.load("DATA:///read.xml");
|
bool retParse = doc.load(etk::Uri("DATA:///read.xml"));
|
||||||
//! [exml_sample_read_file]
|
//! [exml_sample_read_file]
|
||||||
TEST_INFO("parse ret = " << retParse);
|
TEST_INFO("parse ret = " << retParse);
|
||||||
TEST_INFO("Debug display of the tree:");
|
TEST_INFO("Debug display of the tree:");
|
||||||
@ -56,7 +56,7 @@ static void readFromString2() {
|
|||||||
static void readFull() {
|
static void readFull() {
|
||||||
exml::Document doc;
|
exml::Document doc;
|
||||||
TEST_INFO("parse");
|
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("parse ret = " << retParse);
|
||||||
TEST_INFO("Debug display of the tree:");
|
TEST_INFO("Debug display of the tree:");
|
||||||
doc.display();
|
doc.display();
|
||||||
|
@ -18,7 +18,7 @@ static void writeToFile() {
|
|||||||
doc.nodes.add(exml::Comment("basic comment"));
|
doc.nodes.add(exml::Comment("basic comment"));
|
||||||
TEST_INFO("store");
|
TEST_INFO("store");
|
||||||
//! [exml_sample_write_file]
|
//! [exml_sample_write_file]
|
||||||
bool retGenerate = doc.store("generate.xml");
|
bool retGenerate = doc.store(etk::Path("generate.xml"));
|
||||||
//! [exml_sample_write_file]
|
//! [exml_sample_write_file]
|
||||||
TEST_INFO("parse ret = " << retGenerate);
|
TEST_INFO("parse ret = " << retGenerate);
|
||||||
TEST_INFO("Debug display of the tree:");
|
TEST_INFO("Debug display of the tree:");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user