473,388 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

<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 1740
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Fresh Air Rider | last post by:
Hello Could anyone please explain how I can pass more than one arguement/parameter value to a function using <asp:linkbutton> or is this a major shortfall of the language ? Consider the...
1
by: Greg Collins [MVP] | last post by:
I've got a web site I've built that uses an InfoPath form to generate an xml file. This file is then transformed within the default.aspx page to create the contents of the page. The problem I'm...
0
by: Random | last post by:
I would like to be able to read an Xml file with an <asp:Xml> Web Control and using XSLT dynamically write <asp:Xml> Web Controls to the page using the information from the first Xml file, which...
1
by: Danny Ni | last post by:
Hi, I use the <asp:xml> control, xml and xslt to generate a HTML for users to input data, here is my HTML snippet in a web form: <asp:Xml id="Xml1" runat="server" TransformSource="entry.xsl"...
2
by: AnandaSim | last post by:
Hi All, I'd like to use a static XML file as a source of data to any of the <asp: list controls. I have produced the .xml file, inferred a schema - .xsd, generated a dataset .vb. How do I...
1
by: Monster | last post by:
When <asp:xml is included in the aspx page, the source page contains this line "<?xml version="1.0" encoding="utf-8"?>" which shouldn't be in the html file.
2
by: Mark Rae | last post by:
Hi, I'm interested in what people think of the new <asp:Menu> control in comparison to other 3rd-party menu controls. E.g. until v2, I used the AITOC FlexMenu...
2
by: bissatch | last post by:
Hi, I am trying to output a list of checkboxes. Using ASP .NET controls, I was able to create the following: <label for="colour_red">Red: </label><asp:CheckBox ID="colour_red" runat="server"...
0
by: =?Utf-8?B?RGlmZmlkZW50?= | last post by:
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.