我有以下代码为 iTunes 播客生成 XML 播客文件:
Dim writer As New XmlTextWriter("c:\jdir\test.xml", System.Text.Encoding.UTF8)
writer.WriteStartDocument(True)
writer.Formatting = Formatting.Indented
writer.Indentation = 4
writer.WriteStartElement("channel")
writer.WriteStartElement("title")
writer.WriteString("My Podcast")
writer.WriteEndElement()
....etc etc..
但是当我来到这部分时:
<itunes:image href="http://www.mywebsitehere.com/student.jpg" />
<itunes:category text="Education">
<itunes:category text="Education Technology"/>
</itunes:category>
<itunes:category text="Higher Education"/>
我不确定如何将href=添加到元素本身以及text=?
任何帮助都会很棒!