Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - i need to declare a bin.base64 node without the attributes [Thread Next] Re: i need to declare a bin.base64 node without the attributesTo: 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
>
>
>
>
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
