An old thread here, but thought I'd give providing an answer a shot.
I'm in the process of building out a command line utility that uses the Microsoft Office Interop for OneNote to pipe documentation into Confluence over the REST API. The GetContent methods of that interop output XML strings which look very parseable in the cherry picked cases I've created thus far.
Confluence has great docs on using the REST API:
Using the OneNote Interop is a bit harder to find, but I found this answer on stackoverflow was enough to get me going:
Hi Community! My name is Kesha (kay-sha not Ke$ha) and I'm on the Confluence Product Marketing team. We are trying to understand and improve template use cases in Confluence, and are intereste...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot