You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by ug7k <ug...@rz.uni-karlsruhe.de> on 2002/03/21 16:48:44 UTC

Get Type Information of Element

Hallo, 

I am working on a project using XML as the query 
language. To process the query, I need to validate
the query, which is a xml file, against a specified
XML Schema, then transform the element in the query
into interne presentation. I would like to know
whether I can get the type information of an element
or an attribute, e.g. string, integer, that is 
defined in the XML schema as I am parsing the XML 
file. How can I do it using Xerces-Java?

Thanks in advance,

zhou



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


RE: Get Type Information of Element

Posted by ug7k <ug...@rz.uni-karlsruhe.de>.
Hallo, Xueming,

thanks for your information. You are right that the
type infomation of the element/attribute could be
found by searching through the XML schema. However,
it maybe very complex to determine the base type of an
element whose type is nested definied by extension/restriction
of base type. Are there some predefined APIs to
determine the base type of an element/attribute?

thanks in advances,

zhou

> -----Original Message-----
> From: Xuemin Guan [mailto:xuemin@appresso.com]
> Sent: Freitag, 22. M?rz 2002 03:02
> To: xerces-j-user@xml.apache.org
> Subject: Re: Get Type Information of Element
>
>
> I am not sure if I fully understand your questions.
> I try to give a bit of hints.
> Sure, you can get the type of an element, after all the
> XML schema is a XML file. I belive it is best addressed
> by Xpath.
>
> Regards,
> ----- Original Message -----
> ������ : "ug7k" <ug...@rz.uni-karlsruhe.de>
> ���� : <xe...@xml.apache.org>
> Cc: "Zhou Wang" <Zh...@tm.uka.de>
> �����Օr : 2002��3��22�� 0:48
> ���� : Get Type Information of Element
>
>
> > Hallo,
> >
> > I am working on a project using XML as the query
> > language. To process the query, I need to validate
> > the query, which is a xml file, against a specified
> > XML Schema, then transform the element in the query
> > into interne presentation. I would like to know
> > whether I can get the type information of an element
> > or an attribute, e.g. string, integer, that is
> > defined in the XML schema as I am parsing the XML
> > file. How can I do it using Xerces-Java?
> >
> > Thanks in advance,
> >
> > zhou
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-j-user-help@xml.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Get Type Information of Element

Posted by Xuemin Guan <xu...@appresso.com>.
I am not sure if I fully understand your questions.
I try to give a bit of hints.
Sure, you can get the type of an element, after all the
XML schema is a XML file. I belive it is best addressed
by Xpath.

Regards,
----- Original Message -----
������ : "ug7k" <ug...@rz.uni-karlsruhe.de>
���� : <xe...@xml.apache.org>
Cc: "Zhou Wang" <Zh...@tm.uka.de>
�����Օr : 2002��3��22�� 0:48
���� : Get Type Information of Element


> Hallo,
>
> I am working on a project using XML as the query
> language. To process the query, I need to validate
> the query, which is a xml file, against a specified
> XML Schema, then transform the element in the query
> into interne presentation. I would like to know
> whether I can get the type information of an element
> or an attribute, e.g. string, integer, that is
> defined in the XML schema as I am parsing the XML
> file. How can I do it using Xerces-Java?
>
> Thanks in advance,
>
> zhou
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org