G
gustavo echeverry
hi there
i'm working on a C# application which takes a word's document content and
pastes it in oneNote, i got to a point when a need to add an image -base64
BMP- inside an outline -already added and image outside and works fine- and i
keep getting hrInvalidXML -0x80042001-, is there a way to validate the XML
issued to UpdatePageContent method.
here is the general structure:
<oneage ...
<oneageSettings RTL="false" color="automatic">
<oneageSize>
<one:Automatic />
</oneageSize>
<one:RuleLines visible="false" />
</oneageSettings>
<one:Title style="font-family:Calibri;font-size:17.0pt" lang="en-US">
<one:OE ...>
<one:T><![CDATA[text]]></one:T>
</one:OE>
</one:Title>
<one:Image format="png" originalPageNumber="0"
lastModifiedTime="2008-05-23T11:11:58.000Z"
objectID="{3711BDB5-54CB-4D89-AA81-825CE4C16668}{71}{B0}">
<oneosition x="36.0" y="40.0" z="1" />
<one:Size width="320.0" height="240.0" />
<one:CallbackID
callbackID="{3711BDB5-54CB-4D89-AA81-825CE4C16668}{71}{B0}" />
</one:Image>
<one:Outline ... >
<oneosition x="36.0" y="310.0000305175781" z="0" />
<one:Size width="520.0" height="29.2968635559082" />
<one:OEChildren>
<one:OE ...
</one:OE>
</one:OEChildren>
</one:Outline>
<one:Outline ... >
<oneosition x="36.0" y="359.2969055175781" z="2" />
<one:Size width="520.0" height="95.12889862060547" />
<one:OEChildren>
<one:OE ... >
<one:T><![CDATA[some text]]></one:T>
</one:OE>
<one:OE creationTime="2008-05-23T11:11:58.000Z"
lastModifiedTime="2008-05-23T11:11:58.000Z" alignment="left">
<one:Image format="bmp" originalPageNumber="0">
<oneosition x="36.0" y="40.0" z="4" />
<one:Size width="320" height="240" />
<oneata>
<![CDATA[BASE64 image]]>
</oneata>
</one:Image>
</one:OE>
</one:OEChildren>
</one:Outline>
</oneage>
Regards
i'm working on a C# application which takes a word's document content and
pastes it in oneNote, i got to a point when a need to add an image -base64
BMP- inside an outline -already added and image outside and works fine- and i
keep getting hrInvalidXML -0x80042001-, is there a way to validate the XML
issued to UpdatePageContent method.
here is the general structure:
<oneage ...
<oneageSettings RTL="false" color="automatic">
<oneageSize>
<one:Automatic />
</oneageSize>
<one:RuleLines visible="false" />
</oneageSettings>
<one:Title style="font-family:Calibri;font-size:17.0pt" lang="en-US">
<one:OE ...>
<one:T><![CDATA[text]]></one:T>
</one:OE>
</one:Title>
<one:Image format="png" originalPageNumber="0"
lastModifiedTime="2008-05-23T11:11:58.000Z"
objectID="{3711BDB5-54CB-4D89-AA81-825CE4C16668}{71}{B0}">
<oneosition x="36.0" y="40.0" z="1" />
<one:Size width="320.0" height="240.0" />
<one:CallbackID
callbackID="{3711BDB5-54CB-4D89-AA81-825CE4C16668}{71}{B0}" />
</one:Image>
<one:Outline ... >
<oneosition x="36.0" y="310.0000305175781" z="0" />
<one:Size width="520.0" height="29.2968635559082" />
<one:OEChildren>
<one:OE ...
</one:OE>
</one:OEChildren>
</one:Outline>
<one:Outline ... >
<oneosition x="36.0" y="359.2969055175781" z="2" />
<one:Size width="520.0" height="95.12889862060547" />
<one:OEChildren>
<one:OE ... >
<one:T><![CDATA[some text]]></one:T>
</one:OE>
<one:OE creationTime="2008-05-23T11:11:58.000Z"
lastModifiedTime="2008-05-23T11:11:58.000Z" alignment="left">
<one:Image format="bmp" originalPageNumber="0">
<oneosition x="36.0" y="40.0" z="4" />
<one:Size width="320" height="240" />
<oneata>
<![CDATA[BASE64 image]]>
</oneata>
</one:Image>
</one:OE>
</one:OEChildren>
</one:Outline>
</oneage>
Regards