User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the XML, XSLT and XPATH section within the Software Development category of DaniWeb, a massive community of 397,809 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,524 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our XML, XSLT and XPATH advertiser:
Views: 2965 | Replies: 5
Reply
Join Date: Feb 2007
Posts: 2
Reputation: avani is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
avani avani is offline Offline
Newbie Poster

converting exe into xml

  #1  
Feb 2nd, 2007
HOW TO CONVERT SIMPLE EXE FILE INTO XML FILE?

For example ,how can i convert a db2 file inot xml n transfer it as a web service


pls help
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 943
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 47
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: converting exe into xml

  #2  
Feb 3rd, 2007
Black magic perhaps?

You can't convert a binary executable file into an XML file. Of all the things XML may be, a programming/compilable language it is not. Perhaps you could get a script interprettor that worked with XML, but a translator from an EXE would be another matter entirely.

You might be able to convert a database into XML though. I imagine there are tools to do that, and it could even be done manually. I wouldn't advise it personally, because a straight 'translated' XML version of a small database (just tables without relationships) would be much larger than the original database, and cross-hierachy relationships (i.e. relationships beyond the obvious structure of a document) aren't easy to express using XML.
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,661
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 193
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: converting exe into xml

  #3  
Feb 3rd, 2007
You can easily transmit binary content in XML, just pack it inside a PCDATA section.
Won't be much help on the receiving end though in this case.

OP seems unaware of what A) webservices are, B) what databases are, and C) how to use either.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Join Date: Feb 2007
Posts: 2
Reputation: avani is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
avani avani is offline Offline
Newbie Poster

Re: converting exe into xml

  #4  
Feb 3rd, 2007
i want to know whether any exe files not 'db' specific it can be dlls also...
can it be transfered via web services...for which the content or syntax of the file shud be in soap xml format?
are there any special converters present?
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 943
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 47
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: converting exe into xml

  #5  
Feb 4th, 2007
Well. CDATA, and I suppose PCDATA also (I didn't even know that existed) are blocks within an XML file that are declared as 'deviant' from the natural XML format.. So If you put your dlls or whatever into an XML file, that wouldn't be converting them into XML, it would be wrapping XML tags around them and saving them as XML.

What you want to do avani, doesn't make a whole lot of sense right now. Why do you want to send DLLs in XML messages? There is probably a more normal solution to what your trying to do, i.e. loading a local DLL based on instructions in XML messages, or initializing the download of a DLL based on instructions in an XML message.

Although I suppose you could theoritically 'paste' program code inside XML and send it around, you cannot convert the syntax of a compiled DLL/EXE (or most compilable source code) into the syntax of an XML file. There's too many reasons why not.
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,661
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 193
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: converting exe into xml

  #6  
Feb 4th, 2007
He doesn't seem to understand how web services work, thinks that the actual executable code is sent over the wire and executed clientside.

That's not what happens.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb XML, XSLT and XPATH Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the XML, XSLT and XPATH Forum

All times are GMT -4. The time now is 6:22 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC