Ich muss einen Weg finden, um ein Objekt aus HTML-Datei mit Xpath oder HTML-Selektoren zu finden.Html Agility Pack: SelectSingleNode und XPath sind nicht verfügbar auf Xamarin Forms Plattform
Da Selektoren im HTML Agility Pack nicht unterstützt werden, versuche ich XPath zu verwenden.
Leider scheint SelectSingleNode (Zeichenfolge somexpathvalue) nicht auf Xamarin Forms verfügbar. HtmlNode enthält keine Definition davon.
Ich habe in NuGet gefunden, dass ich System.Xml.XPath nicht installiert habe. Wenn ich versuche, es zu tun, sehe ich einen Fehler:
Severity Code Description Project File Line Suppression State Error Could not install package 'System.Xml.XPath 4.0.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0
Gibt es eine Möglichkeit, SelectSingleNode ohne System.Xml.XPath verwenden könnte?