Including an XML file

Hi,
I have a simple question:
Is it possible for the users to include XML files?
Situation:
A user sends out 6 PDF Forms, after filling out he receives it again and needs it to include in his PDF form.
Thank you for your help
Carsten

As far as I know, you only can import xml-files with Adobe Acrobat. If you use it, choose "Extended" -> forms -> "importing data"
I don't know the exact names because I just know it from the German version.
Good Luck

Similar Messages

  • What is the best way to include an xml file in JSP?

    I have a jsp page that I need to include an xml file. The xml file
              uses an xsl to render the file. What is the best way to include the
              xml file and still maintain the structure of the style sheet?
              Thanks
              Jennifer
              

              The best way is using the tag lib. If you cannot, but you can use JAXP, you can
              try
              javax.xml.transform.Transformer.transform(Source xmlSource,
              Result outputTarget)
              throws TransformerException
              You construct the transformer with you xsl, use you xml file or DOM to form xmlSource,
              and use JSPWriter "out" to form outputTarget (StreamResult). But if your JSP page
              generates the xml itself, tag lib is the only way.
              [email protected] (Jennifer) wrote:
              >[email protected] (Jennifer) wrote in message news:<[email protected]>...
              >> I have a jsp page that I need to include an xml file. The xml file
              >> uses an xsl to render the file. What is the best way to include the
              >> xml file and still maintain the structure of the style sheet?
              >>
              >> Thanks
              >>
              >> Jennifer
              >
              >Or is there a way to parse the xml file with the jsp page to display
              >the information. I cannot use the Java Standard Tag Libraries as the
              >version of iplanet we are running does not support the JSTL
              >
              >Thanks
              >
              >Jennifer
              

  • Include another xml file in web.xml

    I was able to use XML Entity to include another xml file in web.xml for older servlet specifications, i.e.:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd" [
      <!ENTITY my-web SYSTEM "my-web.xml">
    ]>
    <web-app>
      &my-web;
    </web-app>This allows me to share my-web.xml among various web applications.
    How do I achieve the same thing for servlet specification 2.5, which does not have a DTD but rather an XSD?
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      id="WebApp_ID" version="2.5">I am using Glassfish V2UR1. I know about $domain-dir/config/default-web.xml, but for reasons I won't get into I cannot put things in there.

    Hi Maksim. I understood that. It's just that I would prefer some method that doesn't require the developers to do something like extracting a file from the EAR file, changing the file and then putting it back in. As you probably know, some developers could handle it and some will most certainly make mistakes.
    When they do they come to my group and say "my app doesn't work" and then we have to spend time figuring out why.
    Plus, once the developers get used to doing things the automated way they're going to have a hard time remembering to do a manual step each time they do a build.
    I have heard that there may be some way to do something similar to this on Visual Administrator. I'm going to investigate that too.
    Thanks!
    David.

  • How to include an xml file in an xml file ?

    Hello,
    Is there an xml tag to include the content of an xml file in another ? So the parser, parsing the first one, automaticaly parse the second one (included one) when reaching the tag.
    Thanks.
    William T.

    You can use an entity reference to point to the next xml file.
    An entity reference in an xml file is preceded by the & And then the name of the reference i.e.
    <mytag>&nextFile</mytag>. Your DTD for the xml file must have a corresponding <!ENTITY> tag that says how to dereference the entity reference in the xml file to an actual resource. If you want to handle entity references via a SAXParser, then you will need to implement the EntityResolver interface and register this with the parser. I think it should be possible in the entity resolver to create a new parser object to handle the new file.
    Hope this helps.

  • How to include one xml file into another

    Dear Sir/Madam!
    Could you do me a favour and help me to solve the problem like this:
    I have one xml file wich describe the common thins of the GUI, and the another will be generated depending on the point the user has selected.
    I would be very pleased for any helpful assistance.

    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml"/>
    <xsl:template match="/">
    <xsl:variable name="xml1" select="document('xml1.xml')"/>
    <xsl:variable name="xml2" select="document('xml2.xml')"/>
    <xsl:copy-of select="$xml1"/>
    <xsl:copy-of select="$xml2"/>
    </xsl:template>
    </xsl:stylesheet>

  • How to include .class or xml file in a JNLP

    Hi,
    I want to include an xml file in the JNLP file. Can any one tell me the syntax to include it plzzzzz.....
    Regards,
    Prasanna

    You mean as related-content?
    If so, put it in a native-lib as myXml.jar and have href="jar:myXml.jar!/actualXmlFile.xml"
    Bye.

  • How to include .xml file while building a stand alone applicatio​n .exe file from a Labview program

    HI,
    I have a labview program which loads default values of all the variables from a .xml file when executed.  I am trying to build a standalone '.exe application'  using
    (Tools Menu --> Build Application from VI) , however I am not sure where to include this .xml file in the process?  I really appreciate if some one could let me know.
    Thanks
    Vish

    As GerdW said, it is preferable (and better practice) to use the project explorer. My guess, you didn't configure the build correctly (and probably used the default settings).
    First, you have to specify your xml file as Always included is the source file tab
    Now look at how the build folders are built:
    The .ini file (xml in your case) is in the data folder. So in the build the relative position of the xml file is not the same as in the development environment. You have to be aware of this difference and use a diiferent relative path for the exe. You can do this using a conditional disable symbol in the project and then use the conditional disable structure in your VI.
    Here in the deploy case the exe will look for the file in the data folder and in the development environment it will look in a folder name Files.
    Ben64

  • Include DTD in XML file

    Do we always have to include DTD in an XML file??
    i know this sounds kind of trivial :)
    but if someone wanna earn some duke dollar,by all means...

    As said by the above poster, it's not mandatory by any means to include a DTD reference in your XML file. But if not included, the XML file author and/or user won't be able to validate the file structurally.

  • Include xml file in jsp page

    hi,
    i just would like to include an xml file and his xsl file in a jsp page.
    i know we can do it in asp like that :
    <%
    //load the xml file
    var source = Server.CreateObjetc("Microsoft.XMLDOM");
    source.load(Server.MapPath("toto.xml"));
    //load the associated xsl file
    var style = Server.CreateObject("Microsoft.XMLDOM");
    style.load(Server.MapPath("toto.xsl"));
    //transform the source document
    var result = source.transformNode(style);
    Response.Write(result);
    %>
    i want exactly do the same in jsp
    does anyone know how to do?

    where is the big deal? there are many posts answering this in the forum.
    here is a possibility:
    <%@page contentType="text/html;charset=utf-8"%>
    <%@page import="javax.xml.transform.*,javax.xml.transform.stream.*" %><%
    Templates myTemplates = TransformerFactory.newInstance().newTemplates(new StreamSource(new File("whatever.xsl")));
    Transformer transformer = myTemplates.newTransformer();
    StringWriter sw = new StringWriter();
    transformer.transform(new StreamSource(new File("whatever.xsl")), new StreamResult(sw));
    out.print(sw.toString());
    %>

  • Reading XML file from java web service

    Hi
    I am developing web service using Netbeans and the application server is glassfish.
    but I am facing a problem
    I have folder called "config" which will include the xml files. What I need to do setting path into that folder
    but it will read from another location when I am deploying it
    How to set our own path ?
    Error
    DPL5306:Servlet Web Service Endpoint [NewWebService] listening at address [http://kapila.epic.lk:8080/WebApplication2/NewWebServiceService]
    deployed with moduleid = WebApplication2
    java.io.FileNotFoundException: /root/MyWorks/glassfish-v2/domains/domain1/config/OSconfig/MConfig.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    My "conifg" folder, i have put in to working directory but it will read from "/root/MyWorks/glassfish-v2/domains/domain1/config/OSconfig/MConfig.xm"
    below method is used for getting its contain value
    public String getMainCofig() {
                String v ="";
            try{
              DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory
                        .newInstance();
              DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
              Document doc = docBuilder.parse(new File("OSconfig/MConfig.xml"));
              doc.getDocumentElement().normalize();
              NodeList listOfSPRMs = doc.getElementsByTagName("MainConfig");
              Node firstSPRMNode = listOfSPRMs.item(0);
              if (firstSPRMNode.getNodeType() == Node.ELEMENT_NODE) {
                   Element firstSPRAMElement = (Element) firstSPRMNode;
                   // Getting platform
                   NodeList server_port = firstSPRAMElement
                             .getElementsByTagName("RunningPlatform");
                   Element server_port_el = (Element) server_port.item(0);
                   NodeList server_port_List = server_port_el.getChildNodes();
                    v= ((Node) server_port_List.item(0))
                             .getNodeValue().trim();
            }catch (Exception e){
            e.printStackTrace();
                    return v;
    Regards
       

    I didn't quite get what the problem is but if the the desired file is in custom directory why don't you just use absolute path to reference it?
    Like: "/home/my/OSconfig/MConfig.xml"

  • Xml file to tables

    Hello,
    I am trying to insert a XML file into the tables. When I read the XSU documentation, I saw a command line utility java OracleXML.
    In a book I read, it said before one uses java OracleXML commmand line utility, the XML file has to be converted to another XML file using XSLT for OracleXMLSave to recognize the XML file. This was because OracleXMLSave will know to insert the XML file into the tables only if the XML was generated by OracleXMLquery.
    But in the Oracle XML documentation, it didn't explicitly say anything about converting using XSLT to do the loading of the XML file into the tables. But the examples in the site used only the XML file which was generated from the tables to load them into the table again.
    Please clarify me on this point.
    Thanks a lot for your help.
    Rama

    Using the Oracle XML DB Webdav are is one method as it acts like a file system, but essentially get's the documents directly into the database so they can be queried through the resouce_view.
    Other methods involve reading the file as if it's a CLOB and then using XMLTYPE constructor to change that CLOB to an XMLTYPE which can then be stored as that datatype in the database or processed as you need.
    The best place to look is over in the XML DB forum, which has it's own FAQ detailing various best practices for all sort of XML stuff, including reading XML files and shredding them into relational tables etc.
    {thread:id=410714}
    Edited by: BluShadow on 18-Jan-2012 08:53
    corrected link

  • Writing to separate XML files

    I'm not too familiar with XML yet, so I don't know what its called, but you know how you can "include" another XML file in this fashion:
    <?xml version="1.0"?>
    <!DOCTYPE configuration SYSTEM "my.dtd" [
      <!ENTITY include SYSTEM "include.xml">
    ]>
    <root>
      &include;
    </root>... and all the stuff in include.xml gets essentially copied into yours whenever the file is read. Well how can I generate a file that looks like this. I basically want to be able to choose which nodes underneath the root node I can put in separate files. I'm doing this by converting a DOM to XML with this code...
             Document d = MY_DOCUMENT;
             DOMSource domSource = new DOMSource(d);
         TransformerFactory tf = TransformerFactory.newInstance();
         tf.setAttribute("indent-number",4);
         Transformer transformer = tf.newTransformer();
         transformer.setOutputProperty(OutputKeys.METHOD, "xml");
         transformer.setOutputProperty(OutputKeys.ENCODING,"ISO-8859-1");
         transformer.setOutputProperty(OutputKeys.INDENT, "yes");
         transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,"ems.dtd");
         FileOutputStream fileOut = new FileOutputStream(filename);
         transformer.transform(domSource, new StreamResult(new OutputStreamWriter(fileOut,"utf-8")));
         fileOut.close();

    You can also use commands like bcp withT-SQL  query to get the shredded XML values saved as separate xml files. You've xpath function like query() available which will shred out parts of XML from your main column
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Urgent, creating xml files dynamically, request dispatcher problem

    hi all,
    Problem 1:
    There is a problem we are facing, while request dispatching.
    The files CBECBC.XML & CBECBC_Envelop.XML,
    both xml files. These files are created on request from the user, dynamically, and displayed on the browser,
    by including them in a jsp page.
    Here we face a problem when they are to be included into the jsp page.
    The error is the following :
    //////// Error ////////
    Could not find request dispatcher for the url CBECBC.xml
    Could not find request dispatcher for the url CBECBC_Envelop.xml
    The created files are stored in the "d:\pstudio35\desks\bank\BankWeb\".
    We are using " <jsp:include page="...."/> " (dynamic jsp include tag), to include the xml files.
    Problem 2:
    And could you just let me know how to include a xml file in a jsp file,
    so that the xml file is displayed in the exact format of xml(with the tags).
    I am using Pramati Studio 3.5
    Its urgent!!!
    Regards,
    Deepa Datar

    problem 2:
    either translate all < en > into < and > or display the XML in a textarea

  • Does MI client Patch work For meRepMeta.xml file.

    Hi All,
    Every time I create a patch it works fine for JSP & Contollers but it dont replace Views, images & properties files.
    Now a new change cameup it happened to make changes to lot of view files including meRepMeta.xml file as there are changes in Sync BO itself.
    Can some body advice, does the patch work to replace this or not, else a feasable solution as we cannot reconfigure all the Devices on site.
    Your help is much appriciated.
    Thanks & Regards,
    Sai Krishna. K

    Dear Sai Krishna,
    It is normal, not an issue. It sometimes depends on different factors. Generally 2-3syncs are required to get the full data after client data reset.
    Regards,
    Veera
    Additional Non-Conslusive Info for understanding:
    Though there is no official wording, and just general recommendation of 2-3 syncs, we can derive (though I cannot term for sure) the general way of working of the sync mechanism from the default value of the below parameter setting. This setting comes when you "Allowing the Creation of Setup Packages" in your server":
    Parameter: NO_OF_SYNC_TO_GET_MASTER_DATA
    Description:
    Optional. Number of synchronization
    processes required to download the
    initial master data.
    Determine the number required by
    setting up a test device and checking
    the number of synchronizations
    necessary for all the data to be
    visible following the two initial
    synchronization runs (see
    Synchronizing for the First Time
    ). As part of the two initial
    synchronization runs, the device ID is
    assigned and the application is
    transferred. Do not include these
    initial synchronization runs in your
    calculation. Only take those runs into
    account that are used to transfer the
    data.
    Possible values: Positive integers
    Default: 3
    Note: I have just copied the table values above from the configuration guide in help.sap.com.

  • XML file error help!!!!!

    When i create a jar file include this xml file,the error is
    "ejb-jar.xml": invalid header field
    how can correct it?
    Thanks
    <?xml version='1.0'?>
    <!DOCTYPE ejb-jar PUBLIC '-//SUN Microsystems,Inc.//DTD Enterprise JavaBeans
    1.1//EN''http://java.sun.co/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
         <description>
              Single stateless session bean to calculate monthly salary
         </description>
         <display-name>
              Simple Bean
         </display-name>
         <enterprise-beans>
              <session>
                   <description>
                        Simple Salary Bean to calculate monthly net earnings
                   </description>
                   <display-name>
                   Simple Bean
                   </display-name>
                   <ejb-name>Salary</ejb-name>
                   <home>simpleBean.SalaryHome</home>
                   <remote>simpleBean.Salary</remote>
                   <ejb-class>simpleBean.SalaryEJB</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
              </session>
         </enterprise-beans>
    </ejb-jar>

    <!DOCTYPE ejb-jar PUBLIC '-//SUN
    Microsystems,Inc.//DTD Enterprise JavaBeans
    1.1//EN''http://java.sun.co/dtd/ejb-jar_2_0.dtd'>
    This is where your error is. ;D

Maybe you are looking for

  • Wired (Ethernet) Mac Mini file sharing with wireless Windows 7 PC

    Hi Guys, I'm new to the Mac experience having just bought a Mac Mini so be gentle please. I have the Mini connected to my router & internet the via Cat5 Ethernet cable. I also have a Dell Notebook running Windows 7 connecting wirelessly to that route

  • XML Parser and Content-type/encoding problem

    I've write a little and simple XML parser and a simple "trasformer" that recive an XML file and an XSL one and return HTML, here is the code: public static String toHTML(Document doc, String xslSource){         ByteArrayOutputStream testo = new ByteA

  • New Sony DSC T900 Camera Advice

    This is my first post on the Apple forums although I have read many post on here from others and found it a very useful and informative place to learn, I am also to fairly new to Final Cut also making the transition over from iMovie 08 so please be p

  • ALV - Select multiple lines without CTRL

    Hi, I have an ALV OO Grid with layout-sel_mode = 'A'. But I need to select multiple lines without need to hold CTRL key. Just like a table control. Is it possible? Thanks, Frisoni

  • Package scope and import statements

    Hi everubody, I'm studing a code: foo.java written by sb. else. In the code, I have: package com.dir1.dir2.dir3; import com.dir1.dir4.code1; import com.dir1.dir5.code2; The code: foo.java exists in the directory: com/dir1/dir2/dir3 as expected. Howev