Dear Rene,

thank you for your response.
But what I meant with type of element is the type
of the element-declaration of the appropriate schema.
Not the type of the node.
For example the following element f1

<f1>10.0</f1>

has been declared as float and contains the value 10.0.
So in this case the type would be float.

Best regards,

Andr�





> -----Urspr�ngliche Nachricht-----
> Von: Ren� Jensen [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 27. April 2001 14:12
> An: [EMAIL PROTECTED]
> Betreff: Re: How to determine Element-Type ?
> 
> 
> Citat "Mengel Andre (FV/SLM) *" <[EMAIL PROTECTED]>:
> 
> > Dear J-Parser-Experts,
> > 
> > I have a question refering to the Xerces Java 1 parser.
> > Is it possible to use this parser in order to determine the 
> type of an
> > element
> > of an XML-Document ?
> > The XML-Document is schema based.
> > Is there any class or function to get this information ?
> > Thank you for your efforts and best regards,
> > 
> > Andre Mengel
> > 
> 
> Yes, if you parse the document to a DOM using a DOMParser you 
> can use the 
> Node.getNodeType() on all nodes and compare the returned 
> value with the 
> staticlly defined values in Node to determine the type of the node.
> 
> 
>        _\|/_
>        (@ @)
> ---oOOo-(_)-oOOo---
>     Ren� Jensen
>  [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> 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