Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: i need to declare a bin.base64 node without the attributes

From: "Han" <hp4444@------.---.----->
To: NULL
Date: 11/6/2004 3:25:00 PM
Why not 'text' property?

 <FileContents xmlns:dt="urn:schemas-microsoft-com:datatypes"
dt:dt="bin.base64">base64 string </FileContents>
<element2/>

doc.selectsinglenode("//element2").text=doc.selectsinglenode("//FileContents").text

Remove the unused element. Now your callee web-service may convert the 
base64 string into binary array. i.e., Convert.FromBase64String, etc.

-- 
Pohwan Han. Seoul. Have a nice day.
"Nancy Drew" <genpub5@h...> wrote in message 
news:ssCdnVTx_enuexrcRVn-hg@r......
> i'm trying to post a pdf to an internet faxing service. the service is
> giving me errors because of the bin.base64 node's attributes.:
>
> set oElement = oXMLDoc.createElement("FileContents")
> set oElement.dataType = "bin.base64"
>
> this will generate a node with the following attributes:
>
> <FileContents xmlns:dt="urn:schemas-microsoft-com:datatypes"
> dt:dt="bin.base64">
>
> the web service is giving me grief about the unrecognized attributes in 
> the
> node. i thought using a different method to create the node would work:
>
> set oNode = oXMLDoc.createNode(6, "FileContents", "")
>
> none of the 'type' constants seem to work for base64 files, however. is
> there a way i can create a node that will hold base64 contents and omit 
> the
> node attributes?
>
> tks
>
>
>
>
> 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent