[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: data types


data types of tc
At 02:53 PM 7/9/2002 -0400, Mike Champion wrote:
>7/9/2002 2:05:15 PM, Jonathan Robie 
><jonathan.robie@d...> wrote:

> >>Now, I am parsing xml file using DOM. How can I get the data type for year,
> >>month etc?????
> >
> >Whose DOM are you using?
>
>It doesn't matter, there is no straightforward, standard way to
>access this information.

But Mike, this guy is trying to write a program, he has a specific DOM 
implementation, and he needs to get at the types. I don't think he wants to 
wait for new standards to be written. If this is a list for XML developers, 
his question is certainly in scope.

>Proprietary DOM extensions (probably Microsoft's, perhaps Apache's) may 
>provide
>"DOM" APIs to access the type information in the PSVI, but applications which
>use these APIs will not work with other implementations.  Use them if they
>work for you, but use them with caution.
>
>The possibility of the next major version of the DOM supporting the PSVI is
>under consideration inside the W3C; members may wish to look into this issue
>and make sure that their opinion is registered ... I don't think I can be
>more explicit due to the confidentiality guidelines, sorry.

I agree with everything you say, but...

According to private email, he is trying to do this with Xerces DOM, Level 
2. I haven't been programming with this API - does anyone know offhand if 
there is a way for him to access the type of an element?

Jonathan


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.