473,403 Members | 2,323 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,403 software developers and data experts.

mshtml does not generate valid XHTML?

Hi All,

I am generating a (X)HTML page in an IE webbrowser control (housed by a .Net
WinForm application) from a XML file using XSLT (using
Msxml2.DOMDocument.4.0). When the user clicks a button, control is returned
back to the WinForm application where I use mshtml to get a portion of the
web page (a table to be exact). Within the table cells, there are
checkboxes and textboxes that are being defined as INPUT elements (so the
user can change the values). The problem is that the INPUT elements are not
being returned as valid XML (see below). Specifically, the attribute values
do not have quote marks around them and there is no closing element for the
INPUT element node (i.e. </INPUT>). Although I can clean this up in the C#
code, I am curious to hear if this can somehow be resolved by applying a
property to mshtml or something. Thank you in advance.

This is what mshtml returns to me:
<INPUT type=checkbox name=SelectCheckBox2>
<INPUT size=25 value=BranchOffice1 name=value3>

This is the XSLT that generates the HTML
<!--
================================================== ==========================
========= -->
<xsl:template name="CheckBox">
<xsl:param name="XMLname" />
<xsl:param name="State" />
<xsl:element name="input">
<xsl:attribute name="XMLname"><xsl:value-of
select="$XMLname"/></xsl:attribute>
<xsl:attribute name="type">checkbox</xsl:attribute>
<xsl:if test="$State = 'true'">
<xsl:attribute name="checked">true</xsl:attribute>
</xsl:if>
</xsl:element>
</xsl:template>

<!--
================================================== ==========================
========= -->
<xsl:template name="TextBox">
<xsl:param name="XMLname"/>
<xsl:param name="Size"/>
<xsl:param name="Value"/>
<xsl:element name="input">
<xsl:attribute name="XMLname"><xsl:value-of
select="$XMLname"/></xsl:attribute>
<xsl:attribute name="type">text</xsl:attribute>
<xsl:attribute name="size"><xsl:value-of select="$Size"
/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="$Value"
/></xsl:attribute>
</xsl:element>
</xsl:template>
Nov 12 '05 #1
2 1542
Hi Anthony,

For this issue, we are currently finding some people to help on it, we will
reply to you ASAP. Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 12 '05 #2
Hi Anthony,

Thanks for your posting. Regarding on this issue, I've found another
duplicated thread in another group and some other community members have
posted reply there. I'd appreciate if you have a look there. In addition,
if you feel convenient that we continue to discuss in that thread, please
feel free to post there.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Anna | last post by:
Hi all. I have probably a rather stupid question. If there is an HTML document, XML-formed using JTidy, is there any tool to convert it to valid XHTML? I.e. so that all the tags and attribute...
3
by: Simon | last post by:
Hi, I have a webapp that allows an HTML description for an object to be saved. It used to be pure text with no formatting. This caused problems if the user entered (for example) and iframe tag,...
1
by: Newsgroup Reader | last post by:
I'm trying to create a chat program, however I find it most of the time these days clients use HTML or some sort of markup language to render text on the screen. My question is how would I render...
4
by: Lars-Erik Aabech | last post by:
Hi! I've been walking in extacy since reading the article about test automation with IE in the latest MSDN mag. (http://msdn.microsoft.com/msdnmag/issues/05/10/TestRun/default.aspx) After a...
22
by: Gianni Rondinini | last post by:
hi all. please excuse the misusage of some tech terms, but writing in english is not as easy as in italian :) i'm designing our new website and, since i want to do something that will last as...
20
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML...
44
by: rhythmace | last post by:
W3C HTML validator passes this: .... <script type="text/javascript" src="foo.js"> <script type="text/javascript"> ....script in here... </script> ....
5
by: Jason | last post by:
Hi, I'm developing an HTML Editor Control using VB.Net 2003 for an application that used to use the DHTML Editor Control that is no longer supported. Well, it's been fun but I've hit a wall with...
1
by: divyac | last post by:
I am doing an inventory project using PHP in which there is a text box.The customer id should be entered in that text box.If that customer id is valid,another text box should be generated in which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.