Expand my Community achievements bar.

XML from form submission not formatted 'tidy'

Avatar

Level 2

Hi, I am using Adobe LiveCycle Designer ES 8.2. When a user clicks on the email submit button and it submits XML from the captured data, it appears that 'soft returns' are being added to the code such that the closing '>'  and '/>' are being forced to the next line. I cannot figure out any way to fix this and have tried different encodings, etc. Can anyone help as this is very annoying.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<form1
><PlanIdentifyingInformation2
><ApplicantName
/><FedTaxID
/></PlanIdentifyingInformation2><ApplicantContactInformation
><ApplicantContactState
/><ACFirstName
/><ACLastName
/><ACStreetAddress1
/><ACStreetAddress2
/><ACZipCode
/><ACPhone
/><ACEmail
/><ContactPhoneExtension
/><ApplicantContactCity
/></ApplicantContactInformation><ShowPreparerInformation

1 Reply

Avatar

Level 10

You can use xfa.datasets.data.saveXML('pretty') to get a well formatted XML..

Check this article..

http://forms.stefcameron.com/2009/08/19/tip-pretty-xml-strings/

But if you use Email Submit button, then you may not be able to format the XML properly.

Alternative is, to have hidden field to capture the well formed XML and use it to send in the email.

Thanks

Srini