You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Luis Silva <lf...@hotmail.com> on 2008/07/17 17:38: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 David Bertoni <db...@apache.org>.
Luis Silva 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
Take a look at the PSVIHandler interface. It's event-based, so it might
not send the events exactly when you need them, but perhaps you can
adapt your code to work. Take a look at the PSVIWriter samples for more
information.
If the PSVIHandler interface doesn't work for you, there are
alternatives, but they're ugly, and will require you use more internal APIs.
Dave