Release body:
/NewsML/NewsItem/NewsComponent/NewsComponent/NewsComponent[Role/@FormalName="Body"]/ContentItem[Format/@FormalName="XHTML"]/DataContent
Contact information:
/NewsML/NewsItem/NewsComponent/NewsComponent/NewsComponent[Role/@FormalName="Contact"]/ContentItem[Format/@FormalName="XHTML"]/DataContent
Headline:
/NewsML/NewsItem/NewsComponent/NewsComponent/NewsComponent[Role/@FormalName="HeadLine"]/ContentItem[Format/@FormalName="XHTML"]/DataContent
Sub Headline:
/NewsML/NewsItem/NewsComponent/NewsComponent/NewsComponent[Role/@FormalName="SubHeadLine"]/ContentItem[Format/@FormalName="XHTML"]/DataContent
BWTag XPath
//NewsML/NewsItem/NewsComponent/Metadata[MetadataType/@FormalName='BWTags']/Property[@FormalName='BWTag']/@Value
BWHashTag XPath
//NewsML/NewsItem/NewsComponent/Metadata[MetadataType/@FormalName='BWTags']/Property[@FormalName='BWHashTag']/@Value
BWCashTag XPath
//NewsML/NewsItem/NewsComponent/Metadata[MetadataType/@FormalName='BWTags']/Property[@FormalName='BWCashTag']/@Value
Social Media Profile XPath
//NewsML/NewsItem/NewsComponent/Metadata[MetadataType/@FormalName='BWSocialMediaProfile']/Property[@Scheme='BWSocialMediaProfile' and @FormalName='Profile']/@ValueRef
Social Media Profile XPath for a specific Network
//NewsML/NewsItem/NewsComponent/Metadata[MetadataType/@FormalName='BWSocialMediaProfile']/Property[@Scheme='BWSocialMediaProfile' and @FormalName='Profile' and @Value='Twitter']/@ValueRef
Smart Multimedia XPath (Role: "Smart Multimedia")
/NewsML/NewsItem/NewsComponent/NewsComponent/NewsComponent[Role/@FormalName='Smart Multimedia']/ContentItem/DataContent/html/body/div
Smart Multimedia, with the desired Role and Format included:
/NewsML/NewsItem/NewsComponent/NewsComponent/NewsComponent[Role/@FormalName='<ROLE>']/ContentItem[Format/@FormalName='XHTML']/DataContent/[namespace-uri()='http://www.w3.org/1999/xhtml' and local-name()='html']/[namespace-uri()='http://www.w3.org/1999/xhtml' and local-name()='body']/*[namespace-uri()='http://www.w3.org/1999/xhtml' and local-name()='div']
Cascading Style Sheet (CSS), containing recommended styles for all of the XHTML content within the NewsML Document:
/NewsML/NewsItem/NewsComponent/NewsComponent/NewsComponent[Role/@FormalName="StyleSheet"]/ContentItem[Format/@FormalName="CSS"]/DataContent
Note: Each piece of XHTML content in a Business Wire NewsML release is a complete XHTML document. Therefore to assemble these into one HTML view of this release, only the first paragraph from each XHTML content item is needed. Add the following to any of the XPaths listed above, except the XPath to the CSS content, to retrieve the HTML content starting with the first paragraph.
/*[namespace-uri()='http://www.w3.org/1999/xhtml' and local-name()='html']/*[namespace-uri()='http://www.w3.org/1999/xhtml' and local-name()='body']/*[namespace-uri()='http://www.w3.org/1999/xhtml' and local-name()='p'][1]
For more information please contact: mrt_techs_group@businesswire.com
Business Wire’s experience, one-on-one guidance, and superior media targeting help you reach your audiences and generate results.