Assign a value to an XML node using Javascript

P

Patrick Temple

I'm trying to set an XML node for one of my forms using javascript. Example
code:

var X = a date brought in from another xml doc.

XDocument.DOM.selectSingleNode(/requirement/my:pMTProductManagementTool/DODate).text = X;

Everything works except the assignment of the date to the node. I'm
assuming I'm doing something wrong, so if anyone knows that would be very
helpful.

Thanks

--Patrick Temple
 
P

Patrick Temple

Franck,

Not really sure, its whatever InfoPath uses for the Date. Example: 2005-12-15

I tried assigning a text value using a basic string field node as well with
the same negative result.

Thanks again

--Patrick Temple
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top