From foxcj@wivenhoe.demon.co.uk Tue Oct  9 18:12:51 2001
Received: from wivenhoe.demon.co.uk (wivenhoe.demon.co.uk [194.222.36.26])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f99GCot05782
	for <prolog@swi.psy.uva.nl>; Tue, 9 Oct 2001 18:12:50 +0200 (MET DST)
Received: by wivenhoe.demon.co.uk (Postfix, from userid 500)
	id 79FDD4CCBD; Tue,  9 Oct 2001 17:36:55 +0100 (BST)
Received: from wivenhoe.demon.co.uk (localhost [127.0.0.1])
	by wivenhoe.demon.co.uk (Postfix) with ESMTP
	id 4DCDC390E8; Tue,  9 Oct 2001 17:36:55 +0100 (BST)
X-Mailer: exmh version 2.3.1 10/15/1999 with nmh-1.0.4
From: Chris Fox <c.fox@gold.ac.uk>
Reply-To: Chris Fox <foxcj@dcs.kcl.ac.uk>
To: prolog@swi.psy.uva.nl
Cc: Chris Fox <foxcj@dcs.kcl.ac.uk>
X-url: http://www.dcs.kcl.ac.uk/staff/foxcj/
X-face: 0~QxFDS}{*RrSlZJeT%xs!:qVE~K7#o8Aao(sB@}\b5URBp|Ry7oSNMAUR%&lC
 G^e+*pAjzf#60J1Ckas}fr|aeb`0oaXd`P!XY~(~4=b+XAgUrM*e!bs^3zP6rh?DV0QS-
 hqPcZ4Zpi?xqpJit!Vi#"m3Sd/n:^>$M;EZm\\S'~rz\a@~YQrGGu#=fG6P%m&[-D$sbP
 |ry6IdEq6GB%G"U9<(wz'a|^ujL0sCJ&$ZnTskx"i%(Dy%dhc]Ep,m,nti.GdDeG>+Fyd
 D!&yRR\v/'tNQ|}W]u+A>tfeoG6:'TAE9Y3{MYElh<F{r~~Xv6
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 09 Oct 2001 17:36:50 +0100
Sender: foxcj@wivenhoe.demon.co.uk
Message-Id: <20011009163655.79FDD4CCBD@wivenhoe.demon.co.uk>
Subject: [SWIPL] Processing XML containing attribute values begining with _


I am using sgml_parse to extract information from XML documents.  Some of 
these documents contain attribute-values such as name="_exp" (where the value 
begins with an underscore).

sgml_parse appears to produce an appropriate term representation, of the form 
(name=_exp), except that such values are (unfortunately) interpreted as 
variables under unification, and not atoms, which makes it hard (impossible?) 
to extract the value.

Is there some way of forcing entities/values of this sort to be 
represented/interpreted as true atoms (or strings) e.g. '_exp'?

Many thanks,
	Chris

-- 
Dr. Chris Fox,   Department of Computer Science, King's College London
Tel/Fax: +44(0)20 7848 2694/2851 	    Strand, London WC2 2LS, UK
Email: foxcj@dcs.kcl.ac.uk       http://www.dcs.kcl.ac.uk/staff/foxcj/ 
GnuPG ID BF33F149 (4348 ED2F 2694 4ADC C812  7D95 D937 7FE1 BF33 F149)






