hmtl output class - C#

G

Greg Roberts

Hello good people

I know there are several classes to handle XML but i haven't found
a HTML output class (to a file, not an ASP context)

I want to be able to generate some reports to a "nice" output but don't want
to
know the html specifics .

Ideally i want to be able to load some XML style sheet and then
do some function calls (in C#) to pass a label then the text ...
title1="my dog has fleas" function call ,
paragraph="blah blah" etc.
tableheader="widgets,freddos"
tablerow="abc, def, ifk"
tablerow (repeated)
tableend

where the details for the oject type is encoded in the XML

Want something simple that allows you to pretty up what was a boring textual
output before .
Alternatively if the XML isn't there then some control of some simple
primatives like font size, color, bold

Thanks
 
K

Kevin Spencer

Have you looked at XSL?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
 
Z

Zeya

Greg,
Consider Kevin's suggestion.

Transform your XML using XSLT and stream it to a file or memory.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top