Skip to content

Adding XPath to SpeakableSpecification #431

Answered by Turnerj
twilliamsca asked this question in Q&A
Discussion options

You must be logged in to vote

So XPath is a pending property/type for Schema.org so you'll need to use Schema.NET.Pending - this library contains all current + pending classes and properties. You can see it here: https://www.fuget.org/packages/Schema.NET.Pending/11.0.1/lib/netstandard2.0/Schema.NET.Pending.dll/Schema.NET/SpeakableSpecification

It would look something like:

new SpeakableSpecification
{
    Xpath = "/html/head/meta[@name='description']/@content"
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RehanSaeed
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants