Spurious newline characters in xml form data

I have been given a pdf form(XFA).  I have a button that the end user can click and when they do so, it posts the form data as XML to a url.  The problem I am having is that it seems to be adding in newline characters like so:
<?xml version="1.0" encoding="UTF-8"?>
<topmostSubform><b12c96nfCert_Nbr>1234
</b12c96nfCert_Nbr>
<b12c96nfOwnship_ID
/>
</topmostSubform>
(this isn't complete stream, just a small sample.  The newlines are screwing up my xml parser.  Is there any way I can prevent this, or post lean xml with no whitespace?
I have been stripping newline characters inside my service, but obviously this is less than ideal.
When I save the xml directly out of the pdf, it contains these newline characters as well.  How can I remove them?
With Respect,
mattie

You could use a regular expression. For example,
var str = this.rawValue;
this.rawValue = str.replace(/\r|\n/g,"");
will globally replace carriage returns (\r) or line feeds (\n) with "".
Steve

Similar Messages

  • In XML Forms Date Format want to display like this (dd-MMM-YY)

    Hi All,
    I created one Custom Property for Date and use that property in XML Form Builder. In the RenderList that Date Field Display as (Medium Format) showing like this Apr 21, 2009 Format.
    But i requirement is to display Date Field as like this 21-Apr-2009 (DD-MON-YEAR) Format.
    In the Custom Property i set the
    Additional Metadata (csv): +   customFormat=dd.MMM.yyyy but this way is not working for XML Forms.(Refered this SAP NOTES:816761)
    when the IE Browser language is English(United States) [en-us] Date Field Display as (Medium Format) showing like this Apr 21, 2009 Format.
    But when the IE Browser language is English(canada) [en-ca] Date Field Display as (Medium Format) showing like this 21-Apr-2009 Format. so this way is not a right way..
    I need to achieve this..  please help me.. Appreciate for helpful answer.
    Regards
    Thillai J

    Thillai:
    Refer to this post:
    https://www.sdn.sap.com/irj/scn/thread?messageID=1166540
    Hope this helps!

  • XML Forms - Data model - writing to XML or Doc property

    Hi,
    Can someone please explain how user data inputted into an XML Form is stored?  I understand how it is stored in XML format, but am a little lost with SDN help doco, below:
    "Data Model
    The data model is a structured description of the data that is stored in XML forms. The data that you enter in forms is written in either an XML file or in properties of documents. A combination of the two is also possible."
    (link: http://help.sap.com/saphelp_nw04/helpdata/en/8f/fe743c74fa6449e10000000a11402f/frameset.htm)
    What does "properties of documents" refer to?  Is this an existing document? A new KM resource (not of type XML)? Or is this document property of the XML file being created?
    Also, does ALL user input from a form need to be stored as XML files, rather than an XML file or some other resource type?
    Many thanks,
    Justin

    Hello Justin!
    >
    Justin Hume wrote:
    > What does "properties of documents" refer to?  Is this an existing document? A new KM resource (not of type XML)? Or is this document property of the XML file being created?
    >
    Look at this you wrote  "The data that you enter in forms" - writing in "properties of documents"  - it means that you can do some changes with KM files from XML forms, or you can administrate (approve doc. and so on).. So all property will be change in KM doc - wich you customize from XML form
    >
    Justin Hume wrote:
    > Also, does ALL user input from a form need to be stored as XML files, rather than an XML file or some other resource type?
    >
    Only XML (if use XML Form Builder)

  • How do I denote a file name for submitted XML form data?

    Hi guys, is there a way to change the submitted XML file name [when emailing form data] to something other than the cryptic string livecycle uses e.g. _e8hfydsh55hsksdf.xml
    Thanks for any help, cheers Dyr

    When you preview a PDF from inside designer, it uses a temp filename for the doc and therefore when you test xml submit etc you will get the 'e.g. _e8hfydsh55hsksdf.xml' as a filename. However if the form is saved locally (e.g. MyForm.pdf) and you use Reader / Acrobat to open the PDF, then the email's subject message as well as the xml file will be MyForm.xml. Does that help you?

  • XML FORMS - Date Format

    Hi,
    I have a problem that I am sure is just config, but when opening any xmlforms and displaying they only appear with american date format.
    Has anyone changed this format, from what appears the standard?
    Will award points for any help.
    Thanks
    Kai Chalker

    Hi Kai,
    You can create a custom property in KM and assign a different date format to it.
    Then if u use that in your XML Forms, probably u can get the new date format.
    In the Additional Metadata row of the KM Property u can enter
    customFormat=dd-MMM-yyyy
    Please follow this [Help|http://help.sap.com/saphelp_nw04/helpdata/en/42/e646150fbc3ee6e10000000a1553f7/frameset.htm] link to get more info on the formats
    Regards
    BP

  • XML Form date Manipulation

    Dear Experts,
    In XML form builder application we need to display the current date + 14 days in the Expiry date filed. The above requirement is cannot be met directly form the XML Form builder application. We need to edit the xsl file to get it done,
    <xsl:attribute name="value">
    <xsl:value-of select="$locDate"/>
    </xsl:attribute>
    the above is the xsl code for getting current date which is working fine. Now we need to add 14 day from the current date. I tried with
    <xsl:attribute name="value">
    <xsl:value-of select="$locDate"+14/>
    </xsl:attribute>
    which is giving is NaN. Can you please help in getting this done.
    Regards
    Noel

    Hi Ragav
    I tried with the Java script, where I am not able to set the value. Can we manipulate the value is XSL it self
    Regards
    Noel

  • Importing XML form data, and reading a PDF form in Reader

    The title pretty much says it all. My colleagues have the latest in Adobe Reader (9). They would like to import the form data that they receive in their email as an xml attachment. They would like to read the form as it is filled out in their reader.
    Please tell me how.

    I think they have to have Acrobat to import the data. Reader was not meant to keep data for the user unless Reader Right's are enabled (limited use of form for this typically). The US gov't has done this for years for tax forms at a substantial cost I am sure. The Reader Right's that comes in Acrobat is limited to the number of uses of the form, but the full rights can be negotiated with Adobe for more than 500 uses.
    The answer used to be to buy your colleagues Acrobat, it would be cheaper than paying the additional enabling cost. With the limited use of the rights with the current versions, Adobe has made a compromise on there old policy. You might look at PlanetPDF to see if there are some third party applications that would meet your need.

  • How to change dateformat of VALID FROM and VALID TO properties in xml forms

    Hi all,
                I have created a news using xml form bulider and i have given lifetime for that news ,also displaying the VALID FROM and VALID TO  in news.By default it is in mm.dd.yyyy format but i need to display the dateformat as dd.mm.yyyy in show form.Is there any possiblity to change the format in XSLT or any other solutions.
    Regards
    Bala

    Hi Bala
    Check this XML FORMS - Date Format.
    Its a quite easy way.
    Regards
    BP

  • How to generate a report from data entered by users in XML forms

    hi,
      i have a requirement to generate report from xml forms which are created using XML forms Builder and stored in Km folders. management want to see in a single report all the activities of all the users in the xml form in such a way that one row in the report presents data blongs to each user.  i have no idea regarding this.
    can any one help me in detail.
    Thanking you in adavance
    sajeer

    Hi Sajeer,
    You have given quite few information what data should be collected / showed in detail. Anyhow, it sounds as if you want to provide data which isn't provided within the standard portal so far (see http://help.sap.com/saphelp_nw2004s/helpdata/en/07/dad131443b314988eeece94506f861/frameset.htm for a list of existing reports).
    For your needs you probably have to develop a repository service which reacts on content / property changes and then you would have to log these changes somewhere, for example in a DB. On the other side, you then could implement a report iView which accesses this data and displays it as whished.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • In XML form builder data schema not clickable

    Hi ,
    I have installed JRE version 1.6.0_07. When i click on xml foms builder ,it gets opened but when i click on data schema it's not clickable but icon is displayed next to data schema.I am not able to create any node in data schema.
    Regards.
    Adity.

    Hi,
    my problem is simular to Aditys: My Java Version is JRE 1.6.0_15. When I go to Content Managment --> Formbuilder, the XML Forms Builder starts automatically but it is not possible to open Data Schema. After downgrade to Java 1.4 I can not start the Form Builder, that means, after clicking on "Form Builder" in the Portal, a pop-up opens, but the XML Form Builder does not load.
    Can you help me?
    Jannis

  • Date format in XML Forms

    Hi all,
    I already have done my article using XML FORMS. I added into the article the date field that I needed. So, I would like to format the date output in Render List as “dd/mm/yyyy” instead of “mm/dd/yyyy”. It’s possible? Anyone knows how to do it?
    Thanks in advanced,
    Alcides Flach

    Hi,
    By adding in the Additional Metadata parameter the  entry "customFormat=dd.MM.yy", you'll force the display of this property to this format. Look at SAP note 816761 for more info about this.
    Patricio.

  • How to save form data as XML using Reader XI

    Dear all,
    I have designed a form using live cycle designer 9 and activated the form extensions using Acrobat X Pro.
    The form includes an email send button.
    Our clients uses the Reader X and XI.
    Using Reader X the pressing of the button will open a dialog box asking the user to send the form/form data using the default email client
    OR
    one can save the form data as xml file on the local machine and attach it later.
    However, using Reader XI there is no such possibility of saving the data as XML. One can just chose between the default email client or another email account.
    I tried even a button using javascript xfa.host.exportData("",0); but nothing. In fact the button shows no function at all.
    What do I wrong?
    Does anybody has a hint please?
    Thanks in advance.
    gersti

    I'm pretty impressed of Adobe and their stuff (I do NOT refer to the community), how helpful they are.
    Perhaps I didn't understand  the meaning on the offical customer support website, stating:
    The best way to contact us...  
    Ask our experts 
    Our community and staff are at your service 24/7
    Even worst, their is a similar question from 25/09/2013 (http://forums.adobe.com/message/5711946#5711946) and no feedback form Adobe stuff at all.
    Great service guys!
    Thanks a lot!

  • Having garbage characters while using enctype="multipart/form-data"

    Hi to all! =)
    I'm uploading a CSV file in JSP ny adding [enctype="multipart/form-data"].
    <html:form method="POST" action="/upload.do" enctype="multipart/form-data">Now, I have a problem on handling Japanese Characters. (becomes garbage)
    I have declared a UTF-8 charset above my JSP
    [<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="Shift_JIS" %>]Using
    System.out.println(response.getCharacterEncoding());in my action, I get "ISO-8859-1" instead of UTF-8
    I don't have any clue why this has happened. Can someone teach me how to override the "ISO-8859-1" coding.
    Any suggestions will be deeply appreciated.

    Hi to all! =)
    I'm uploading a CSV file in JSP ny adding [enctype="multipart/form-data"].
    <html:form method="POST" action="/upload.do" enctype="multipart/form-data">Now, I have a problem on handling Japanese Characters. (becomes garbage)
    I have declared a UTF-8 charset above my JSP
    [<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="Shift_JIS" %>]Using
    System.out.println(response.getCharacterEncoding());in my action, I get "ISO-8859-1" instead of UTF-8
    I don't have any clue why this has happened. Can someone teach me how to override the "ISO-8859-1" coding.
    Any suggestions will be deeply appreciated.

  • Form Data Order in XML

    How can you organize form data exported via XML Email Submit button? I would expect this data to follow the order within the XDP object heirarcy, however the results jump from object to object on different pages. Forget about mapping this to a database...in this case I just want the raw data to be merged via Acrobat and into a .CSV
    Is there something I'm missing? Would I need an XML Schema...thats seems like overkill. By the way I created this on Designer 11 but have tried it in Design 8.2 as well. I would expect this to function just like this feature did with AcroForms.

    Figured it out. You veterans will probably laugh, but I don't do a lot of this. I found a pallette called "Binding" and noticed a list of the fields there. Two were missing and they happened to be the ones that were out of order. I compared them to the ones that were there and the missing ones were marked global while the others were marked normal. I changed those two to normal, they showed up in the binding pallatte in the right order and my test worked just fine.
    As usual, thanks to all.

  • XML Form Builder Date validation

    Hi,
    I have an news application to be developed in XML Form Builder. I am creating News Author part of it. It has an Date field where i have to do an validation like the user cannot enter date less than the current date. I can perform simple data type validation through the form builder. Can I perform the above said validation in XML form builder or is there an work around in getting this done.
    Thanks in advance....
    Regards,
    Ganesh
    Edited by: Ganesh Natarajan on Jun 22, 2008 3:03 PM

    I guess XML Forms builder is not able to do this. You will need to create your own predefined properties for the dates and develop a metadata extension to check that the date is the correct range.

Maybe you are looking for

  • No USB keyboard or mouse after a partial update

    I'm in a jam, and need some help. I have an archlinux desktop installation here, and decided to do an update since one hadn't been done for a few months.   I did a pacman -Syuw to get all the necessary files, and since there was some conflicts I fixe

  • Cropping images in 45 degrees

    Hi forum, I have a problem: I've turned a few images on a 45 degree angle, but seeing that these images are fairly big, they now overlap each other on the facing pages set up. It's a problem I cannot solve through layers, so: How do I crop the images

  • F110 - PAYMENT RUN ERRORS

    Hio there Gurus When am running f110 status showing Parameters have been entered, Payment proposal has been created, Payment run has been carried out and vendor line items have been cleared. However, there is a shortage in the amount of money that th

  • GMail sent messages do not appear on BB

    I use a Google Apps account and a GMail account - both registered with my local BIS account server. I use Outlook 2010 on my desktop configured via IMAP. On 1st Nov 2010, my BB 9700 stopped receiving copies of items sent either through Outlook or Goo

  • Possible to receive %BODY% in email endpoint with html?

    We have an email end point and need to preserve html formatting when receiving it into a variable. Using a string seems to preserve only plain text. Is there a way to preserve the formatting? Thanks -