Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Hideous COMMENT tag showing up in XML POST output!

Avatar

Level 2
I'm using POST to send my form data as XML -





but I'm getting the comment block below inserted by default. Nothing in the XFA seems to control this.

Is there a way to set a parameter to suppress this - or change the text to something more acceptable?

Thanks, DW

******************************************************************************

If you filled in a form:

This file contains data that was entered into a form.
It is not the form itself.

******************************************************************************

If you receive this data file:

Please follow the directions below to process this data file using
Adobe Acrobat Professional 7

**To view the completed form:
1) Save this data file to your computer.
2) Open a blank copy of the original PDF form that the form filler
completed in order to generate this data file.
3) In Acrobat, choose Advanced > Forms > Import Data to Current Form
and browse for this data file.
4) You will see the form with the data in it.
5) To save a copy of the form with the data in it, choose File > Save As
and save the file.

**To create a spreadsheet from one or more form data files you have received:
1) Save the data files to a place on your computer, giving each file a
unique name and making sure not to delete the '.xml' file extension.
2) In Acrobat, choose File > Form Data > Create Spreadsheet from Data Files.
3) Click the 'Add Files' button to chose the data files.
4) After the data files are added, click the 'Create Spreadsheet' button
to create a Spreadsheet that contains data from selected data files.

******************************************************************************
3 Replies

Avatar

Former Community Member
Unfortunately not. If you really need it not to be there, the other option would be to submit XDP instead of XML. In which case your data would be everything underneath the <xfa:data> node.<br /><br />Chris<br />Adobe Enterprise Developer Support

Avatar

Level 2
Chris,



Thanks, I'll give that a try.



I'm also thinking - I may just use xslt to get the formatting and tags structure that I want...that way I can discard anything I don't want.



I'll probably try both and see which works better.



Thanks, DW

Avatar

Level 2
Hmmm, having experimented with this - the only way to change the output formatting is using a DataConnection. These are a bit gnarly to setup - you'll need to import an XDP formatted XML instance to use as a reference layout.



I did try the xsl - it threw an error message dialogue at me - but gave me output. So - next I have to figure out how to fix the xsl error - I suspect I need an XDP wrapper around my xsl.... more anon!