Adding XPath to SpeakableSpecification #431
-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
So It would look something like: new SpeakableSpecification
{
Xpath = "/html/head/meta[@name='description']/@content"
} |
Beta Was this translation helpful? Give feedback.
-
Please try not to ping me next time :) |
Beta Was this translation helpful? Give feedback.
So
XPath
is 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: