Hi, I have an element in my schema that looks like this:
xs:element name=lastModified type=xs:dateTime/
and in my XML looks like this:
lastModified2006-10-16 11:15:33/lastModified
When I call it in my view like this:
c:out value=${book.lastModified}/
I get an error message that looks like
Hi Azfar,
XmlObject maintains the xml as its manipulated.
In your code above, basically what your instance would look like is:
XyzTypeDocument doc = XyzTypeDocument.Factory.newInstance();
xyz /
XyzType xyzType = doc.addNewXyzType();
xyzxyzType //xyz
xyz.setSomething (something);
xyz
Thanks Wing,
Is that a specific to XMLBeans or is this a standard way of
displaying the date and time in an xml element? Also, are the quotes
necessary?
Thanks,
Steven
On Oct 19, 2007, at 1:27 PM, Wing Yew Poon wrote:
The error is exactly as it says:
Invalid date value: 2006-10-16
The error is exactly as it says:
Invalid date value: 2006-10-16 11:15:33
You want something like 2006-10-16T11:15:33.
- Wing Yew
-Original Message-
From: Steven Crosley [mailto:[EMAIL PROTECTED]
Sent: Friday, October 19, 2007 10:39 AM
To: user@xmlbeans.apache.org
Subject: DateTime
4 matches
Mail list logo