From 3826dfb41a93d9513e8522b69fa721ebff4c5a65 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 9 Oct 2018 23:03:07 +0200 Subject: [PATCH] [SAMPLE] update new URI --- doc/read.md | 2 +- sample/read.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/read.md b/doc/read.md index cf7d679..d4465c1 100644 --- a/doc/read.md +++ b/doc/read.md @@ -21,7 +21,7 @@ File to read: "read.xml" Reading a file is done like this: @snippet read.cpp exml_sample_read_file -The file naming is manage by @ref etk::FSNode that provide "DATA:" start string for internal application asset. You can use external path like "./plop/file.xml" too. +The file naming is manage by @ref etk::FSNode that provide "DATA:///" start string for internal application asset. You can use external path like "./plop/file.xml" too. Read an XML Stream {#exml_tutorial_read_stream} diff --git a/sample/read.cpp b/sample/read.cpp index 97662ae..03794c3 100644 --- a/sample/read.cpp +++ b/sample/read.cpp @@ -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("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("DATA:///read.xml"); TEST_INFO("parse ret = " << retParse); TEST_INFO("Debug display of the tree:"); doc.display();