Forum Moderators: open
All I need to extract are the following:
- If this line exists:
<MetadataType FormalName="Securities Identifier"/>
Then I need:
1. the VALUE= portion of this line:
<Property FormalName="Ticker Symbol" Value="MOPN"/>
2. The VALUE= portion of this line:
<Property FormalName="Exchange" Value="NQB"/>
3. HeadLine
<HeadLine>MOP ENVIRONMENTAL SOLUTIONS Announces Highly Profitable Oil Spill Recovery at Rates and Profits to Rival That of Highly Productive Oil Wells</HeadLine>
4. And the <Datacontent>x</Datacontent> that appears under this line:
<Format FormalName="BW-Text"/>
<MimeType FormalName="text/plain"/>
.. The thing is, most of these node names are used more than once and I just have no idea how to properly parse it to get the data I need because they send all this other junk:
====================================
<?xml version = '1.0' encoding = 'UTF-8'?>
<NewsML Version="1.2">
<Catalog Href="http://www.businesswire.com/schema/newsml/BusinesswireNewsMLCatalog.xml"/>
<NewsEnvelope>
<SentFrom>
<Party FormalName="Business Wire">
<Property FormalName="ProviderProfile" Value="BusinessWireProfile"/>
<Property FormalName="ProviderProfileVersion" Value="1.18"/>
</Party>
</SentFrom>
<DateAndTime>20080408T135100+0000</DateAndTime>
<NewsService FormalName="Business Wire"/>
<NewsProduct FormalName="BUSINESS WIRE"/>
</NewsEnvelope>
<NewsItem>
<Identification>
<NewsIdentifier>
<ProviderId>businesswire.com</ProviderId>
<DateId>20010714</DateId>
<NewsItemId>20080408005917</NewsItemId>
<RevisionId PreviousRevision="0" Update="N">1</RevisionId>
<PublicIdentifier>urn:newsml:businesswire.com:20010714:20080408005917:1</PublicIdentifier>
</NewsIdentifier>
</Identification>
<NewsManagement>
<NewsItemType FormalName="News"/>
<FirstCreated>20080408T135100+0000</FirstCreated>
<ThisRevisionCreated>20080408T135100+0000</ThisRevisionCreated>
<Status FormalName="Usable"/>
<AssociatedWith NewsItem="businesswire.com:20010714:384808"/>
</NewsManagement>
<NewsComponent>
<BasisForChoice Rank="1">./NewsComponent/DescriptiveMetadata/Language</BasisForChoice>
<NewsLines>
<CopyrightLine>Copyright Business Wire 2008</CopyrightLine>
</NewsLines>
<AdministrativeMetadata>
<Source>
<Party FormalName="MOP Environmental Solutions, Inc."/>
</Source>
<Contributor>
<Comment FormalName="BWoffices">BO</Comment>
<Party FormalName="JS" Scheme="BWEditor"/>
</Contributor>
</AdministrativeMetadata>
<DescriptiveMetadata>
<Language FormalName="en"/>
<Genre FormalName="Release"/>
<OfInterestTo FormalName="Business Editors" Importance="1"/>
<OfInterestTo FormalName="Environment Writers" Importance="2"/>
</DescriptiveMetadata>
<Metadata>
<MetadataType FormalName="BWKeywords"/>
<Property FormalName="BWCountryKeywords" Value="United States"/>
<Property FormalName="BWIndustryKeywords" Value="Energy"/>
<Property FormalName="BWIndustryKeywords" Value="Oil/Gas"/>
<Property FormalName="BWRegionKeywords" Value="North America"/>
<Property FormalName="BWIndustryKeywords" Value="Transport"/>
<Property FormalName="BWIndustryKeywords" Value="Maritime"/>
<Property FormalName="BWCategoryKeywords" Value="Product/Service"/>
<Property FormalName="BWIndustryKeywords" Value="Natural Resources"/>
<Property FormalName="BWIndustryKeywords" Value="Other Natural Resources"/>
<Property FormalName="BWStateKeywords" Value="New Hampshire"/>
<Property FormalName="BWIndustryKeywords" Value="Environment"/>
<Property FormalName="BWIndustryKeywords" Value="Other Science"/>
<Property FormalName="BWIndustryKeywords" Value="Science"/>
</Metadata>
<Metadata>
<MetadataType FormalName="Securities Identifier"/>
<Property FormalName="Ticker Symbol" Value="MOPN"/>
<Property FormalName="Exchange" Value="NQB"/>
<Property FormalName="SlugLine Display Order" Value="1"/>
</Metadata>
<NewsComponent>
<BasisForChoice Rank="1">./NewsComponent/Role</BasisForChoice>
<NewsLines>
<HeadLine>MOP ENVIRONMENTAL SOLUTIONS Announces Highly Profitable Oil Spill Recovery at Rates and Profits to Rival That of Highly Productive Oil Wells</HeadLine>
<DateLine>BATH, N.H.</DateLine>
<SlugLine>NH-MOP-ENVIRONMENTAL</SlugLine>
</NewsLines>
<DescriptiveMetadata>
<Language FormalName="en"/>
</DescriptiveMetadata>
<NewsComponent>
<Role FormalName="StyleSheet"/>
<BasisForChoice Rank="1">./ContentItem/Format</BasisForChoice>
<DescriptiveMetadata>
<Language FormalName="en"/>
</DescriptiveMetadata>
<ContentItem Duid="c1.5413694E7">
<Format FormalName="CSS"/>
<MimeType FormalName="text/css"/>
<DataContent>
.bwtextaligncenter {text-align: center}
.bwunderlinestyle {text-decoration: underline}</DataContent>
</ContentItem>
</NewsComponent>
<NewsComponent>
<Role FormalName="SubHeadLine"/>
<BasisForChoice Rank="1">./ContentItem/Format</BasisForChoice>
<DescriptiveMetadata>
<Language FormalName="en"/>
</DescriptiveMetadata>
<ContentItem Duid="c1.5413692E7">
<Format FormalName="XHTML"/>
<MimeType FormalName="text/xhtml"/>
<DataContent><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title/>
</head>
<body>
<p class=" bwtextaligncenter">
<b>Profit Incentive for Global Oil-Spill Recovery</b>
</p>
</body>
</html></DataContent>
</ContentItem>
<ContentItem Duid="c1.5413693E7">
<Format FormalName="BW-Text"/>
<MimeType FormalName="text/plain"/>
<DataContent> Profit Incentive for Global Oil-Spill Recovery</DataContent>
</ContentItem>
</NewsComponent>
<NewsComponent>
<Role FormalName="HeadLine"/>
<BasisForChoice Rank="1">./ContentItem/Format</BasisForChoice>
<DescriptiveMetadata>
<Language FormalName="en"/>
</DescriptiveMetadata>
<ContentItem Duid="c1.5413688E7">
<Format FormalName="XHTML"/>
<MimeType FormalName="text/xhtml"/>
<DataContent><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title/>
</head>
<body>
<p class=" bwtextaligncenter">
<span class="bwunderlinestyle"><b>MOP ENVIRONMENTAL SOLUTIONS Announces
Highly Profitable Oil Spill Recovery at Rates and Profits to Rival That
of Highly Productive Oil Wells</b></span>
</p>
</body>
</html></DataContent>
</ContentItem>
</NewsComponent>
<NewsComponent>
<Role FormalName="Contact"/>
<BasisForChoice Rank="1">./ContentItem/Format</BasisForChoice>
<DescriptiveMetadata>
<Language FormalName="en"/>
</DescriptiveMetadata>
<ContentItem Duid="c1.541369E7">
<Format FormalName="XHTML"/>
<MimeType FormalName="text/xhtml"/>
<DataContent><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title/>
</head>
<body>
<p>
MOP Environmental Solutions, Inc.<br/><b>Product Information:</b><br/>Tim
Crowley, 1-888-747-2200<br/><b><a href="mailto:tim@mopenvironmental.com">tim@mopenvironmental.com</a></b><br/>or<br/><b>Investor
Relations:</b><br/>Rick Neild, 1-800-488-4544<br/><b><a href="mailto:rick@mopenvironmental.com">rick@mopenvironmental.com</a></b>
</p>
<p>
</p>
</body>
</html></DataContent>
</ContentItem>
<ContentItem Duid="c1.5413691E7">
<Format FormalName="BW-Text"/>
<MimeType FormalName="text/plain"/>
<DataContent>MOP Environmental Solutions, Inc.
Product Information:
Tim Crowley, 1-888-747-2200
tim@mopenvironmental.com
or
Investor Relations:
Rick Neild, 1-800-488-4544
rick@mopenvironmental.com</DataContent>
</ContentItem>
</NewsComponent>
<NewsComponent>
<Role FormalName="Logo"/>
<BasisForChoice Rank="1">./ContentItem/Characteristics/Property</BasisForChoice>
<BasisForChoice Rank="2">./ContentItem/Format</BasisForChoice>
<NewsLines>
<NewsLine>
<NewsLineType FormalName="ClickThru URL"/>
<NewsLineText>http://www.mopenvironmental.com</NewsLineText>
</NewsLine>
</NewsLines>
<DescriptiveMetadata>
<Language FormalName="en"/>
<Property FormalName="Rank" Value="1"/>
</DescriptiveMetadata>
<ContentItem Duid="c1.5719807E7" Href="http://mms.businesswire.com/bwapps/mediaserver/ViewMedia?mgid=128398&vid=2">
<Format FormalName="JPEG Baseline"/>
<MimeType FormalName="image/jpeg"/>
<Characteristics>
<SizeInBytes>4716</SizeInBytes>
<Property FormalName="ImageUse" Value="Thumbnail"/>
<Property FormalName="PixelWidth" Value="120"/>
<Property FormalName="PixelHeight" Value="48"/>
</Characteristics>
</ContentItem>
</NewsComponent>
<NewsComponent>
<Role FormalName="Body"/>
<BasisForChoice Rank="1">./ContentItem/Format</BasisForChoice>
<DescriptiveMetadata>
<Language FormalName="en"/>
</DescriptiveMetadata>
<ContentItem Duid="c1.5413686E7">
<Format FormalName="XHTML"/>
<MimeType FormalName="text/xhtml"/>
<DataContent><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title/>
</head>
<body>
<p>
MOP ENVIRONMENTAL SOLUTIONS, INC. (PINK SHEETS: MOPN) MOP<sup id="bwanpa43"><span id="bwanpa35">®</span></sup>
(Maximum Oil Pickup), patented breakthrough technology and associated
equipment, creates profit incentive for effective global oil-spill
recovery.
</p>
<p>
With the prototype MOP-CAT (<span class="bwunderlinestyle">C</span>leanup
<span class="bwunderlinestyle">A</span>quatic <span class="bwunderlinestyle">T</span>ool)
now demonstrated, construction of full size MOP-CATs await funding. The
MOP-CAT<span id="bwanpa36">’</span>s first public demonstration is
anticipated to show its ability to recover above 1,000 barrels a day of
pipeline quality oil from oil spills. With oil prices toping $100 a
barrel, that<span id="bwanpa37">’</span>s $100,000 a day. At $100,000 in
daily revenues each MOP-CAT could pay for itself in as little as one day.
</p>
<p>
As stated by the Company<span id="bwanpa38">’</span>s President<span id="bwanpa39">…</span>
<span id="bwanpa40">“</span><i>There is a dire need for this technology
today.</i> <i>We know of individual sites that can use more than 20
MOP-CATs daily for over a year to clean up latent oil spills.</i> <i>This
translates into $2,000,000 a day in revenues at an estimated operating
cost of as little as $20 a barrel or less.</i> <i>Under these
conditions, the ability of a MOP-CAT to deliver pipeline quality oil
from oil spills would rival that of highly productive oil wells. To
capture these high revenues, our initiative to license many sites such
as these is underway.</i><span id="bwanpa41">”</span>
</p>
<p>
<span class="bwunderlinestyle"><a href="http://www.mopenvironmental.com/pdf/TheBridgeWeekly.pdf">http://www.mopenvironmental.com/pdf/TheBridgeWeekly.pdf</a></span>
(Full Story - Slow Loading <span id="bwanpa42">–</span> Worth Waiting)
</p>
<p>
Please visit our website, <a href="http://www.mopenvironmental.com">www.mopenvironmental.com</a>
</p>
<p>
Forward-looking statements in this news release are made pursuant to the
safe harbor provisions of Section 21E of the Securities Exchange Act of
1934. Investors are cautioned that statements in this news release are
not strictly historical statements, including without limitation,
management's plans and objectives for future operations, assessment of
market factors, and statements regarding strategy, plans of the company
and its strategic partners, constitute forward-looking statements. These
forward-looking statements are not guarantees of the company's future
performance and are subject to risks and uncertainties, such as their
success in acquiring funding for machinery and materials, maintaining
needed government relationships, customers, and successfully executing
their business plan, which could cause the company's actual results in
the future to differ materially from the forward-looking statements.
</p>
<p>
</p>
</body>
</html></DataContent>
</ContentItem>
<ContentItem Duid="c1.5413687E7">
<Format FormalName="BW-Text"/>
<MimeType FormalName="text/plain"/>
<DataContent>MOP ENVIRONMENTAL SOLUTIONS, INC. (PINK SHEETS: MOPN) MOP(R)
(Maximum Oil Pickup), patented breakthrough technology and associated
equipment, creates profit incentive for effective global oil-spill
recovery.
¶ With the prototype MOP-CAT (Cleanup Aquatic Tool) now
demonstrated, construction of full size MOP-CATs await funding. The
MOP-CAT's first public demonstration is anticipated to show its
ability to recover above 1,000 barrels a day of pipeline quality oil
from oil spills. With oil prices toping $100 a barrel, that's $100,000
a day. At $100,000 in daily revenues each MOP-CAT could pay for itself
in as little as one day.
¶ As stated by the Company's President... "There is a dire need for
this technology today. We know of individual sites that can use more
than 20 MOP-CATs daily for over a year to clean up latent oil spills.
This translates into $2,000,000 a day in revenues at an estimated
operating cost of as little as $20 a barrel or less. Under these
conditions, the ability of a MOP-CAT to deliver pipeline quality oil
from oil spills would rival that of highly productive oil wells. To
capture these high revenues, our initiative to license many sites such
as these is underway."
¶ [mopenvironmental.com...] (Full
Story - Slow Loading - Worth Waiting)
¶ Please visit our website, www.mopenvironmental.com
¶ Forward-looking statements in this news release are made pursuant
to the safe harbor provisions of Section 21E of the Securities
Exchange Act of 1934. Investors are cautioned that statements in this
news release are not strictly historical statements, including without
limitation, management's plans and objectives for future operations,
assessment of market factors, and statements regarding strategy, plans
of the company and its strategic partners, constitute forward-looking
statements. These forward-looking statements are not guarantees of the
company's future performance and are subject to risks and
uncertainties, such as their success in acquiring funding for
machinery and materials, maintaining needed government relationships,
customers, and successfully executing their business plan, which could
cause the company's actual results in the future to differ materially
from the forward-looking statements.</DataContent>
</ContentItem>
</NewsComponent>
</NewsComponent>
</NewsComponent>
</NewsItem>
</NewsML>
====================================
Anyone care to take a crack at this?
Anyone care to take a crack at this?
I'll bet this could be parsed with 4 XPATHs:
//Property[@FormalName='Ticker Symbol']/@Value
//Property[@FormalName='Exchange']/@Value
//Headline
//DataContent[last()]