Adding XPath to SpeakableSpecification #431
Answered
by
Turnerj
twilliamsca
asked this question in
Q&A
|
If I want to have a SpeakableSpecification value for ["/html/head/meta[@name='description']/@content"] as a XPath value, how would I add to my Schema? |
Answered by
Turnerj
Apr 30, 2022
Replies: 2 comments
|
So It would look something like: new SpeakableSpecification
{
Xpath = "/html/head/meta[@name='description']/@content"
} |
0 replies
Answer selected by
RehanSaeed
|
Please try not to ping me next time :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So
XPathis a pending property/type for Schema.org so you'll need to useSchema.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/SpeakableSpecificationIt would look something like: