943,931 Members | Top Members by Rank

Ad:
Feb 2nd, 2007
0

converting exe into xml

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
avani is offline Offline
2 posts
since Feb 2007
Feb 3rd, 2007
0

Re: converting exe into xml

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.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006
Feb 3rd, 2007
0

Re: converting exe into xml

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Feb 3rd, 2007
0

Re: converting exe into xml

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
avani is offline Offline
2 posts
since Feb 2007
Feb 4th, 2007
0

Re: converting exe into xml

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.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006
Feb 4th, 2007
0

Re: converting exe into xml

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in XML, XSLT and XPATH Forum Timeline: Xml file extraction query
Next Thread in XML, XSLT and XPATH Forum Timeline: Create proxy class from WSDL (.net & java)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC