Hi everyone,
when using this
[code]Const kZero As String = “zero”
Dim bold As Boolean = True
Dim italic As Boolean = True
Dim xml As New XmlDocument
Dim rootNode, styleNode As XmlNode
rootNode = xml.AppendChild(xml.CreateElement(kZero, “style:style”))
rootNode.SetAttribute(“style:name”, “Name”) // working
rootNode.SetAttribute(“style:class”, “text”) // working
rootNode.SetAttribute(“style:parent-style-name”, “Standard”) // working
styleNode = rootNode.AppendChild(xml.CreateElement(kZero, “style:text-properties”))
If bold Then styleNode.SetAttribute(“fo:font-weight”, “bold”) // not working!
If italic Then styleNode.SetAttribute(“fo:font-style”, “italic”) // not working!![/code]
i’ll get the Error-Message “invalid namespace prefix”. Why the upper lines are working and why not the last two ones?