regarding html in c


 
Thread Tools Search this Thread
Top Forums Programming regarding html in c
# 1  
Old 06-23-2007
regarding html in c

i wnt to generate dynamic xml in c
ima using gcc compiler.
can u show me the way.
thank u
# 2  
Old 06-23-2007
You can generate xml code with expat lib.
http://expat.sourceforge.net/

Best regards,
Iliyan Varshilov

Last edited by ilko_partizan; 06-23-2007 at 11:58 AM..
# 3  
Old 06-25-2007
thank u,
but i need to generate dynamic html usin unix,c.
how it can be possible
# 4  
Old 06-25-2007
HTML is just text, so you can generate HTML very easily. How to do depends on what you would like to do with the generated HTML, and what you exactly mean by "dynamic HTML".

If you don't explain what kind of situation clearly, others will not know what you want.
# 5  
Old 06-25-2007
thank u .
iam storing data in xml file.
i want show this data using html .
# 6  
Old 06-25-2007
If you have data in XML, and want to generate HTML text, you can create an XSLT stylesheet to transform XML into HTML, or you can write a C program that reads the XML with a library such as expat or xerces to generate HTML output with the DOM API.

And what do you mean by "show"? The C program generates HTML as output? Is the output used in a CGI environment? Or the C program has an embedded browser inside for displaying the HTML?

Again, if you are not explicit about what you want, it is difficult for others to help you.
# 7  
Old 06-25-2007
thank u very much
i want to show the xml data inside the web browser
i will explain with example:
this is my xml file
<record>
<name>sree</name>
<email>a@c.com</email>
<phoneno>12131232134343</phoneno>
</record>

now i want to show this data in webbrowser like this
name
sreenivas
email
a@c.com
phoneno
1231231231232132

thank u
sree
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Mutt for html body and multiple html & pdf attachments

Hi all: Been racking my brain on this for the last couple of days and what has been most frustrating is that this is the last piece I need to complete a project. There are numerous posts discussing mutt in this forum and others but I have been unable to find similar issues. Running with... (1 Reply)
Discussion started by: raggmopp
1 Replies

2. Shell Programming and Scripting

Get a value from HTML

Hi, I want to get a particular value from the html file. How to get value 1.16 from the below html <td class="" t="'','','&lt;B&gt;: &lt;/B&gt;277&lt;BR&gt;&lt;B&gt;: &lt;/B&gt;> 1.16 </td> Thanks for your help. Regards Neethu (5 Replies)
Discussion started by: Neethu
5 Replies

3. Shell Programming and Scripting

Removing all except couple of html tags from html file

I tried to find elegant (or at least simple) way to remove all but couple of html tags from html file, but all examples I found dealt with removing all the tags. The logic of the script would be: - if there is <li> or <ul> on the line, do nothing (=write same line to output) - if there is:... (0 Replies)
Discussion started by: juubuntu
0 Replies

4. Shell Programming and Scripting

Parsing HTML, get text between 2 HTML tags

Hi there, I'm quite new to the forum and shell scripting. I want to filter out the "166.0 points". The results, that i found in google / the forum search didn't helped me :( <a href="/user/test" class="headitem menu" style="color:rgb(83,186,224);">test</a><a href="/points" class="headitem... (1 Reply)
Discussion started by: Mysthik
1 Replies

5. UNIX for Dummies Questions & Answers

Sending html email with html attachment

Hello, I have a script which is sending an html file as an attachment. #!/usr/bin/ksh export MAILTO="user@company.com" export CONTENT="/usr/tmp/file.html" export SUBJECT="EmailSubject" ( echo "Subject: $SUBJECT" echo "MIME-Version: 1.0" echo "Content-Type: text/html" echo... (0 Replies)
Discussion started by: sreenathkg
0 Replies

6. Red Hat

Send HTML body and HTML attachment using MUTT command

Hi there.. I need a proper "mutt" command to send a mail with html body and html attachment at a time. Also if possible let me know the other commands to do this task. Please help me.. (2 Replies)
Discussion started by: vickramshetty
2 Replies

7. UNIX for Advanced & Expert Users

shellinabox/html help to insert a keypress with an html button

I am trying to use shellinabox as a terminal emulator. Everything is working except there seems to be no way to simulate an F14 button press in shellinabox. I am already embedding shellinabox in an html page so Im am wondering if there is a way to make an html/js button that will pass F14 to the... (0 Replies)
Discussion started by: syadnom
0 Replies

8. Shell Programming and Scripting

Sendmail with html attachment and html body

Hi folks, I have a perl script which sends out email after successful completion of job as inline html, I want to send it out as two parts now as html inline and html attachment. see the attached script. Thanks in advance (1 Reply)
Discussion started by: sol_nov
1 Replies

9. Web Development

Rewrite rules to change “link.html?hl=es” to “/es/link.html” etc?

Hey! Does anyone know how to create rewrite rules to change: “link.html?hl=en” to “/en/link.html” “link.html?hl=jp” to “/jp/link.html” “link.html?hl=es” to “/es/link.html” etc? Where "link.html" changes based on the page request? (2 Replies)
Discussion started by: Neo
2 Replies

10. UNIX for Dummies Questions & Answers

How do I extract text only from html file without HTML tag

I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part. Same problem happens in "type" command in MS-DOS. I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies
Login or Register to Ask a Question