[GCC-XML]ID attribute

mdupont mdupont777 at yahoo.com
Wed, 17 Mar 2004 07:55:15 +0000


This is a multi-part message in MIME format.
--------------070707020004090708000109
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Jason Stanek wrote:

> Greetings,
>
> I'm new to GCCXML and to XML in general.  I've been working on some 
> DOM Java code to read in the XML data and then perform some lookups 
> and the like.  I'm trying to use the Document.getElementById function 
> of DOM to lookup various classes, methods, etc.  But unfortunately, it 
> always returns null.  In the javadoc it mentions that elementID must 
> be set for this to work.  It also says the existence of an id 
> attribute does not mean I can look the element up with getElementById. 
>
According to the xml spec, the xmlid must be unique in the document, and 
a alphanumberic name.
It also has to be set.

 >I'm unsure if I am supposed to programmatically set elementID or if 
this is something that should be specified in the >XML file.  Is anyone 
familiar with this problem or have any suggestions?

Please provide a snippet of the xml that you are looking to find, Is the 
id not set?

mike


--------------070707020004090708000109
Content-Type: text/x-vcard; charset=utf8;
 name="mdupont777.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="mdupont777.vcf"

begin:vcard
fn:James Michael Du Pont
n:Du Pont;James Michael
org:Introspector;Software Development
email;internet:mdupont777 at yahoo.com
title:Software Developer
tel;work:++49 171 737 1198
tel;home:++49 69 251380
note:This is a vcard. Please Distribute.
x-mozilla-html:FALSE
version:2.1
end:vcard


--------------070707020004090708000109--