3
I’m using the plugin Html Agility Pack
to manipulate html
And I would like him to capture my elements that use tag
customized
I tried it this way:
HtmlDocument html = new HtmlDocument();
html.Load(new StringReader(Document.Content)); //Aqui é o meu html, ele não possui <body> ele vem carregado do banco
var teste = html.DocumentNode.SelectNodes("//Tag-Teste"); //no html está <tag-teste>conteudo</tag-teste>
but the variable teste
get back to me null
You can post a piece of this HTML?
– stderr
@Qmechanic73, the error was because I was using the uppercase initials in Selectnodes, in html, are in that format, but it did not capture, I switched to minuscules only in Selectnodes, it worked, I do not know the reason, so I will not formulate an answer, if you know, formulate
– Rod
I’ll risk an answer. :)
– stderr