Discussion Locked

accessing program from XML document

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I am trying to create an interactive report generator. I am generating my report as an XML document from a C++ program, I have a IE5 component which displays the report in a webpage from my application. (FYI, I am using Borland C++ Builder 5 enterprise edition).
I wanted to insert some links in the report,
I want to know if it is possible to send a message to the main app when the user clicks on a link. I looked at the xlink property but IE5 does not support that recommendation yet.
Has anybody tried something like that before?
Ahy ideas will be appreciated.
Thanks.

6 replies

by jay eckles

Since XML is sort of a super set of HTML (not really, XML is a meta language, but I'm not getting into that argument...), you can use HTML means of communicating: Javascript, simple links, etc. If the C++ program contained a stripped-down HTTP server module, the document could communicate with the program by providing a link to http://localhost:port/ where port is the port number you setup the server to listen to. You could possibly setup a link to a "helper" application, that is a program when launched (via a hyperlink) communicates with the main program via API calls or something similar. There are lots of ways you could work around the problem...I guess which you choose depends on your contraints.

Good luck.

Jay Eckles
www.jayeckles.com

by zlatin zlatev

XML is not a presentation markup.
It is just a standard of data-transfer over Inet.

So, for the presentation of XML data you need to made an HTML or XSL that will show the data.

For data viewing you can use XMLDSO, MSXML Parser or pure XSL stylesheet.

Actually the XSL contains some HTML tags and can also contain Javascript code. It also contains xsl:namespace elements that define the way of interpreting one or other XML node.

More info is accessible at the Microsoft site - downloadthe MSXML 4.0 technology preview.

Best regards,
Zlatin Zlatev, MCP
(feel free to mail for questions or comments)

by ydane.masse

Thanks Zlatin,
I tried to use the XSL stylesheet tags. I didn't know that it allowed the use of Javascript. I saw your answer only after I closed the question.

This discussion is closed to new replies.