A processing instruction doesn't have any structure (such as attributes and
other children); its contents are basically just text to be interpreted by
the XML processor (hence the name). You can get the target (in this case,
the string "udm") with getTarget(), and the remainder of the text in the PI
with getData(). See the DOMProcessingInstruction class member documentation.

> -----Original Message-----
> From: Endre Magyari [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 20, 2004 8:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Annotations
> 
> 
> >
> > That's a processing instruction named "udm"; to retrieve it, do
> [...]
> 
> Thanks !
> so it is  a node, not an element then.
> I know how to access the attributes of an Element.
> How can I access the attributes of a such a Node ?
> 
> Thanks,
> Endre

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to