Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I print Barcode with no page? Pin
Christian Graus12-Nov-06 16:48
protectorChristian Graus12-Nov-06 16:48 
QuestionUsing XPath in HTMLDocument Pin
jmd170112-Nov-06 15:51
jmd170112-Nov-06 15:51 
AnswerRe: Using XPath in HTMLDocument Pin
Christian Graus12-Nov-06 16:49
protectorChristian Graus12-Nov-06 16:49 
GeneralRe: Using XPath in HTMLDocument Pin
Guffa12-Nov-06 19:17
Guffa12-Nov-06 19:17 
GeneralRe: Using XPath in HTMLDocument Pin
Christian Graus12-Nov-06 20:02
protectorChristian Graus12-Nov-06 20:02 
GeneralRe: Using XPath in HTMLDocument Pin
Guffa12-Nov-06 21:23
Guffa12-Nov-06 21:23 
GeneralRe: Using XPath in HTMLDocument Pin
Christian Graus12-Nov-06 21:39
protectorChristian Graus12-Nov-06 21:39 
GeneralRe: Using XPath in HTMLDocument Pin
jmd170126-Nov-06 13:20
jmd170126-Nov-06 13:20 
Thanks for your answer, I don't totally agree with it, but I have to admit that its is close to correct.

Comming from the java world (I just pick up .Net this month) and having worked with Mozilla Firefox, I have navigated HTML (most accuratly DOM) using XPath before. In fact the DOM level 3 API does specifies an XPATH API which has been implemented in the mozilla browser and allows for XPATH navigation of HTML (last time I tried it about 6month ago it was very slow, but did work).

Since I need to be able to do some work with the HTML node that I would select via XPATH, (i.e In addtion to parse the text, I might need to change their HTML properties and have these result show in the HTML document) the options of creating a duplicate well-formed HTML or XHTML will not work for me.

After some reading and research, I decided to implement my own HTML XPATH navigator for HTML by extending the XPathNavigator class. Technically, my XPATH navigator navigates the DOM tree created by MSHTML and not the true HTML text source, but this will work fine for my purpose and to me is not differnt then manipulating the DOM via javascript. I am nearly done with my implementation, and hope to be finish testing in a few days, when I'm done, I'll put my code on the site.

Since I am navigating the DOM with my XPATH navigator instead of the source, there are a few notable differences:

1) All HTML Tag names have to be specified in upper case regardless of what case they were in the source document.
2) attribute node contain all the attributes specified in the schema (or at least most of them) so using the navigator navigation function like moveToFirstAttribute() probably will not position the the navigator curson on the first attribute specified in the source, but will position it on the first attribute according set of the union of those specified in the source and those specified in the schema. This is also fine for my purpose.


QuestionSystem.Data.OleDb & Microsoft Excel [modified] Pin
shopi3012-Nov-06 13:22
shopi3012-Nov-06 13:22 
AnswerRe: System.Data.OleDb & Microsoft Excel Pin
Anthony Mushrow13-Nov-06 12:59
professionalAnthony Mushrow13-Nov-06 12:59 
QuestionMaking a global variable Pin
Blekk12-Nov-06 12:02
Blekk12-Nov-06 12:02 
AnswerRe: Making a global variable Pin
Christian Graus12-Nov-06 12:20
protectorChristian Graus12-Nov-06 12:20 
GeneralRe: Making a global variable Pin
Blekk12-Nov-06 13:06
Blekk12-Nov-06 13:06 
GeneralRe: Making a global variable Pin
Anthony Mushrow12-Nov-06 13:12
professionalAnthony Mushrow12-Nov-06 13:12 
GeneralRe: Making a global variable Pin
Christian Graus12-Nov-06 13:57
protectorChristian Graus12-Nov-06 13:57 
AnswerRe: Making a global variable Pin
beatles169212-Nov-06 19:36
beatles169212-Nov-06 19:36 
GeneralRe: Making a global variable Pin
Blekk13-Nov-06 5:47
Blekk13-Nov-06 5:47 
GeneralRe: Making a global variable Pin
Blekk13-Nov-06 8:01
Blekk13-Nov-06 8:01 
QuestionSplitting a string message into a list of Objects Pin
kristamed12-Nov-06 11:50
kristamed12-Nov-06 11:50 
AnswerRe: Splitting a string message into a list of Objects Pin
Christian Graus12-Nov-06 12:05
protectorChristian Graus12-Nov-06 12:05 
AnswerRe: Splitting a string message into a list of Objects Pin
shopi3012-Nov-06 13:58
shopi3012-Nov-06 13:58 
AnswerRe: Splitting a string message into a list of Objects Pin
Alexandr Kovshovik12-Nov-06 20:36
Alexandr Kovshovik12-Nov-06 20:36 
QuestionHow to Set DataGridView.Rows[0].Visible To False ? Pin
hdv21212-Nov-06 10:27
hdv21212-Nov-06 10:27 
AnswerRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
Christian Graus12-Nov-06 11:15
protectorChristian Graus12-Nov-06 11:15 
GeneralRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
hdv21212-Nov-06 11:22
hdv21212-Nov-06 11:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.