Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Embed xml

From: "murali.trichy" <murali.trichy@-----.--->
To: NULL
Date: 3/3/2006 6:21:00 AM
wow,
really thanks guys I'm also solved -
main function which I used here is : ReplaceChild() and AppendChild()
and other part of coding which I need to do.


                            XmlElement newcatalogentry =
xmldoc.CreateElement("TABLE");
                            XmlAttribute tblwidthattr =
xmldoc.CreateAttribute("width");
                            tblwidthattr.Value = "100%";


newcatalogentry.SetAttributeNode(tblwidthattr);
                            XmlAttribute tblcspaceattr =
xmldoc.CreateAttribute("cellspacing");
                            tblcspaceattr.Value = "0";


newcatalogentry.SetAttributeNode(tblcspaceattr);
                            XmlAttribute tblcpadattr =
xmldoc.CreateAttribute("cellpadding");
                            tblcpadattr.Value = "0";


newcatalogentry.SetAttributeNode(tblcpadattr);


                            XmlAttribute newcatalogattr =
xmldoc.CreateAttribute("ID");
                            newcatalogattr.Value = "custctltbl2_1";


newcatalogentry.SetAttributeNode(newcatalogattr);
                            XmlElement firstelement =
xmldoc.CreateElement("TR");
                            newcatalogentry.AppendChild(firstelement);
                            XmlAttribute trtxtwidthattr =
xmldoc.CreateAttribute("width");
                            trtxtwidthattr.Value = "100%";


firstelement.SetAttributeNode(trtxtwidthattr);


                            XmlElement tdxe =
xmldoc.CreateElement("TD");
                            XmlAttribute tdtxtwidthattr =
xmldoc.CreateAttribute("width");
                            tdtxtwidthattr.Value = "100%";
                            tdxe.SetAttributeNode(tdtxtwidthattr);
                            firstelement.AppendChild(tdxe);


                            XmlNode xnode = xnod.Clone();
                            tdxe.AppendChild(xnode);


                            XmlElement lstelmt =
xmldoc.CreateElement("SELECT");
                            XmlAttribute sltwidthattr =
xmldoc.CreateAttribute("style");
                            sltwidthattr.Value = "width:91%";
                            lstelmt.SetAttributeNode(sltwidthattr);


                            XmlAttribute selidattr =
xmldoc.CreateAttribute("ID");
                            selidattr.Value = "custsugg" + id;
                            lstelmt.SetAttributeNode(selidattr);
                            XmlAttribute selclsattr =
xmldoc.CreateAttribute("classname");
                            selclsattr.Value = "drp";
                            lstelmt.SetAttributeNode(selclsattr);
                            XmlAttribute selsizeattr =
xmldoc.CreateAttribute("size");
                            selsizeattr.Value = "4";
                            lstelmt.SetAttributeNode(selsizeattr);
                            XmlElement tdlstelmt =
xmldoc.CreateElement("TD");
                            XmlAttribute tdsltwidthattr =
xmldoc.CreateAttribute("width");
                            tdsltwidthattr.Value = "100%";
                            tdlstelmt.SetAttributeNode(tdsltwidthattr);

                            tdlstelmt.AppendChild(lstelmt);


                            XmlElement trlstelmt =
xmldoc.CreateElement("TR");
                            XmlAttribute tridattr =
xmldoc.CreateAttribute("ID");
                            tridattr.Value = "custsugg" + id;
                            trlstelmt.SetAttributeNode(tridattr);


                            XmlAttribute trsltwidthattr =
xmldoc.CreateAttribute("width");
                            trsltwidthattr.Value = "100%";
                            trlstelmt.SetAttributeNode(trsltwidthattr);

                            XmlAttribute trposatt =
xmldoc.CreateAttribute("style");
                            trposatt.Value =
"position:absolute;display:none;visibility:hidden";
                            trlstelmt.SetAttributeNode(trposatt);


                            trlstelmt.AppendChild(tdlstelmt);
                            newcatalogentry.AppendChild(trlstelmt);


                            divnod.ReplaceChild(newcatalogentry, xnod);



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent