Ive written a Powershell script to get information off a webpage (logs in, and navigates to the correct page), my problem is I now have a HTML document of 255 lines, and I only want 15 lines.
The contact is in a table between:-
<!-- #BeginEditable "Content...Area" -->
<!-- #EndEditable -->
The table has no ID or Names that I can try and extract data from, there is a title element above the table which reads '<p>Tree Number: 8</p>', but thought it would be easier to pull the HTML data from between the two "<!-- -->" and then extract the data from the cells like:-
$tdData = $htmlPulled.getElementsByTagName("td")
$userID = $tdData(4).innerhtml()
$userName = $tdData(5).innerhtml()
$userNumber = $tdData(6).innerhtml()
Only problem is I have no idea how to extract part of the html document and keep it as a html document so I can pull the elements out.