NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 15 16 17 18 19 … 93 Next »
config.xml & unvisible

 
  • 0 Vote(s) - 0 Average
config.xml & unvisible
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#1
2011-06-17, 11:51 PM
Greetings all,

just wondered, with NextPVR/GB-PVR I do something like:

<!-- MVP Study -->
<MAC-000DFxxxxxxx>
<MVPVideoStandard>auto</MVPVideoStandard>
<MVPSendIncrementalUpdates>true</MVPSendIncrementalUpdates>
<MVPFlickerFilter>none</MVPFlickerFilter>
<MVP16x9Mode>false</MVP16x9Mode>
<MVPOutput>1</MVPOutput>
<MVPWidth>680</MVPWidth>
<MVPHeight>554</MVPHeight>
<MVPOffsetX>20</MVPOffsetX>
<MVPOffsetY>20</MVPOffsetY>
<MVPTranscodeTS>false</MVPTranscodeTS>
</MAC-000DFxxxxxxx>

where the

<!-- hello world -->

or

<!-- MVP Study -->

is ignored by NextPVR and does not affect the config loading.

My question would be is there a way to read that part of the config.xml and link it to the MVP specific underneath?

with vb.net and the xml document class?

I didn't want to bother Mr bgowland too much on this one as I constantly pester him Big Grin

cheers

steeb
[SIZE="1"]When you have eliminated the impossible, whatever remains, however improbable, must be the truth.[/SIZE]

[SIZE="2"]NextPVR Documentation (wiki) admin/contributor[/SIZE]

profile on wiki & computer specifications
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,163
Threads: 958
Joined: May 2006
#2
2011-06-18, 12:07 AM
A comment is just a Node of the Parent so you shouldn't have trouble getting the contents. I would just add my own markup to config.xml and expect that sub will ignore it. ie <FriendlyName>Kitchen MVP</FriendlyName>

Martin
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#3
2011-06-18, 12:14 AM
mvallevand Wrote:A comment is just a Node of the Parent so you shouldn't have trouble getting the contents. I would just add my own markup to config.xml and expect that sub will ignore it. ie <FriendlyName>Kitchen MVP</FriendlyName>

Martin

Thanks Martin, just, exactly what I needed to hear, so I should be able to treat the comment as a child node and that would still be readable in the document class? I did try but could not get that work. Note to self: I MUST try harder Big Grin

steeb
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#4
2011-06-18, 12:16 AM
mvallevand Wrote:A comment is just a Node of the Parent so you shouldn't have trouble getting the contents. I would just add my own markup to config.xml and expect that sub will ignore it. ie <FriendlyName>Kitchen MVP</FriendlyName>

Martin

Ahhh, no just re-read that. What do you find when you try? If I put ANY tag <Steeb>Hello</Steeb> into config.xml we have burn out?

steeb
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,163
Threads: 958
Joined: May 2006
#5
2011-06-18, 12:39 AM
Try harder is your mantra tonight. I added your markup and using basic XPath there is no issue with

Code:
System.Xml.XmlNode steeb = NUtility.SettingsHelper.GetInstance().GetSettingsNode("//Steeb");
            Debug.WriteLine(steeb.InnerText);

Martin
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#6
2011-06-18, 12:49 AM
mvallevand Wrote:Try harder is your mantra tonight. I added your markup and using basic XPath there is no issue with

Code:
System.Xml.XmlNode steeb = NUtility.SettingsHelper.GetInstance().GetSettingsNode("//Steeb");
            Debug.WriteLine(steeb.InnerText);

Martin

we need to be loading xml.document class with .net 2.0. syntax. xpath not, I believe, in my realm. Also here you are treating this, I think, as a plugin to NextPVR?

I wish I could Big Grin I am hoping with time my editor would integrate itself better with NextPVR. You are saying that if I utilise the plugin code built within NextPVR then I can achieve what I want to do Big Grin

Ummm that sets back my project again! again, again, again Wink

I try, thanks Martin

steeb
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,163
Threads: 958
Joined: May 2006
#7
2011-06-18, 12:59 AM
I used a plugin simply to show that NPVR should not have problems with custom markup, you don't need to use a plugin or XPath if you don't want to,

Martin
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#8
2011-06-18, 01:19 AM
mvallevand Wrote:I used a plugin simply to show that NPVR should not have problems with custom markup, you don't need to use a plugin or XPath if you don't want to,

Martin

Thanks Martin, difficult as I am.....

Gotcha now. And I don't mean 'gotcha' like caught you out. I mean 'gotcha' as in where you are coming from and explaining to me.

I don't want to use xpath. Fine.

I was not closing my nodes Big Grin

An open and closed node around, say, a PCH specific, does not appear to cause a problem (I know, that is what you were saying, all along!)

But geniui sometimes have to talk to their lowest common denominator. That's me!

Maybe my ACE for NextPVR will see the light of day, sometime.

very best

steeb
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#9
2011-06-19, 12:09 AM
Many thanks Martin, just for a follow up I realised something else that was causing problems.

In the past I had always used something like:

<!-- MVP Study -->

purely as a referential note to myself when digging about in the config.xml

I found one of the problems I was having was translating this into a readable reference in the config.xml file without upsetting NextPVR. The reason..... whitespace I guess

An extra node

<steebtest>
</steebtest>

would appear to be handled very gracefully by NextPVR

but

<steeb test>
</steeb test>

does appear to cause problems?

could I check then that you tried with

<FriendlyName>Kitchen MVP</FriendlyName>

which of course has the whitespace? And therefore what I may have missed?

many thanks

steeb
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#10
2011-06-19, 12:16 AM
I take that all back, writing stuff down clears the mind often Big Grin

I, of course, am using the whitespace within the node name as opposed to the comment... hmmm off to think

all the best

steeb
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Settings config screen for class IEventNotification plugin imilne 9 3,679 2011-09-17, 06:06 PM
Last Post: sub
  Calling NextPVR restart after config.xml changes steeb 33 10,827 2011-05-02, 04:24 PM
Last Post: steeb
  Config.xml saving mvallevand 6 2,692 2010-01-08, 06:32 AM
Last Post: mvallevand
  Reading config.xml McBainUK 4 2,366 2009-03-26, 04:28 PM
Last Post: JavaWiz
  Plugin settings in the Config application Khurram 6 2,653 2008-06-09, 04:20 AM
Last Post: Khurram
  Easy .net snippet for accessing config.xml? zehd 3 1,768 2008-03-23, 05:58 AM
Last Post: zehd
  Start Menu Shortcut & config.xml Ommina 3 2,622 2007-12-19, 11:05 PM
Last Post: sub
  PVRX2 Plugin in Config all psycik 7 2,548 2007-08-18, 03:29 AM
Last Post: sub
  Help needed with error in config.exe.log idkpmiller 3 1,883 2007-01-24, 06:08 AM
Last Post: sub
  plugin not appearing in config but running in GBPVR idkpmiller 3 1,733 2006-11-08, 01:20 PM
Last Post: McBainUK

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode