470,631 Members | 1,418 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,631 developers. It's quick & easy.

<asp:xml> control

Hello All,

I have a simple web form that has an <asp:xmlcontrol. 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!!
Mar 1 '07 #1
1 1643
Diffident wrote:
Hello All,

I have a simple web form that has an <asp:xmlcontrol. 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 formof 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).
************************************************** *******************
Mar 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Greg Collins [MVP] | last post: by
reply views Thread by Random | last post: by
1 post views Thread by Danny Ni | last post: by
1 post views Thread by Monster | last post: by
2 posts views Thread by Mark Rae | last post: by
reply views Thread by =?Utf-8?B?RGlmZmlkZW50?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.