如何使用EnmlWriter创建enml

时间:2017-02-07 17:58:58

标签: evernote

我想使用enmlwriter创建以下代码:

<en-note>  
    <span style="font-weight:bold;color:red;">Here's some bold red text!</span>  
</en-note>

但是下面的代码不起作用,我需要帮助。

Function NewNoteWriter() As ENMLWriter
    Dim writer As New ENMLWriter
    writer.WriteStartDocument()
    writer.WriteStartElement("span")
    writer.WriteAttributeString("style", "font-weight:bold;color:red;")
    writer.WriteEndElement()
    writer.WriteEndDocument()
    Return writer
End Function

0 个答案:

没有答案