helloo<BR><BR>i am inserting records from a table into an xml file using the following function,,<BR>i cant set attribute for nodes. can i know how to set attribute while <BR>inserting number records into xml file..<BR><BR>function AddXMLNode( DOMXML, Parent, Name, Value )<BR> Set AddXMLNode = AddXMLNodeEx( DOMXML, Parent, Name, Value, "" )<BR>End Function<BR><BR>function AddXMLNodeEx( DOMXML, Parent, Name, Value, Namespace )<BR> dim objNode<BR> set objNode = DOMXML.createNode( 1, LCase(Name), Namespace)<BR> if Len(Value) &#060;&#062; 0 then<BR> objNode.text = Trim(Value)<BR> end if<BR> Parent.appendChild objNode<BR> set AddXMLNodeEx = objNode<BR>End Function<BR><BR><BR>Function RecordsetToXMLDoc( rs, NodeName )<BR> Dim objNodeCol, objNode, objXML, x<BR> set objXML = Server.CreateObject("Microsoft.XMLDOM")<BR> Set objNodeCol = AddXMLNode( objXML, objXML, NodeName & "s", "" )<BR> while rs.EOF = False<BR> Set objNode = AddXMLNode( objXML, objNodeCol, NodeName, "" )<BR> for each x in rs.fields<BR> AddXMLNode objXML, objNode, x.Name, Trim(x.Value)<BR> Next<BR> rs.MoveNext<BR> wend<BR> Set RecordsetToXMLDoc = objXML<BR> <BR> xmlPath = "C: est.xml"<BR> <BR> objXML.save xmlPath<BR>End Function<BR><BR>thanks in advance<BR><BR>Vinu.