OneNote API & DocumentElement.SelectNodes Namespace

Copper Contributor

I am trying to work out how to run a bit of sample code that is found here: 


I have had to change parts of the code in order for it to run since it seems to be outdated (this was from the 2010 reference).  The part I'm currently stuck on is giving me an error regarding the namespace being incorrect in this line:  Set GetFirstOneNoteNotebookNodes = doc.DocumentElement.SelectNodes("//one:Notebooks")


What is the correct query string to enter, rather than "//one:Notebooks"?  Thanks.


0 Replies