How create an xml structure in a pdf form

Hi genius guys,
some one can help me to create a correct xml structure (root, subroot1, subroot2, etc etc) in a pdf form and not only the single tag?
Example: I give a pdf with form to be filled and after I extract xml data. Now I have this:
<?xml version="1.0" encoding="UTF-8"?>
<fields xmlns:xfdf="http://ns.adobe.com/xfdf-transition/"
><A1classe
>1995</A1classe
><A1cognome
>Fanna</A1cognome
><A1nome
>Tonino</A1nome
><Annodifondazione xfdf:original="Anno di fondazione"
>1965</Annodifondazione
><C1classe
>1976</C1classe
><C1cognome
>Di Gennaro</C1cognome
><C1nome
>Antonio</C1nome
><Campionato
>ECCELLENZA</Campionato
><Campodigioco
>Comunale di Villabartolomea</Campodigioco
><Colorisociali
>Giallo Rosso</Colorisociali
><D1classe
>1984</D1classe
><D1cognome
>Fontolan</D1cognome
><D1nome
>Beppe</D1nome
><Girone
>A</Girone
><P1classe
>1980</P1classe
><P1cognome
>Zoff</P1cognome
><P1nome
>Dino</P1nome
><P2classe
>1974</P2classe
><P2cognome
>Garella</P2cognome
><P2nome
>Claudio</P2nome
><S1cognome
>Baudo</S1cognome
><S1mansione
>Presidente</S1mansione
><S1nome
>Pippo</S1nome
><S2cognome
>Togni</S2cognome
><S2mansione
>Vice Presidente</S2mansione
><S2nome
>Darix</S2nome
><Sede
>Via Pisacane,8 - Villabartolomea</Sede
><Squadra
>VILLABARTOLOMEA</Squadra
><T1cognome
>Dallara</T1cognome
><T1mansione
>Allenatore</T1mansione
><T1nome
>Toni</T1nome
><T2cognome
>Silvan</T2cognome
><T2mansione
>Magazziniere</T2mansione
><T2nome
>Mago</T2nome
></fields
>
and I need this:
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xfdf="http://ns.adobe.com/xfdf-transition/"
><attaccanti>
<A1classe
>1995</A1classe
><A1cognome
>Fanna</A1cognome
><A1nome
>Tonino</A1nome
>
</attaccanti>
<Annodifondazione xfdf:original="Anno di fondazione"
>1965</Annodifondazione
>
<centrocampisti>
<C1classe
>1976</C1classe
><C1cognome
>Di Gennaro</C1cognome
><C1nome
>Antonio</C1nome>
</centrocampisti>
<Campionato
>ECCELLENZA</Campionato
><Campodigioco
>Comunale di Villabartolomea</Campodigioco
><Colorisociali
>Giallo Rosso</Colorisociali
>
<difensori>
<D1classe
>1984</D1classe
><D1cognome
>Fontolan</D1cognome
><D1nome
>Beppe</D1nome
></difensori>
<Girone
>A</Girone
><portieri>
<P1classe
>1980</P1classe
><P1cognome
>Zoff</P1cognome
><P1nome
>Dino</P1nome
><P2classe
>1974</P2classe
><P2cognome
>Garella</P2cognome
><P2nome
>Claudio</P2nome
></portieri>
<societa>
<S1cognome
>Baudo</S1cognome
><S1mansione
>Presidente</S1mansione
><S1nome
>Pippo</S1nome
><S2cognome
>Togni</S2cognome
><S2mansione
>Vice Presidente</S2mansione
><S2nome
>Darix</S2nome
></societa>
<Sede
>Via Pisacane,8 - Villabartolomea</Sede
><Squadra
>VILLABARTOLOMEA</Squadra
><tecnici>
<T1cognome
>Dallara</T1cognome
><T1mansione
>Allenatore</T1mansione
><T1nome
>Toni</T1nome
><T2cognome
>Silvan</T2cognome
><T2mansione
>Magazziniere</T2mansione
><T2nome
>Mago</T2nome
>
</tecnici></root
>
Thanx, Paolo

I solve the trouble using "." to separate the tagname and create the correct structure for xml.
example:
team.player.1name
team.player.1surname
team.player.1rol
team.player.2name
team.player.2surname
team.player.2role
this give me:
<team>
     <player>
          <1name>XXXX</1name>
          <1surname>YYY</1surname>
          <1role>forward</1role>
     </player>
<player>
          <2name>XXXX</2name>
          <2surname>YYY</2surname>
          <2role>forward</2role>
     </player>
</team>

Similar Messages

  • How to Pass XML Data to a PDF Form and Load it into form fields

    I have xml Form data in a string. I would like open a programatically launch a pdf document and pass the xml data as one of the parameters and this xml data needs to load all the form fields.
    Any Idea as to how this can be done?

    I have the same requirement as Daminu, but from the research I have been doing it seems your reply is only partially true. 
    If your PDF is an XFA PDF form, with Reader Extensions enabled, and you want to keep the Reader Extensions functionality for a user to use after your programmatic manipulation, then neither of these tools will work (FDFToolkit or iText).
    Upon the user opening the file once it has been programmatically modified, the user will see the following:
    From what I have read, this requirement can only be fullfilled by use of LiveCycle Reader Extensions Server?  Please confirm?

  • How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios?

    How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios? I have all the apps in Creative Cloud by the way.

    If you already purchased it with the same Apple ID, then you will not be re-charged.

  • I would like to create a dropdown list in a pdf form without entering each value manually.

    The data is huge and contains a a lot of  product code numbers. It is extracted from our SAP system and I would like to either use an xml or excel file to create the dropdown list in the pdf form.  I use Adobe Acrobat X.

    This can be done with a script. XML files are more complex but Excel files, converted to a plain-text format, can be imported and then used to set the items list of a drop-down using the setItems() method.

  • Create an XML document from a HTML form???

    Good morning, is it possible to create an XML document from a HTML form
    if yes, can someone tell me how to proceed exactely, I would be very thankful!

    Hi,
    A very simple intro at this link. Apologies for anything unclear.
    http://cswww.essex.ac.uk/TechnicalGroup/TechnicalHelp/xmlCreate.htm
    best
    kev

  • Is there a way to create an export button on a pdf form that will send form info into ongoing excel spreadsheet?

    I'm trying to see if there is a way to create a submit button on my pdf form that will export the form data into a saved (ongoing) excel spreadsheet. The end result i'm hoping for would be a spreadsheet that lists all the information i receive from each form.
    Any help would be greatly appreciated.
    Thank you,

    Not really. But you can combine the data from multiple forms into a single (new) spreadsheet via Tools - Forms - More Form Options - Merge Data Files into Spreadsheet...

  • How do I edit a document in PDF form?

    How do I edit a document in PDF form. I have a resume I need to edit and I've tried everything.

    1. Export your PDF file to Word using Export PDF tool in PDF Pack service then edit the file in MS Office.
    2. Open in Acrobat XI Pro then you can do minor text editing using Tools > Content Editing > Edit Text & Images tool.  You can download Adobe Acrobat XI Pro trial version from www.adobe.com.
    Hisami

  • How to create an xml structure in webdynpro for java using NWDS?

    Hi Experts,
    I need to call an webservice by passing an xml structure to the webservice.I have the input values loaded on the context,which are basically tied to an Form UI element.Is there anyway in webdynpro to build an xml structure. ,
    or do i need to use any open source like JAAS or DOM parser in the webdynpro project.?
    Thanks
    Aravind

    hi,
    I was working on exporting table data from wd to Excel sheet. There, i had to create an XML representaion of the context.
    Please refer to link, and go through page, 10 and 11 and see id you find anything useful.
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20archive/exporting%20context%20data%20into%20excel%20using%20the%20web%20dynpro%20binary%20cache.pdf]

  • How do you create a database so that the PDF forms will populate the database as they are submitted?

    I am trying to create PDF forms that will be filled out by multiple members of an organization. I would like them to be submitted electronically and then populate a database so that the data does not need to be reentered into a database.
    I generally use Microsoft access but certainly know how to use comma separated values (CSV) or Microsoft Excel.
    I currently utilize Acrobat Pro X.

    Thanks for the info obviously I will need to watch the videos/tutorials on distributing and tracking documents.
    John W. Hellstein D.D.S., M.S.
    University of Iowa, Oral Pathology
    356 DSB South
    Iowa City, IA 52246
    Ph 319-335-9656
    Description: QR_Droid_73041 3

  • How to be able to save a pdf form created at Open office?

    I've created a pdf form from a openoffice document and now people can't save the changes only print it. CAn i change this and make possible for them to fill and save the form?
    Judite Fernandes

    Marieta Açores wrote:
    First of all, thank you. I have Adobe Reader 9. Is this enough?
    2009/11/12 GKaiseril <[email protected]>
    You have to use an Adobe product that add extended form rights to the PDF,
    Acorbat 9 Standard + or Acorbat 8 Professional +.
    >
    You need opne of the Acrobat products that GKaiseril mentioned. Once the file is enabled, you can use Reader to fill it out and save it.

  • How to change  XML  Structure from one form to another form using OO ABAP.

    Hi Experts,
    In my Scenario, i need to do ABAP Mapping in order to change Incoming structure from one form to another.
    My Input to ABAP Mapping (OO ABAP Program)would be :
         <A>..........</A>
         <B>..........</B>
         <C> .........</C>
         <D>..........</D>
         <E>..........</E>
         <F>..........</F>
    OO ABAP Program need to read this input and change the XML Structure into below form:
         <A>..........</A>
         <B>..........</B>
         <C> .........</C>
          <X>
                <D>..........</D>
                <E>..........</E>
          <F>...............<F>
    Please provide inputs (sample Code) to solve this issue.
    Thanks,
    Kish.
    Edited by: Kishore Reddy Thamma on Jan 22, 2008 2:51 PM
    Edited by: Kishore Reddy Thamma on Jan 22, 2008 2:52 PM

    Hi,
    Please provide sample code or Material for converting XML Structure from one form to another using OO ABAP and
    Steps for ABAP MAPPING.
    Thanks,
    Kish.

  • Using importdata to import xml data into dynamic PDF form

    Hi again,
    Me and my colleagues have a problem using the importData service to import some xml data into an empty PDF form (represented as an XFA input variable).
    In the server log I get the error that Only XDP data is supported for XFA forms, however I only have the xml data and not the entire xdp available.
    Is this really not possible to to (like importing xml data to a form is possible in the Designer when creating forms).
    I hope the scenario is understandable
    Sincerely
    Kim Christensen
    Dafolo A/S
    Denmark
    PS: During the various projects I am working on I keep running into problems...however I am totally new to LiveCycle so I consider this very informative learning steps and appreciate all your help :-)

    Hi again,<br /><br />I have been experimenting a little with both the renderPDFForm and importData services. However I don't seem to be ble to make them work as I  need them to.<br /><br />My scenario is simple, I have one (call it a template xdp/PDF form) and lots of data in xml files (around 1000), that I need to import into the template. Therefore I have set up a "Watched Folder" to take the xml as a document (I guess this is a requirement) and then I need either the renderPDF or importData services to import the xml data into the template.<br /><br />I would like to know how I should setup the services to make this work.<br /><br />When I try to use importdata I setup the following:<br /><br />PDF document: set to be the template i need to import the xml to)<br /><br />Input data: the document variable (an xml file) that is passed to the   Watched Folder<br /><br />Data merged PDF: set to an out xfaform<br /><br />When I do this I get an Coercion error in the server log:<br /><br />2007-11-15 13:27:05,324 ERROR [com.adobe.workflow.AWS] stalling action-instance: 1506 with message: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.<br />     at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument(CoercionUtil.java:656)<br />     at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:878)<br />     at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:803)<br />     at com.adobe.workflow.datatype.runtime.support.AbstractDataTypeRuntimeHandler.coerceFrom(Abs tractDataTypeRuntimeHandler.java:64)<br />     at com.adobe.workflow.datatype.runtime.support.AbstractComplexDataTypeRuntimeHandler.getNode (AbstractComplexDataTypeRuntimeHandler.java:47)<br />     at com.adobe.workflow.dom.VariableElement.setBoundValue(VariableElement.java:93)<br />     at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionCo ntextImpl.java:729)<br />     at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataWithExpression(PATEx ecutionContextImpl.java:335)<br />     at com.adobe.idp.workflow.dsc.service.SetValueService.execute(SetValueService.java:46)<br />...<br />Caused by: ALC-DSC-119-000: com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: <document state="passive" senderVersion="3" persistent="false" senderPersistent="true" passivated="true" senderPassivated="true" deserialized="true" senderHostId="127.0.0.1/172.16.10.125" callbackId="0" senderCallbackId="7" callbackRef="null" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="8039" contentType="application/xml" length="-1"><cacheId/><localBackendId/><globalBackendId/><senderLocalBackendId/><senderGl obalBackendId/><inline><?xml version="1.0" encoding="UTF-8"?><br /><form1><br />  <sub_BlanketTop /><br />  <sub_SubjectTop><br />    <f...</inline><senderPullServantJndiName>adobe/idp/DocumentPullServant/adobejb_server1</s enderPullServantJndiName><attributes file="c:\NCRConvert\ProcessForm\stage\Wx450d4b32843a0b0bcb8ef99e\NCR-00564_dXAE3soH.xml"/ ></document> of type: com.adobe.idp.Document to type: interface org.w3c.dom.Document<br />     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)<br />     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)<br /><br />However it is possible to manually import the xml data in Acrobat Professional without any problems.<br /><br />When I use the renderPDFForm with the following settings:<br /><br />Form to render: literal value that points to the template<br /><br />Form data: document variable from watched folder (xml)<br /><br />Content Root URI: repository://<br /><br />With these settings I also get a coercion error, however it does not seem to be exactly the same.<br /><br />Sincerely<br />Kim

  • How to populate Adobe LiveCycle Designer generated  PDF Forms with data from Database in Windows app

    Hi
    I have a PDF template designed in Adobe LiveCycle Designer. This template has form fields which needs to be filled with data programmatically. I am using windows application in C#.Net 2005 in which I want to retrieve data from database and merge this data into PDF form in respective fields.
    How this can be achieved?
    I searched a lot & I found that we can process the XDP file generated from PDF to acheive this. I created the XDP file out of the PDF template created in designer. But I don't know how to merge data from database into that XDP file in respective fields and again convert this XDP file back to PDF programmatically. Can anybody help me ? This is urgent.
    Thanks in advance.
    Sambhaji

    Please ignore the above code.<br />The following one is correct one.<br />using System;<br />using System.Data;<br />using System.Configuration;<br />using System.Web;<br />using System.Web.Security;<br />using System.Web.UI;<br />using System.Web.UI.WebControls;<br />using System.Web.UI.WebControls.WebParts;<br />using System.Web.UI.HtmlControls;<br />using System.Text;<br />public partial class _Default : System.Web.UI.Page <br />{<br />    protected void Page_Load(object sender, EventArgs e)<br />    {<br />        Response.ContentType = "application/vnd.adobe.xdp+xml";<br />        StringBuilder responseString = new StringBuilder();<br />        responseString.Append("<?xml version='1.0' encoding='UTF-8'?>");<br />        responseString.Append("<?xfa generator='AdobeLiveCycleDesigner_V8.0' APIVersion='2.5.6290.0'?>");<br />        responseString.Append("<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>");<br />        responseString.Append("<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>");<br />        responseString.Append("<xfa:data>");<br /><br />        responseString.Append("<form1>");<br />        responseString.Append("<TextField1>Homer</TextField1>");<br />        responseString.Append("<TextField2>Simpson</TextField2>");<br />        responseString.Append("<field name ='DropDownList1'>");<br />        responseString.Append("<items save='1'>");<br />        responseString.Append("<text>1</text>");<br />        responseString.Append("<text>2</text>");<br />        responseString.Append("<text>3</text>");<br />        responseString.Append("</items>");<br />        responseString.Append("</field>");<br /><br />        responseString.Append("</form1>");<br /><br />        responseString.Append("</xfa:data>");<br />        responseString.Append("</xfa:datasets>");<br />        responseString.Append("<pdf  href='C:\\Test.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />");<br />        responseString.Append("</xdp:xdp>");<br /><br />        Response.Write(responseString);<br />        Response.Flush();<br />        Response.End();<br />    }<br />}

  • Is it possible to remove XML properties from a PDF form?

    I created a PDF version of our employment application in Acrobat and Live Cycle Designer. I'm knew to Acrobat and somewhere along the line, must have turned on XML. Now I want to combine the application with another document but I can only do that as a package, which I have done, but it throws people off and I'd rather make one document that's not a package. I can't do that with an Adobe XML
    Is it possible to turn off XML without recreating the document?

    Not really without hacking the PDF form you created.  If you still want to go that way and the form is NOT a dynamic form then find a utility like WindJack's PDF CanOpener.  Make a copy of the document and open it in either Acrobat with PDF CanOpener plug-in and navigate through the PDF innards and find the XFA dictionary and delete it.  Then Save the document. You will need to re-edit and arrange any JavaScript actions in the saved form because Acrobat and Designer use two different JS engines.
    Ta
    Rocky

  • How do I input data to a pdf form in Acrobat 8.1.6?

    There's probably a simple solution for this but I'm wracking my brain trying to figure out how to input data to a pdf form using Acrobat 8.1.6, or how I can make the pdf file data field input ready? Thanks. 

    If you created the form Go back to Acroabt and go to advanced menu and choose:
    Extend Features in Reader. then save.
    Now open Reader and you can add information and save. (limit 500 instances per pdf).
    Now if you created the form and have Acrobat make sure Acrobat in not in Forms Edit Mode.
    Just type in your information and save.
    Caution make sure that you finished all corrections and edits. because once you confer reader right you can not edit the form. you can edit the form items you fill in, but not the form itself.
    to correct the form design you have to go back to advanced reader rights and save a copy without rights. make changes then confer rights again.

Maybe you are looking for

  • XML not displaying in Safari when using a XSL.

    Hi, has anyone encountered this issue where Safari, and all Mac browsers for that matter, don't display XML when using an XSL? When I use a XML file with an XSL stylesheet I get a "Document is Empty" error. It displays correctly when a CSS is used an

  • How to use new sequence when one is reached its maxvalue in PL SQL code

    Hi, Currently, I am populating a unique product serial number in a table column using a sequence call to generate new number. For different products, I have different sequences and in my PL SQL code usiing IF..Else block I populate serial number for

  • HOW TO REINSTALL THE GATEWAY PLUGIN in Mountain Lion

    The gateway keeps crashing when I try to download sofware off of Amazon's site. Their support instruscted me to look here to find the solution. I would appreciate any advice on how to either replace what I am told is a plug-in - or some other way to

  • For "select-form" in the same page, add a cancel button in editing status

    Dear JHeadstart team For "select-form" in the same page, I still have a trouble. How can I customize the Tempalte File to make the editing page have cancel button to abandon the edit. If I want to learn the the JHS's Template costomizing (.vm file) a

  • MIDI recognized, but no sound in Garageband

    Hello. I've been using a Casio CTK-411 simply as a MIDI controller, and whenever I plug it into the computer it says that the MIDI is recognized, but for some reason no sound comes out when I try to record. Everything was working for me before, but i