OneNote COM API XML中缺少data-id属性 [英] Missing data-id attribute in OneNote COM API XML
问题描述
您好,
我想开发一个利用OneNote REST API的服务器端应用程序。此外,我想在OneNote桌面应用程序中为它构建一个简单的UI。
但是由于REST API页面HTML和COM XML架构之间存在差异,因此出现了问题。具体而言,属性" data-id "对于在OneDrive中存储
的特定页面,COM XML Schema中缺少提供给任何元素的自定义数据。
有没有办法如何设置data-id值从OneNote COM AddIn我的服务器端进程可以通过REST API获取?
是否有计划将这些不同标记语言的聚合用于一个目的? : - )
最好的问候,
Jiri
嗨吉日,
> ;>但是由于REST API页面HTML和COM XML架构之间存在差异而出现问题
检查OneNote XML后,我没有找到任何"data-id"。它似乎特定于OneNote页面的输入和输出HTML。我不确定它是否与OneNote Rest没有设置有关。我建议您
尝试通过OneNote Rest添加"data-id",然后通过OneNote Spy检查xml文档,看看是否可以找到"data-id"的值。如果没有,恐怕我们无法设置Com AND rest api之间共享的data-id。如果你能找到,我想你可以尝试
检索xml来设置值。
了解更多有关OneNote Spy的信息,我建议您参考下面的链接:
OneNote 2010的#OneNote Spy(omspy)
https://blogs.msdn.microsoft.com/johnguin/2011/07/28/onenote-spy-omspy-for-onenote-2010/ 跨度>
最诚挚的问候,
爱德华跨度>
Hello,
I would like to develop a server side application that utilizes OneNote REST API. Also, I would like to build a simple UI for it inside OneNote desktop application.
But here comes problems due to discrepancy between REST API page HTML and COM XML schema. Specifically, attribute "data-id" which is custom data supplied to any element, is missing from COM XML Schema for a specific page stored in OneDrive.
Is there a way how to set a data-id value from OneNote COM AddIn that my server-side process could obtain through REST API?
Are there plans for a convergency of these distinct markup languages serving one purpose? :-)
Best regards,
Jiri
Hi Jiri,
>> But here comes problems due to discrepancy between REST API page HTML and COM XML schema
After checking the OneNote XML, I did not find any "data-id". It seems it is specific to Input and Outlput HTML for OneNote pages. I am not sure whether it is related with that I did not set it by OneNote Rest. I suggest you try to add "data-id" by OneNote Rest, and then check the xml document by OneNote Spy to see if you could find the value for "data-id". If not, I am afraid we could not set data-id shared between Com AND rest api. If you could find, I think you could try to retrieve the xml to set the value.
For more information about OneNote Spy, I suggest you refer the link below:
# OneNote Spy (omspy) for OneNote 2010
https://blogs.msdn.microsoft.com/johnguin/2011/07/28/onenote-spy-omspy-for-onenote-2010/
Best Regards,
Edward
这篇关于OneNote COM API XML中缺少data-id属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!