-
problem with select node in a XHTML file
Hi,
can you help me with this problem?
I have a xhtml file (file1) that I want clean
I want delete any attribuite "width" in TR tag.
I have write Visual Basic code, but nothing node is select.
This is my VB code :
Dim oNodeList As IXMLDOMNodeList
Dim oNode As IXMLDOMElement
If txtPathFile.Text <> "" Then
xmlDBiz.validateOnParse = False
xmlDBiz.Load (txtPathFile.Text)
Set oNodeList = xmlDBiz.selectNodes("//tr")
If oNodeList.length <> 0 Then
....
Else
.......
End If
........
End if
This is my XHTML file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml-stylesheet type="text/css" href="C:\IlSole24ORE\PROVE_dora\migrazione\_templatenew.xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org"/>
<title/>
</head>
<body>
<table class="fascettaLEGGE" border="0">
<tbody>
<tr>
<td align="left" width="70%" height="40">
<p class="parestremi">Circ. 10 luglio 1979, n.19</p>
</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td>
<p class="parepigrafe">
<b>Ministero delle
Finanze</b>
<br/>
<i>B..........................</i>
</p>
</td>
</tr>
</tbody>
</table>
</body>
</html>
How can I select all <tr> nodes in document?
Thank you for any help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks