Kaydet (Commit) 908c21a3 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS xmlfix2 (1.9.4); FILE MERGED

2008/05/15 17:15:07 mst 1.9.4.2: RESYNC: (1.9-1.10); FILE MERGED
2008/03/31 14:28:05 mst 1.9.4.1: #i81678#: interface change: XXPathAPI
- extensions/source/update/feed/upatefeed.cxx,
  extensions/source/update/check/upateprotocol.cxx:
  + adapt to changes in css.xml.xpath.XXPathAPI
üst 9932553e
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: updateprotocol.cxx,v $ * $RCSfile: updateprotocol.cxx,v $
* $Revision: 1.10 $ * $Revision: 1.11 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -156,8 +156,13 @@ checkForUpdates( ...@@ -156,8 +156,13 @@ checkForUpdates(
if( aUpdateInfoEnumeration->nextElement() >>= aEntry ) if( aUpdateInfoEnumeration->nextElement() >>= aEntry )
{ {
uno::Reference< xml::dom::XNode > xNode( aEntry.UpdateDocument.get() ); uno::Reference< xml::dom::XNode > xNode( aEntry.UpdateDocument.get() );
uno::Reference< xml::dom::XNodeList > xNodeList = uno::Reference< xml::dom::XNodeList > xNodeList;
xXPath->selectNodeList(xNode, aXPathExpression + UNISTRING("/inst:update/attribute::src")); try {
xNodeList = xXPath->selectNodeList(xNode, aXPathExpression
+ UNISTRING("/inst:update/attribute::src"));
} catch (css::xml::xpath::XPathException &) {
// ignore
}
/* /*
o_rUpdateInfo.Sources.push_back( DownloadSource(true, o_rUpdateInfo.Sources.push_back( DownloadSource(true,
...@@ -179,13 +184,23 @@ checkForUpdates( ...@@ -179,13 +184,23 @@ checkForUpdates(
} }
} }
uno::Reference< xml::dom::XNode > xNode2 = uno::Reference< xml::dom::XNode > xNode2;
xXPath->selectSingleNode(xNode, aXPathExpression + UNISTRING("/inst:version/text()")); try {
xNode2 = xXPath->selectSingleNode(xNode, aXPathExpression
+ UNISTRING("/inst:version/text()"));
} catch (css::xml::xpath::XPathException &) {
// ignore
}
if( xNode2.is() ) if( xNode2.is() )
o_rUpdateInfo.Version = xNode2->getNodeValue(); o_rUpdateInfo.Version = xNode2->getNodeValue();
xNode2 = xXPath->selectSingleNode(xNode, aXPathExpression + UNISTRING("/inst:buildid/text()")); try {
xNode2 = xXPath->selectSingleNode(xNode, aXPathExpression
+ UNISTRING("/inst:buildid/text()"));
} catch (css::xml::xpath::XPathException &) {
// ignore
}
if( xNode2.is() ) if( xNode2.is() )
o_rUpdateInfo.BuildId = xNode2->getNodeValue(); o_rUpdateInfo.BuildId = xNode2->getNodeValue();
...@@ -193,7 +208,12 @@ checkForUpdates( ...@@ -193,7 +208,12 @@ checkForUpdates(
o_rUpdateInfo.Description = aEntry.Description; o_rUpdateInfo.Description = aEntry.Description;
// Release Notes // Release Notes
xNodeList = xXPath->selectNodeList(xNode, aXPathExpression + UNISTRING("/inst:relnote")); try {
xNodeList = xXPath->selectNodeList(xNode, aXPathExpression
+ UNISTRING("/inst:relnote"));
} catch (css::xml::xpath::XPathException &) {
// ignore
}
imax = xNodeList->getLength(); imax = xNodeList->getLength();
for( i = 0; i < imax; ++i ) for( i = 0; i < imax; ++i )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment