Hi
It is very complex for me, can help you me?
I have a Webservice, there would have one sql to still integrate.
[WebMethod]
public System.Xml.XmlNode GetXHTMLRichText()
{
//Create a temporary XmlDocument object to generate nodes.
System.Xml.XmlDocument tempDocument = new System.Xml.XmlDocument();
//Create a wrapper node for the data. This is necessary so
InfoPath
//correctly detects the XHTML content
System.Xml.XmlElement theNode =
(System.Xml.XmlElement)tempDocument.CreateNode(
System.Xml.XmlNodeType.Element, "theNode",
"
http://somearbitrarynamespace/" );
//Create a "font" element in the xhtml namespace.
System.Xml.XmlElement theFontNode =
(System.Xml.XmlElement)tempDocument.CreateNode(
System.Xml.XmlNodeType.Element, "font",
"
http://www.w3.org/1999/xhtml" );
theFontNode.InnerText= "Red Text";
//Add a color attribute.
System.Xml.XmlAttribute colorAttribute =
tempDocument.CreateAttribute(
"color" );
colorAttribute.Value = "#ff0000";
theFontNode.Attributes.Append( colorAttribute );
//Append the font node to the wrapper node
theNode.AppendChild( theFontNode );
//Return the wrapper element.
return theNode;
}
http://support.microsoft.com/kb/826996/en-us
Thanks
Gregor