OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   MSXML DOM and ASP JavaScript.

[ Lists Home | Date Index | Thread Index ]
  • From: Newsha Makooi <Newsha@imrgold.com>
  • To: xml-dev@lists.xml.org, "'asp_xml@p2p.wrox.com'" <asp_xml@p2p.wrox.com>,"'vbxml@egroups.com'" <vbxml@egroups.com>
  • Date: Fri, 25 Aug 2000 11:02:20 -0600

Title: MSXML DOM and ASP JavaScript.

Good Day,

I need a bit of guidance and direction on using datatype assignments for MSXML DOM using JavaScript.

I am trying to append a child node to my DOM document; however, specifying a datatype of "bin.base64" does not render the value I expected!  For example, the following code:

        var AddXMLDoc = Server.CreateObject("Microsoft.XMLDOM") ;
        AddXMLDoc.async         = false;
        AddXMLDoc.validateOnParse       = false;
        AddXMLDoc.resolveExternals      = false;
        AddXMLDoc.preserveWhiteSpace = true;
        AddXMLDoc.documentElement       = AddXMLDoc.createElement("Root");
        var root = AddXMLDoc.documentElement;
        var newElem = AddXMLDoc.createElement("Newsha");
        newElem.dataType = "bin.base64";
        newElem.nodeTypedValue = "Hello DOM";
yields the following XML document:
                <Newsha xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="bin.base64">Hello DOM</Newsha>

I was expecting the "Hello DOM" value to be encoded according to 'bin.base64' dataType declaration.

What am I missing?  Please advise.


Please reply to the lists and Newsha@IMRGold.com directly.  Thank you.


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS