Click here to Skip to main content
15,888,454 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionhow do i delete a xml file ? Pin
YiXiang_8916-May-09 22:47
YiXiang_8916-May-09 22:47 
Questionparse out the member name value Pin
califgal13-May-09 21:22
califgal13-May-09 21:22 
AnswerRe: parse out the member name value Pin
led mike14-May-09 4:36
led mike14-May-09 4:36 
QuestionParsing XML file -exception because element node contains a space in name Pin
califgal13-May-09 16:15
califgal13-May-09 16:15 
AnswerRe: Parsing XML file -exception because element node contains a space in name Pin
Samer Aburabie14-May-09 4:06
Samer Aburabie14-May-09 4:06 
GeneralRe: Parsing XML file -exception because element node contains a space in name Pin
Michael Dunn19-May-09 11:06
sitebuilderMichael Dunn19-May-09 11:06 
QuestionWriting an xml document Pin
dptalt12-May-09 5:55
dptalt12-May-09 5:55 
QuestionStoring binary data in xml file msxml and sending it to client through winsock Pin
hemlat11-May-09 20:27
hemlat11-May-09 20:27 
Hi,


I am developing a win32 console project for a smart device which acts as server in which I need to send jpeg file (binary data) stored in XML file to be transferred to client (in PC)through winsock. I am using fopen(),fscanf() to read the data in jpeg file into a buffer to be stored into the XML file element using put_text() and even I need to send it through socket by again reading the .xml file uisng fread into some buffer and sending it to the client.


But I am failing when I try to validate the XML file which is giving error

:XML Parsing Error: not well-formed
Location: http://www.w3schools.com/xml/xml_validator.asp
Line Number 1, Column 197:


And also if I try to send some .xml file formed on server to client through winsoch using fread() I am getting the error like
:Invalid at the top level of the document. Error processing resource 'file:///C:/Documents and Settings/root/My Documents/PC...


Below is the .xml file which I need to transfer

Plz kindly respond me in time wht steps shud be done for storing binary data into .xml file and sending the .xml file generated through socket using fread().

Thanks in advance for any help........

Regards,

Hema.

======================================================================================================================_________________________________________________________________________________________

.xml file:
<MobData><Application><UID/><Name/></Application><Report><CurrentTestSuiteID>1</CurrentTestSuiteID><CurrentTestCycleID>1</CurrentTestCycleID><CurrentTestCaseID>1</CurrentTestCaseID><ImageData>ÿØÿàJFIF



ÿþ*Cris made this JPEG with his own encoderÿÛ„ 

 $.' ",#(7),01444'9=82&lt;.342


2!!22222222222222222222222222222222222222222222222222ÿÀ
@ð


ÿÄ
¢


</ImageData></Report></MobData>
AnswerRe: Storing binary data in xml file msxml and sending it to client through winsock Pin
led mike12-May-09 4:38
led mike12-May-09 4:38 
QuestionStoring binary data in xml file msxml and sending it to client through winsock Pin
hemlat11-May-09 20:25
hemlat11-May-09 20:25 
AnswerRe: Storing binary data in xml file msxml and sending it to client through winsock Pin
Samer Aburabie14-May-09 4:09
Samer Aburabie14-May-09 4:09 
QuestionI am not able to read xml node in XPathNodeIterator Pin
Naveed72710-May-09 22:32
Naveed72710-May-09 22:32 
QuestionOIM in MSN15 getting error: invalid parameter Pin
amit090210-May-09 21:33
amit090210-May-09 21:33 
QuestionValidating XML file Pin
Sumit Prakash Sharma6-May-09 19:38
professionalSumit Prakash Sharma6-May-09 19:38 
AnswerRe: Validating XML file Pin
led mike7-May-09 4:37
led mike7-May-09 4:37 
QuestionXML / CSL Macros Pin
SimonCropper6-May-09 17:27
SimonCropper6-May-09 17:27 
AnswerRe: XML / CSL Macros Pin
led mike7-May-09 4:35
led mike7-May-09 4:35 
Questionchange attributes whitin XML Pin
Member 37528166-May-09 4:50
Member 37528166-May-09 4:50 
QuestionFinding an assembly redirection in app.config Pin
mav.northwind5-May-09 0:40
mav.northwind5-May-09 0:40 
AnswerRe: Finding an assembly redirection in app.config Pin
mav.northwind5-May-09 1:37
mav.northwind5-May-09 1:37 
QuestionSAXModelBuilder vs DOM Parser Pin
Josh Owen4-May-09 9:57
Josh Owen4-May-09 9:57 
AnswerRe: SAXModelBuilder vs DOM Parser Pin
led mike4-May-09 11:09
led mike4-May-09 11:09 
GeneralRe: SAXModelBuilder vs DOM Parser Pin
Josh Owen4-May-09 11:17
Josh Owen4-May-09 11:17 
GeneralRe: SAXModelBuilder vs DOM Parser Pin
led mike5-May-09 4:51
led mike5-May-09 4:51 
GeneralRe: SAXModelBuilder vs DOM Parser Pin
Josh Owen5-May-09 4:57
Josh Owen5-May-09 4:57 

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.