Date: Sun, 29 Aug 2004 17:44:06 -0400 (EDT) From: Dan Langille <dan@langille.org> To: freebsd-vuxml@freebsd.org Subject: parsing vuln.xml with XML::Node Message-ID: <20040829173317.U9281@xeon.unixathome.org>
next in thread | raw e-mail | index | archive | help
Hi folks, 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 XML::Parser). 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. Thanks. -- Dan Langille - http://www.langille.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040829173317.U9281>
