In an outline which is normally where the cursor falls,
You will get the following xml from the OneNote API
<one:OEChildren selected="partial"> <one:OE creationTime="2007-03-30T19:28:51.000Z" lastModifiedTime="2007-03-30T19:28:51.000Z" objectID="{20714761-3AA0-40A3-A8D4-6DA5FED88DD8}{29}{B0}" alignment="left" selected="partial">
<one:T selected="all"><![CDATA[]]></one:T> <one:T selected="all"><![CDATA[Words]]> </one:T> </one:OE> </one:OEChildren>
The key is that the T element has selected = all. The only way I see to insert a picture is to insert
< /one:OE> <one:OE> <one:Image><one:File path=" PictureLocation " /></one:Image> </one:OE>
<one:OE>
directly after the selected all T element above (so it will fall between the two).
It seems that you can not just stick an image element directly after the T element. I guess OE elements do not like the mixing on different elements under it. Am I wrong? Would there be an easy way to do this? The implementation I have in C# is just absolutely nasty and deals a lot which string manipulation.
Thanks, Derek
|
|