NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 34 35 36 37 38 … 93 Next »
Array of placements

 
  • 0 Vote(s) - 0 Average
Array of placements
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#1
2008-03-24, 12:59 AM
I want to pull the names of all the <Placements> in my skin.xml file into a string array - could anyone point me in the right direction - or better still - post a snippet...Big Grin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#2
2008-03-24, 01:05 AM
There is no skinhelper API that does this. You'd need to open your XmlDocument with skin.xml, then do something like

XmlNodeList placementNodes = document.SelectNodes("/settings/Placements/Placement);
foreach (XmlNode placementNode in placementNodes)
{
...do something, look at attribute names etc
}
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#3
2008-03-24, 02:10 AM
Thanks - I was hoping that I had missed something in skinhelper - however on the fun side, it looks like I'm about to find out how to explore the contents of any XML document...Big Grin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



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

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

Linear Mode
Threaded Mode