I'm trying to use XMLStarlet to pull a value out of Microsoft's
mssecure.xml file for patch availability. I'm an XML newb, so I'm
struggling here.
I want to pull the @Summary field value- I'm unable to see from the
examples how to handle pulling one of these multiple values. I don't
want to use a template.
I tried
xml sel -t -m
BulletinDataSto re/Bulletins/Bulletinp[@BulletinID=MS9 8-007] to see if I
could get anything - nothing. I'm missing some point here.
The file is like this (from xml el -v mssecure.xml):
BulletinDatasto re/Bulletins/Bulletin[@BulletinID='MS 98-007' and
@BulletinLocati onID='1' and @FAQLocationID= '1' and
@FAQPageName='F Q98-007.asp' and @Title='Potenti al SMTP and NNTP
Denial-of-Service Vulnerabilities ' and @DatePosted='19 98/07/24' and
@DateRevised='1 998/09/09' and @Supported='Yes ' and @Summary='This issue
involves a denial of service vulnerability that can potentially be used
by someone with malicious intent to unexpectedly cause multiple
components of the Microsoft Exchange Server to stop.' and @Issue='' and
@ImpactSeverity ID='0' and @PreReqSeverity ID='0' and
@MitigationSeve rityID='0' and @PopularitySeve rityID='0']
BulletinDatasto re/Bulletins/Bulletin/BulletinComment s
BulletinDatasto re/Bulletins/Bulletin/QNumbers
BulletinDatasto re/Bulletins/Bulletin/QNumbers/QNumber[@QNumber='18834 1']
BulletinDatasto re/Bulletins/Bulletin/QNumbers/QNumber[@QNumber='18836 9']
BulletinDatasto re/Bulletins/Bulletin/Patches
BulletinDatasto re/Bulletins/Bulletin/Patches/Patch[@PatchName='MS9 8-007'
and @Pa
tchLocationID=' 13' and @SBID='0' and @SQNumber='1883 41' and
@NoReboot='0' and @SeverityID='0']
mssecure.xml file for patch availability. I'm an XML newb, so I'm
struggling here.
I want to pull the @Summary field value- I'm unable to see from the
examples how to handle pulling one of these multiple values. I don't
want to use a template.
I tried
xml sel -t -m
BulletinDataSto re/Bulletins/Bulletinp[@BulletinID=MS9 8-007] to see if I
could get anything - nothing. I'm missing some point here.
The file is like this (from xml el -v mssecure.xml):
BulletinDatasto re/Bulletins/Bulletin[@BulletinID='MS 98-007' and
@BulletinLocati onID='1' and @FAQLocationID= '1' and
@FAQPageName='F Q98-007.asp' and @Title='Potenti al SMTP and NNTP
Denial-of-Service Vulnerabilities ' and @DatePosted='19 98/07/24' and
@DateRevised='1 998/09/09' and @Supported='Yes ' and @Summary='This issue
involves a denial of service vulnerability that can potentially be used
by someone with malicious intent to unexpectedly cause multiple
components of the Microsoft Exchange Server to stop.' and @Issue='' and
@ImpactSeverity ID='0' and @PreReqSeverity ID='0' and
@MitigationSeve rityID='0' and @PopularitySeve rityID='0']
BulletinDatasto re/Bulletins/Bulletin/BulletinComment s
BulletinDatasto re/Bulletins/Bulletin/QNumbers
BulletinDatasto re/Bulletins/Bulletin/QNumbers/QNumber[@QNumber='18834 1']
BulletinDatasto re/Bulletins/Bulletin/QNumbers/QNumber[@QNumber='18836 9']
BulletinDatasto re/Bulletins/Bulletin/Patches
BulletinDatasto re/Bulletins/Bulletin/Patches/Patch[@PatchName='MS9 8-007'
and @Pa
tchLocationID=' 13' and @SBID='0' and @SQNumber='1883 41' and
@NoReboot='0' and @SeverityID='0']
Comment