On 10 oct, 16:33, AlpineSkiier <[EMAIL PROTECTED]> wrote: > Hi, > > I am using the 1.5.2 version of the GWT toolkit. What I am trying to > do is just parse some xml. The odd part is that it seems like the > XMLParser is complaining about one of the attributes on one of the xml > elements, specifically about the date. The XML document is well > formed. > > This is the line that the XMLParser is complaining about: > > <a:getlastmodified b:dt="dateTime.rfc1123">Tue, 30 Sep 2008 20:51:06 > GMT</a:getlastmodified> > > And then this is what happens in the stack trace from the XMLParser: > > at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) > Caused by: com.google.gwt.core.client.JavaScriptException: (Error): > line 1, char 508:Datatype 'dateTime.rfc1123' is not supported. > > description: line 1, char 508:Datatype 'dateTime.rfc1123' is not > supported. > > So, my question is why is the parser even bothering doing a type > conversion and not just leave everything as a string? Thanks for your > help.
The parser (MSXML.DOMDocument in your case) is left with its default settings except for preserveWhiteSpace=true SelectionLanguage=XPath (defaults to "XSLPattern" in MSXML 3.0) and SelectionNamespaces="xmlns:xsl='http://www.w3.org/1999/XSL/ Transform'" (defaults to none). It appears that MSXML's default setting is to validateOnParse=true, but according to the documentation [1], IDOMDocument.loadXML (used by XMLParser.parse) doesn't validate. MSXML has a feature though to report the dataType of a node depending on its dt:dt="" attribute [2]. It seems like setting the UseInlineSchema feature to false might do it [3]. The documentation (see [3]) also talks about a NonValidationSchemaUse feature but it isn't documented anywhere. Anyway, this deserves filling a new bug: http://code.google.com/p/google-web-toolkit/issues/list [1] http://msdn.microsoft.com/en-us/library/ms754585(VS.85).aspx [2] http://msdn.microsoft.com/en-us/library/ms256049(VS.85).aspx [3] http://msdn.microsoft.com/en-us/library/ms762261(VS.85).aspx --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
