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 Luis Silva <lf...@hotmail.com> on 2008/07/17 16:06:25 UTC
getting xsd element type when parsing a xml
Hi all,
I'm parsing a xml file and I need the xsd element type when parsing each element of the xml. The validation is easy but not accessing the xsd type when parsing the element. Is it possible to get that information?
Regards and many thanks,
Luis
_________________________________________________________________
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_family_safety_072008
RE: getting xsd element type when parsing a xml
Posted by Luis Silva <lf...@hotmail.com>.
Thanks a lot. I'll take a look.
Regards,
Luis
Subject: Re: getting xsd element type when parsing a xmlTo: j-users@xerces.apache.orgFrom: mrglavas@ca.ibm.comDate: Thu, 17 Jul 2008 16:55:37 -0400
Type information is exposed as part of the PSVI. There are several FAQs [1] on the website which show how to access it in Xerces through the XML Schema API. If you only need basic type information (like the name of the type) you can also access it through DOM Level 3 [2] and JAXP 1.3+ [3].Thanks.[1] http://xerces.apache.org/xerces2-j/faq-xs.html[2] http://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/TypeInfo.html[3] http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/validation/TypeInfoProvider.htmlMichael GlavassevichXML Parser DevelopmentIBM Toronto LabE-mail: mrglavas@ca.ibm.comE-mail: mrglavas@apahce.org"Mukul Gandhi" <ga...@gmail.com> wrote on 07/17/2008 12:21:21 PM:> Though, I have not used this, but I think it might be possible with Xerces.> > Please read about, XML Schema API. Here are the Javadocs,> http://xerces.apache.org/xerces2-j/javadocs/xs/index.html.> > On Thu, Jul 17, 2008 at 7:36 PM, Luis Silva <lf...@hotmail.com> wrote:> > Hi all,> > I'm parsing a xml file and I need the xsd element type when parsing each> > element of the xml. The validation is easy but not accessing the xsd type> > when parsing the element. Is it possible to get that information?> >> > Regards and many thanks,> > Luis> > > -- > Regards,> Mukul Gandhi> > ---------------------------------------------------------------------> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org> For additional commands, e-mail: j-users-help@xerces.apache.org
_________________________________________________________________
With Windows Live for mobile, your contacts travel with you.
http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_mobile_072008
Re: getting xsd element type when parsing a xml
Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Type information is exposed as part of the PSVI. There are several FAQs [1]
on the website which show how to access it in Xerces through the XML Schema
API. If you only need basic type information (like the name of the type)
you can also access it through DOM Level 3 [2] and JAXP 1.3+ [3].
Thanks.
[1] http://xerces.apache.org/xerces2-j/faq-xs.html
[2]
http://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/TypeInfo.html
[3]
http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/validation/TypeInfoProvider.html
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apahce.org
"Mukul Gandhi" <ga...@gmail.com> wrote on 07/17/2008 12:21:21 PM:
> Though, I have not used this, but I think it might be possible with
Xerces.
>
> Please read about, XML Schema API. Here are the Javadocs,
> http://xerces.apache.org/xerces2-j/javadocs/xs/index.html.
>
> On Thu, Jul 17, 2008 at 7:36 PM, Luis Silva <lf...@hotmail.com> wrote:
> > Hi all,
> > I'm parsing a xml file and I need the xsd element type when parsing
each
> > element of the xml. The validation is easy but not accessing the xsd
type
> > when parsing the element. Is it possible to get that information?
> >
> > Regards and many thanks,
> > Luis
>
>
> --
> Regards,
> Mukul Gandhi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
Re: getting xsd element type when parsing a xml
Posted by Mukul Gandhi <ga...@gmail.com>.
Though, I have not used this, but I think it might be possible with Xerces.
Please read about, XML Schema API. Here are the Javadocs,
http://xerces.apache.org/xerces2-j/javadocs/xs/index.html.
On Thu, Jul 17, 2008 at 7:36 PM, Luis Silva <lf...@hotmail.com> wrote:
> Hi all,
> I'm parsing a xml file and I need the xsd element type when parsing each
> element of the xml. The validation is easy but not accessing the xsd type
> when parsing the element. Is it possible to get that information?
>
> Regards and many thanks,
> Luis
--
Regards,
Mukul Gandhi
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org