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"

.



Relevant Pages

  • Re: Optimising Database Calls
    ... extract all the necessary data I have to perform 68 SQL queries, ... all necessary variables to your stored from and have it return the xml ... For the purposes of this graph, the begining and end of each output SVG/VML ...
    (microsoft.public.dotnet.framework.aspnet)
  • wavread funtion
    ... I'm trying to extract some data from an audio file with an extention of .wav ... the wavread funtion provide this facility of extracting the necessary data but I have the problem of if the audio file length is 30 seconds or more the funtion returns zeros restults. ...
    (comp.soft-sys.matlab)