java.regex



I am an XML file in following manner. I want extract some data
necessary data from it. So I was using regular expression. (
java.regex)



---------------------------------------------------------------------------------------------------------------------------------------

<entry type="CVE" name="CVE-2005-0001" seq="2005-0001"
discovered="2005-01-12" published="2005-05-02" modified="2005-10-20"
severity="High">
- <desc>
<descript source="cve">Race condition in the page fault handler
(fault.c) for Linux kernel 2.2.x to 2.2.7, 2.4 to 2.4.29, and 2.6 to
2.6.10, when running on multiprocessor machines, allows local users to
execute arbitrary code via concurrent threads that share the same
virtual memory space and simultaneously request stack
expansion.</descript>
</desc>
- <loss_types>

---------------------------------------------------------------------------------------------------------------------------------------

Can any one suggest what pattern should I use if I want CVE name i.e
"CVE - 2005-0001"

and published= "2005-05-02"

.