parsing vuln.xml with XML::Node
dan at langille.org
Sun Aug 29 14:44:08 PDT 2004
I've run into a problem parsing the vuln.xlm file. I'm using the perl
XML::Node module. The issue is the body field. This field contains XHTML
tags (for example, <p>, <em>, <blockquote>). I have been unable to
extract the contents of <body>...</body>. The only solution I've found is
to explicitly specify tags such as <p>, <em>, and <blockquote>. That is
by no means an ideal solution. There must be something I'm missing.
It has been suggested I use XML::Parser instead (XML::Node is based upon
See a working example at http://beta.freshports.org/tmp/testing.tgz
it runs like this:
perl load_vuxml_into_db.pl vuln.xml
If someone can figure out how I can do this, it will be appreciated.
Dan Langille - http://www.langille.org/
More information about the freebsd-vuxml