Nmap Development mailing list archives

Re: XML output, SAX, and nmap. [was Re: PostgreSQL patch]


From: Bradley Kite <bradley () deathsgate demon co uk>
Date: Tue, 9 Jul 2002 01:24:49 +0100

yeah I'll help out where ever I can... I cant say I will be able to
respond in a timely manour to any queries however, as I do have a full-time
job and a drinking problem (its  more of a stopping problem to be honest ;-)


--
Brad.

On Thu, Jul 11, 2002 at 04:10:44AM -0356, Max Schubert wrote:
Mailing-List: contact nmap-dev-help () insecure org; run by ezmlm
Precedence: bulk
List-Post: <mailto:nmap-dev () insecure org>
List-Help: <mailto:nmap-dev-help () insecure org>
List-Unsubscribe: <mailto:nmap-dev-unsubscribe () insecure org>
List-Subscribe: <mailto:nmap-dev-subscribe () insecure org>
Delivered-To: mailing list nmap-dev () insecure org
To: nmap-dev () insecure org
X-sender: MH 6.8
From: "Max Schubert" <musitechman () earthlink net>
Subject: XML output, SAX, and nmap.  [was Re: PostgreSQL patch]
Date: Mon, 08 Jul 2002 12:10:44 -6756

Hi,

    I have tested the SAX2 parser in perl

    XML::SAX::PurePerl

    And it does parse real-time ... stdout just has to be unbuffered to see things :) ..
    so the same would be for Java and others, as the perl parser follows the SAX2 
    standard ... 

    http://sax.sourceforge.net

    This real-time parsing is why SAX came about .. DOM (document object model) can 
    use a lot of memory as it reads the whole document and makes an in-memory tree of 
    it ... which is great for apps that need a whole doc at a time ... for apps that are 
    just interested in parts of an XML doc (like a search engine) it is too much and too
    slow.

    So this will not be a hinderance if we decide to have nmap have "live" XML output ..
    I will attempt this with the source once I get my linux box back up (I am on cygwin 
    right now on Win9blech) ... I will try this this week and see how far I can get :).

    If it works, I will switch my perl modules to parsing the XML as well and other
    external tools can all provide an event-driven API!

    Anyone interested in working on this with me?

Max

---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to 
nmap-dev-help () insecure org . List run by ezmlm-idx (www.ezmlm.org).


-- 
Software Developer/Data Management Specialist
Alchemetics Ltd, http://www.alchemetrics.co.uk
pgp key: http://www.deathsgate.demon.co.uk/bradley.key.asc


Attachment: _bin
Description:


Current thread: