Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with HtmlProvider (no named tables :( ) #16

Open
krzysztofkroczak opened this issue Jan 28, 2019 · 0 comments
Open

Problem with HtmlProvider (no named tables :( ) #16

krzysztofkroczak opened this issue Jan 28, 2019 · 0 comments

Comments

@krzysztofkroczak
Copy link

We did this kata in my company to play with type providers. But we've struggled with HtmlProvider, because it didn't provide meaningful names for tables
image
Due to documentation

The generated type provides a type space of tables that it has managed to parse out of the given HTML Document. Each type's name is derived from either the id, title, name, summary or caption attributes/tags provided. If none of these entities exist then the table will simply be named Tablexx where xx is the position in the HTML document if all of the tables were flatterned out into a list. The Load method allows reading the data from a file or web resource. We could also have used a web URL instead of a local file in the sample parameter of the type provider. The following sample calls the Load method with an URL that points to a live version of the same page on wikipedia.

We tried to add HTML id to the table, but nothing changed :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant