Click here to Skip to main content
15,885,216 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionObtaining MSXML interfacte Pin
koumodaki22-Aug-07 6:50
koumodaki22-Aug-07 6:50 
AnswerRe: Obtaining MSXML interfacte Pin
Michael Dunn22-Aug-07 7:42
sitebuilderMichael Dunn22-Aug-07 7:42 
QuestionPlease help in XMLReader of c#.NET Pin
hemendravyas20-Aug-07 19:53
hemendravyas20-Aug-07 19:53 
AnswerRe: Please help in XMLReader of c#.NET Pin
Stefan Troschuetz21-Aug-07 2:23
Stefan Troschuetz21-Aug-07 2:23 
QuestionIssues w/ xsd.exe tool Pin
mcs13019-Aug-07 1:14
mcs13019-Aug-07 1:14 
QuestionFOR XML EXPLICIT Pin
Riaan Booyzen14-Aug-07 22:20
Riaan Booyzen14-Aug-07 22:20 
QuestionConvert Excel to XML Pin
T4AMD14-Aug-07 9:43
T4AMD14-Aug-07 9:43 
QuestionXML file uploading Pin
Milind Panchal14-Aug-07 0:36
Milind Panchal14-Aug-07 0:36 
Hi,

I have a following client side code

how to upload xml file to server programatically.



// files upload function
function btn_send.onclick()
{
// create ADO-stream Object
var ado_stream = new ActiveXObject("ADODB.Stream");

// create XML document with default header and primary node
var xml_dom = new ActiveXObject("MSXML2.DOMDocument");
xml_dom.loadXML(' ');
// specify namespaces datatypes
xml_dom.documentElement.setAttribute("xmlns:dt", "urn:schemas-microsoft-com:datatypes");

// create a new node and set binary content
var l_node1 = xml_dom.createElement("file1");
l_node1.dataType = "bin.base64";
// open stream object and read source file
ado_stream.Type = 1; // 1=adTypeBinary
ado_stream.Open();
ado_stream.LoadFromFile("c:\\tmp\\myfile.doc");
// store file content into XML node
l_node1.nodeTypedValue = ado_stream.Read(-1); // -1=adReadAll
ado_stream.Close();
xml_dom.documentElement.appendChild(l_node1);

// we can create more XML nodes for multiple file upload

// send XML documento to Web server
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST","./default.aspx",false);
xmlhttp.send(xml_dom);
// show server message in message-area
div_message.innerHTML = xmlhttp.ResponseText;
}

QuestionImages path in xml Pin
seemamltn13-Aug-07 17:44
seemamltn13-Aug-07 17:44 
AnswerRe: Images path in xml Pin
Rocky#21-Aug-07 1:10
Rocky#21-Aug-07 1:10 
QuestionXMl document for Model the images Pin
seemamltn13-Aug-07 11:30
seemamltn13-Aug-07 11:30 
AnswerRe: XMl document for Model the images Pin
Rocky#21-Aug-07 1:13
Rocky#21-Aug-07 1:13 
QuestionData transfering in DTS from Access to SQl table Pin
Vimalsoft(Pty) Ltd13-Aug-07 4:35
professionalVimalsoft(Pty) Ltd13-Aug-07 4:35 
QuestionRe: Data transfering in DTS from Access to SQl table Pin
George L. Jackson16-Aug-07 0:19
George L. Jackson16-Aug-07 0:19 
Questionhow do we split single cell into rows in XSLT Pin
Vinay Dornala13-Aug-07 2:53
Vinay Dornala13-Aug-07 2:53 
AnswerRe: how do we split single cell into rows in XSLT Pin
George L. Jackson16-Aug-07 0:17
George L. Jackson16-Aug-07 0:17 
QuestionTable that spans multiple rows Pin
totig13-Aug-07 0:14
totig13-Aug-07 0:14 
AnswerRe: Table that spans multiple rows [modified] Pin
George L. Jackson13-Aug-07 3:09
George L. Jackson13-Aug-07 3:09 
Question(Another) XSLT - identity template - question [modified] Pin
Chris Losinger10-Aug-07 15:39
professionalChris Losinger10-Aug-07 15:39 
QuestionXSL Transformation Query Pin
Prashant C9-Aug-07 23:37
Prashant C9-Aug-07 23:37 
AnswerRe: XSL Transformation Query [modified] Pin
George L. Jackson12-Aug-07 13:38
George L. Jackson12-Aug-07 13:38 
QuestionXSLT Question (Urgent please) Pin
Ravikanth Gore9-Aug-07 22:28
Ravikanth Gore9-Aug-07 22:28 
Questiongetting attribute value of an element in xml file [modified] Pin
pradeep kumarappagari9-Aug-07 21:13
pradeep kumarappagari9-Aug-07 21:13 
AnswerRe: getting attribute value of an element in xml file Pin
led mike10-Aug-07 4:45
led mike10-Aug-07 4:45 
AnswerRe: getting attribute value of an element in xml file Pin
Xmen Real 16-Aug-07 18:50
professional Xmen Real 16-Aug-07 18:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.