S
shapper
Hello,
I am opening a xml document as follows:
XDocument _categories = XDocument.Load(String.Concat(path,
"Categories.xml"), LoadOptions.SetBaseUri);
Then I am adding a few Category nodes and saving it as follows:
_mimes.Save(new Uri(_categories.BaseUri).LocalPath);
If "Categories.xml" is not found when loading how can I create a new
one with this content:
<?xml version="1.0" encoding="utf-8" ?>
<Categories/>
Then I will add the Category nodes as usual and save it at the end as
Categories.xml on the defined path.
Thanks,
Miguel
I am opening a xml document as follows:
XDocument _categories = XDocument.Load(String.Concat(path,
"Categories.xml"), LoadOptions.SetBaseUri);
Then I am adding a few Category nodes and saving it as follows:
_mimes.Save(new Uri(_categories.BaseUri).LocalPath);
If "Categories.xml" is not found when loading how can I create a new
one with this content:
<?xml version="1.0" encoding="utf-8" ?>
<Categories/>
Then I will add the Category nodes as usual and save it at the end as
Categories.xml on the defined path.
Thanks,
Miguel