I want to pass date/time object..

and also other types to XML as a value....i send text,boolean and date/time
as values to my nodes...

Please help me how to set them as values....

Thanks...






On Wed, Aug 12, 2009 at 10:56 AM, Sahoglu, Ozgur
<[email protected]>wrote:

> Hi,
>
> Do you wanna pass date/time objects or other primitive types (like
> Booleans) to your XML node as a value?
>
> Cheers,
>
>
> -Ozgur Sahoglu
>
>
> -----Original Message-----
> From: ss ak [mailto:[email protected]]
> Sent: Tuesday, August 11, 2009 3:53 PM
> To: [email protected]
> Subject: xs:dateTime
>
> Hi everybody,
> I'd like to use the xs:dateTime type  and Boolean type in my XML
> DOMElement* prodElem =
> xmldoc->createElement(currentElement->getNodeName());
>
> DOMText* prodDataVal =
> xmldoc->createTextNode(X(datastr));prodElem->appendChild(prodDataVal);
> this is how i m creating text node...
> but how to i create datetime value or boolean node to append to it....
>
> i have to  create an XML from xsd???
>
> can anyone give idea to do this..........
>
>
> Thanks
>

Reply via email to