K
kgould
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
BulletinDataStore/Bulletins/Bulletinp[@BulletinID=MS98-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):
BulletinDatastore/Bulletins/Bulletin[@BulletinID='MS98-007' and
@BulletinLocationID='1' and @FAQLocationID='1' and
@FAQPageName='FQ98-007.asp' and @Title='Potential SMTP and NNTP
Denial-of-Service Vulnerabilities' and @DatePosted='1998/07/24' and
@DateRevised='1998/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
@ImpactSeverityID='0' and @PreReqSeverityID='0' and
@MitigationSeverityID='0' and @PopularitySeverityID='0']
BulletinDatastore/Bulletins/Bulletin/BulletinComments
BulletinDatastore/Bulletins/Bulletin/QNumbers
BulletinDatastore/Bulletins/Bulletin/QNumbers/QNumber[@QNumber='188341']
BulletinDatastore/Bulletins/Bulletin/QNumbers/QNumber[@QNumber='188369']
BulletinDatastore/Bulletins/Bulletin/Patches
BulletinDatastore/Bulletins/Bulletin/Patches/Patch[@PatchName='MS98-007'
and @Pa
tchLocationID='13' and @SBID='0' and @SQNumber='188341' 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
BulletinDataStore/Bulletins/Bulletinp[@BulletinID=MS98-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):
BulletinDatastore/Bulletins/Bulletin[@BulletinID='MS98-007' and
@BulletinLocationID='1' and @FAQLocationID='1' and
@FAQPageName='FQ98-007.asp' and @Title='Potential SMTP and NNTP
Denial-of-Service Vulnerabilities' and @DatePosted='1998/07/24' and
@DateRevised='1998/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
@ImpactSeverityID='0' and @PreReqSeverityID='0' and
@MitigationSeverityID='0' and @PopularitySeverityID='0']
BulletinDatastore/Bulletins/Bulletin/BulletinComments
BulletinDatastore/Bulletins/Bulletin/QNumbers
BulletinDatastore/Bulletins/Bulletin/QNumbers/QNumber[@QNumber='188341']
BulletinDatastore/Bulletins/Bulletin/QNumbers/QNumber[@QNumber='188369']
BulletinDatastore/Bulletins/Bulletin/Patches
BulletinDatastore/Bulletins/Bulletin/Patches/Patch[@PatchName='MS98-007'
and @Pa
tchLocationID='13' and @SBID='0' and @SQNumber='188341' and
@NoReboot='0' and @SeverityID='0']