Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: DOM, XML and XFDF

From: "Anthony Jones" <Ant@------------.--->
To: NULL
Date: 2/1/2007 6:32:00 PM


"edforum" <ed.forums@c...> wrote in message
news:1170353651.546503.61860@v......
> Hi,
>
> I've got a file named "myData.xfdf".
>
> I open it with the following statements :
> Set oDocument = Server.CreateObject("MSXML2.DOMDocument.4.0")
> oDocument.load ("myData.xfdf")
>
> Dynamically, I add the node <field name="mytag"><value>my data</
> value></field>
> between <fields></fields> tags
>
> I transform the tree in a string like that :
>
> sData = oDocument.xml
>
> And i display it like that
>
> response.contenttype = "text/plain"
> response.write sData
>
> it' s OK ( i can see the xml tree )
>
> But, if i write that :
>
> response.contenttype = "application/vnd.fdf"
> response.write sData

Try:

response.contenttype = "application/vnd.fdf"
oDocument.save Response

Ditch the sData variable altogether.


>
> I cannot open acrobat reader, and load pdf file and data.
>
>
> Have you already got this problem and have you got a solution ?
>
> Thanks for helping me ?
>
> ED
>




transparent
Print
Mail
Digg
delicious
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