Yes, this is a Processing Instruction node, and the DOM offers you the
possibility to access PI-Nodes and their data. If they come before the first
element node, they will be children of the Document node, and you may access
them via the DOM from there.

Check the XML Specification for more information on PIs if you like. It's
chapter 2.6, here's the link:
http://www.w3.org/TR/2000/REC-xml-20001006#sec-pi

Hope this helps,
best regards,
Denny


----- Original Message ----- 
From: "Endre Magyari" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 20, 2004 12:43 PM
Subject: Annotations


>
> Dear List,
>
> Suppose I have parsed in an InputSource with the following code:
>
> InputSource *is;
>
> DOMParser parser;
> parser.setValidationScheme(DOMParser::Val_Never);
> parser.parse(*is);
>
>
> How can I retrieve from the parser the annotations from parsed XML input?
>
> I'm interested in the lines like:
>
> <?udm name="value" name1="value1"?> lines, before the root element.
>
> Is this a special node?
>
>
>
>
> Thanks,
> Endre
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to