<asp:xml> control

G

Guest

Hello All,

I have a simple web form that has an <asp:xml> control. I am using a
dataset's getXml() and binding it to the Document property of xml control. I
am also using an XSLTransform object to render the content as an HTML.
Everything is working fine and I am able to render the data in the form of a
table. Here is my problem:

When I want to copy the table that is rendered on the webpage along with the
data, I am not able to copy that to a word document and paste it. I do not
know why the table is not being copied to the word document.

When I do a "View Source" of the generated HTML, I am seeing the XML header
i.e., <?xml version="1.0" encoding="utf-8"?> mixed with other HTML tags. Why
is this being rendered in the browser's output. I understand that I am using
the xml control but does it usually render this code along with HTML. And I
am suspecting that it is the reason why I am unable to copy this content over
to a word document using CTRL+C.

Am I right in thinking this way? Any ideas or pointers? How can I stop the
engine from printing the XML header?

Thanks a lot!!
 
N

Neo Geshel

Diffident said:
Hello All,

I have a simple web form that has an <asp:xml> control. I am using a
dataset's getXml() and binding it to the Document property of xml control. I
am also using an XSLTransform object to render the content as an HTML.
Everything is working fine and I am able to render the data in the form of a
table. Here is my problem:

When I want to copy the table that is rendered on the webpage along with the
data, I am not able to copy that to a word document and paste it. I do not
know why the table is not being copied to the word document.

When I do a "View Source" of the generated HTML, I am seeing the XML header
i.e., <?xml version="1.0" encoding="utf-8"?> mixed with other HTML tags. Why
is this being rendered in the browser's output. I understand that I am using
the xml control but does it usually render this code along with HTML. And I
am suspecting that it is the reason why I am unable to copy this content over
to a word document using CTRL+C.

Am I right in thinking this way? Any ideas or pointers? How can I stop the
engine from printing the XML header?

Thanks a lot!!

The “XML header†is *supposed* to be present with any XHTML output. If
you have set your server to produce XHTML output, then any page whose
*entire* content is dynamically generated from scratch (or from another
bunch of data, such as an XML file) *should* have the XML header on the
very first line.

The only problem is, the XML header throws IE out of standards -
compliance mode, and into quirks mode. Which, of course, it shouldn’t.
But hey, that’s M$ for you. Broken company, broken browser... it seems
only their server stuff is decent these days...

I hope this helps.
...Geshel
--
*********************************************************************
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of “NEWSGROUP REPLY FOR NEO GESHEL†(all uppercase).
*********************************************************************
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top