home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Guidelines for storing/reading config info?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="kaburke" data-source="post: 17232" data-attributes="member: 11818"><p>My plugins use the MediaPortal.Profile.Xml object to read/store config info. Currently, I do the following to load the config:</p><p>[code]Xml xmlreader = new Xml("MediaPortal.xml");[/code]</p><p>I then read/write what I want, and finally call</p><p>[code]xmlreader.Save();[/code]</p><p>to save any changes.</p><p></p><p>This strikes my as incorrect. How should I be getting the config, and how (if I should be at all) should I be saving it?</p><p></p><p>(I have noticed that in the latest CVS version the Xml object no longer has a Save() Method.)</p></blockquote><p></p>
[QUOTE="kaburke, post: 17232, member: 11818"] My plugins use the MediaPortal.Profile.Xml object to read/store config info. Currently, I do the following to load the config: [code]Xml xmlreader = new Xml("MediaPortal.xml");[/code] I then read/write what I want, and finally call [code]xmlreader.Save();[/code] to save any changes. This strikes my as incorrect. How should I be getting the config, and how (if I should be at all) should I be saving it? (I have noticed that in the latest CVS version the Xml object no longer has a Save() Method.) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Guidelines for storing/reading config info?
Contact us
RSS
Top
Bottom