Output non-indented XML with XMLDocument.print()

Hi,
Using Oracle XML Parser 2 i am dynamically contructing a XMLDocument via calls to createElement() and createTextNode().
See the code below for an example.
When Xml_doc.print(System.out) is called an indented XML document is printed out to the console.
Is there anyway to get a version which is not indented or beautified i.e there is not whitespace between elements.
I thought that XMLOutputStream.setOutputStyle(COMPACT) might work - but am not sure how to use it.
Thanks in advance
Kevin
OUTPUT (indented!):
~~~~~~~
<?xml version = '1.0'?>
<main>
<sub1>sub1text</sub1>
<sub2>sub2text</sub2>
</main>
// CODE
~~~~~~~~
import org.w3c.dom.*;
import org.w3c.dom.Node;
import oracle.xml.parser.v2.*;
public class DOMTest
static public void main(String[] argv)
try
XMLDocument Xml_doc = new XMLDocument();
Xml_doc.setVersion("1.0");
// document Element node
Element Xml_dad = Xml_doc.createElement("main");
Xml_doc.appendChild(Xml_dad);
// Add child nodes
addNode(Xml_doc, Xml_dad , "sub1", "sub1text");
addNode(Xml_doc, Xml_dad , "sub2", "sub2text");
Xml_doc.print(System.out);
//XMLOutputStream xos = new XMLOutputStream(System.out);
//Xml_doc.print(xos);
catch (Exception e)
System.out.println(e.toString());
public static void addNode(XMLDocument doc, Element parent, String tag, String value)
Element child = doc.createElement(tag);
parent.appendChild(child);
Text txtChild = null;
if (value!=null)
txtChild = doc.createTextNode(value);
else
txtChild = doc.createTextNode("");
child.appendChild(txtChild);
null

Currently there is no direct way of removing the indentations. Enhancement request is made to support this.
null

Similar Messages

  • Write indented  XML with string

    Hi people, I know that are many topics, but i didn't find one solution.
    I have that String
    <?xml version="1.0" encoding="UTF-8"?>
    <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
    <wsp:ExactlyOne>
    <wsp:All/>
    </wsp:ExactlyOne>
    </wsp:Policy>and I would to transform that with this code
    public String generateIndentedXML(){
              //The method should get the XML code from the generateXML() method
              //and then do the changes (add the indentation) on that string
              TransformerFactory tf = TransformerFactory.newInstance();
              tf.setAttribute("indent-number", 4);
              OutputStream os = new ByteArrayOutputStream();
              String m = generateXML().replaceAll("\n", "\r");
              String s = "";
              try{
                   Transformer t = tf.newTransformer();
                   t.setOutputProperty(OutputKeys.INDENT,"yes");
                   StreamSource source = new StreamSource(new ByteArrayInputStream(m.getBytes()));
                   StreamResult result = new StreamResult(os);
                   t.transform(source,result);
                   s= result.getOutputStream().toString();
              catch(Exception ex){
                   System.out.print(ex+"bla");
              return s;
         }But it didn't work, somebody has the solution for my problem?

    If all you want to do is format the XML, then the easiest thing to do is use xmllint (a command-line utility) and don't write a Java program at all.
    If you must write the Java code yourself...then I don't think you need to create a transformation if all you want to do is format the code. IIRC, transformations are for changing the structure of the XML tree, not for pretty-printing.

  • C5550 non-compat​ibility with Netgear print server

    Netgear claims my HP Photosmart C5550 is in-compatible with their wireless PS121v2 print server.  What print servers are?

    Hi, Les,
    I think that info about Macs and postscript printers applies to OS 9.
    But there are usually two challenges to get this working:
    1. Driver - postscript drivers aren't limited to local connections; non-postscript drivers nearly always are (because manufacturers provided Carbon drivers that specify the comm type). A postscript PPD/driver for your model is included in OS X.
    2. Print Server setup. There's almost always an auto-setup wizard for Windows. We Mac users have to read the manual and understand what details to use in the Add printer dialog.
    First - what is called the TCP/IP protocol in the Netgear manual is the LPD protocol on OS X. What is called the Physical Port Name in the manual is equal to queue name in OS X. If I'm reading the correct manual, the queue name for parallel port 1 is "P1." Enter that in the space for queue name in the Add printer dialog.
    Good luck.

  • Can I parse non-wellformed XML with SAX at all?

    Hi all,
    i was wondering whether its possible at all to parse XML that is not well formed with SAX.
    e.g. A HTML file that doesnt close tags and stuff like that.
    I tried implementing the fatal() method of the Handler in a a way that it consumes the exception but does not rethrow it.
    Also I tried setting the validation property to false. Both with no success.
    Any help would be appriciated.
    thx
    philipp

    Your experiments tell you the answer.
    If you have HTML tag soup, why not just run it through JTidy or HTMLTidy to make it into well-formed XHTML?

  • Output XML with indentation...

    I've not found an answer to this on the forums so was hoping someone might have discovered what's up since...
    Using the Transformation API with the default JAXP 1.1 transformer (Xalan) and setting the output property "indent" to "yes", the resulting XML contains carriage returns but no indentation as hoped.
    I don't think that indentation is required for the transformer to adhere to the specification but it seems like quite an omission nonetheless.
    Does anyone know how to output indented XML without going to the trouble of adding whitespace text nodes into the document tree?
    Many thanks,
    K.
    Transformer transformer = TransformerFactory.newInstance().newTransformer();
    transformer.setOutputProperty(OutputKeys.INDENT, "yes");
    transformer.transform(new DOMSource(doc), new StreamResult(out));

    We did it this way:
    import java.util.Map;
    import java.util.HashMap;
    import java.util.Properties;
    import java.io.*;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.InputSource;
    import org.apache.xml.serialize.XMLSerializer;
    import org.apache.xml.serialize.OutputFormat;
    import org.apache.xerces.parsers.SAXParser;
    public class XmlPrettyPrinter extends XMLSerializer {
      private Map mapping = new HashMap();
      public XmlPrettyPrinter(StringWriter out, OutputFormat format) {
        super(out, format);
      public static String beautify(String xml) {
        if (xml == null || xml.trim().length() == 0) {
          return "";
        Reader reader = new StringReader(xml);
        XMLReader parser = new SAXParser();
        try {
          parser.setFeature("http://xml.org/sax/features/validation", false);
          OutputFormat format = new OutputFormat();
          format.setIndenting(true);
          format.setIndent(2);
          format.setLineWidth(80);
          StringWriter out = new StringWriter();
          XmlPrettyPrinter serializer = new XmlPrettyPrinter(out, format);
          parser.setContentHandler(serializer.asContentHandler());
          parser.parse(new InputSource(reader));
          return out.toString();
        } catch (Exception e) {
          // do something about this Exception
        return xml;
      public void characters(char[] chars, int offset, int length) throws SAXException {
        String s = new String(chars, offset, length).trim();
        char[] array = s.toCharArray();
        super.characters(array, 0, array.length);
    }Maybe you get an idea what to change in your code.
    Regards,
    hedtfeld

  • T.code FBL5N: a problem with the print of the output list

    Hi All,
    with reference to the t.code FBL5N, I have  a problem with the print of the output list of the report.
    When I execute the print, I obtain one customer for each page printed.
    I wonder if is possible to obtain more customers for each page printed.
    Could anyone help me?
    Thanks
    Gandalf
    Edited by: Umberto Gandalf on Dec 21, 2008 10:36 PM

    Hi,
    Though personally i havent tried this option, check the same
    Go to Menu: Settings >> Switch List
    This will make the value displayed in ALV format and then try taking print outs.
    Regards,
    Sridevi

  • Performance Problem with Adobe Print Forms (Non-Interactive)

    Hi Team,
    I have a <b>Web Dynpro ABAP</b> application with a print button which actually launces an Adibe print form (NOT Interactive) for the WDA data context. The scenario is for a Purchase Order in the ERP system. The problem is regarding performance when the line items are more then 150. The Adobe form is very simple WITH NO scripting and a plain tabular display of the line items. It takes around 4 minutes to load the form which has only 5 pages and is causing the WDA application to time out. Following are the configuration/Design details:
    ADS Version: 705.20060620101936.310918
    Adobe Reader 7.0, Version 7.0.9
    Adobe Live Cycle Designer 7.1, Version 7.1.3284.1.338866
    <b>FORM Element in WDA</b>:
    displayType = activeX (Should this be native for performance improvements?)
    "enabled" is not checked
    readOnly = 'X'
    <b>SFP Settings for the template Form</b>
    Layout Type in Properties = Standard Layout (Should this be xACF or ZCI for performance improvements?
    Interface type for the Form Interface = XML Schema-Based Interface
    <b>We are on 2004s release SP10</b>
    <b>Specific Questions:</b>
    1) Any recommendations for the above settings to improve performance?
    2) The form design is very simple with no complexity. The Table element is very basic and as per the blogs given in SDN. NO Scripting is performed.
    Any help, recommendations would be greatly appreciated.
    Regards

    Hi Sanjay,
    i would suggest you to have ZCI layout (native).
    Set the form properties to be cached on server (refer performance improvements in the Adobe LC Designer help).
    The performance will also depend on the ADS and also the network, including the R/3, as all these components come into picture.
    Hope these points, if you have not checked already, will help you.
    - anto.

  • Output XML with a default namespace using XQuery

    I'm having a problem with namespaces in an XQuery within ALSB.
    We receive XML from a file which doesn't have any namespace and have to transform it into a different structure, giving it a default namespace such as below:
    Input XML
    <inputRoot>
         <inputAccountName>Joe Bloggs</inputAccountName>
         <inputAccountNumber>10938393</inputAccountNumber>
    </inputRoot>
    Desired output XML
    <outputRoot xmlns="http://www.example.org/outputSchema">
         <outputAccounts>
              <outputAccountName>Joe Bloggs</outputAccountName>
              <outputAccountNumber>10938393</outputAccountNumber>
         </outputAccounts>
    </outputRoot>
    When I attempt to do this using XQuery mapper tool, I end up with a namespace prefix on the outputRoot. The XQuery and result follows:
    XQuery
    declare namespace xf = "http://tempuri.org/XQueryProject/scratchTransformations/test/";
    declare namespace ns0 = "http://www.example.org/outputSchema";
    declare function xf:test($inputRoot1 as element(inputRoot))
    as element(ns0:outputRoot) {
    <ns0:outputRoot>
    <outputAccounts>
    <outputAccountName>{ data($inputRoot1/inputAccountName) }</outputAccountName>
    <outputAccountNumber>{ data($inputRoot1/inputAccountNumber) }</outputAccountNumber>
    </outputAccounts>
    </ns0:outputRoot>
    declare variable $inputRoot1 as element(inputRoot) external;
    xf:test($inputRoot1)
    Result
    <ns0:outputRoot xmlns:ns0="http://www.example.org/outputSchema">
         <outputAccounts>
              <outputAccountName>inputAccountName_1</outputAccountName>
              <outputAccountNumber>inputAccountNumber_1</outputAccountNumber>
         </outputAccounts>
    </ns0:outputRoot>
    How can I write the XQuery in such a way thay the namespace prefix isn't output? I've tried many different methods with no success. I can't declare a default element namespace because my input element doesn't have a namespace
    Thanks in advance

    I spoke too soon, it didn't work quite as perfectly as I'd thought :-) It turns out our client can't handle the xml with the namespace prefix but we've worked out the solution to return XML in the format we originally needed.
    Example below:
    XQuery
    declare namespace xf = "http://tempuri.org/XQueryProject/scratchTransformations/test/";
    declare default element namespace "http://www.example.org/outputSchema";
    declare namespace ns1 = ""
    declare function xf:test($inputRoot1 as element(ns1:inputRoot))
    as element(outputRoot) {
    <outputRoot>
    <outputAccounts>
    <outputAccountName>{ data($inputRoot1/inputAccountName) }</outputAccountName>
    <outputAccountNumber>{ data($inputRoot1/inputAccountNumber) }</outputAccountNumber>
    </outputAccounts>
    </outputRoot>
    declare variable $inputRoot1 as element(inputRoot) external;
    xf:test($inputRoot1)

  • Create XMl with indentation by DOM

    Hi all,
    I wanna create a xml file with indentation.
    e.g
    <MyXML>
         <MyNode attr1="value1"/>
         <MyNode2 attr1 = "value1"/>
    </myXML>
    I save my xml with the following code
         TransformerFactory transFactory = TransformerFactory.newInstance();
         Transformer transformer = transFactory.newTransformer();
         DOMSource source = new DOMSource(getDocument());
         FileOutputStream os = new FileOutputStream(file);
         StreamResult result = new StreamResult(os);
         transformer.transform(source, result);it create a result like:
    <MyXML><MyNode attr1="value1"/><MyNode2 attr1 = "value1"/></myXML>
    how to achieve my purpose ?

    sorry again, this is what i really want to achieve
    <MyXML>
         <MyNode attr1="value1"/>
         <MyNode2 attr1 = "value1">
              <MyChildNode attr="value"/>
         </MyNode2>
    </MyXML>

  • Using Non-destructive filter with Nested XML data

    Hi,
    How do you use Non-destructive filter with Nested XML data?
    I am using the non-destructive filter sample with my own xml which is setup to search for the <smc></smcs> in my xml below. But when i test it it only searches the last row of the "smc". How can i make it work so it can search for repeating nodes? or does it have something to with how my xml is setup?
        <ja>
            <url>www.sample.com</url>
            <jrole>Jobrole goes here</jrole>
            <prole>Process role goes here...</prole>
            <role>description...</role>
            <prole>Process role goes here...</prole>
            <role>description....</role>
            <prole>Process role goes here...</prole>
            <role>description...</role>
            <sjc>6K8C</sjc>
            <sjc>6B1B</sjc>
            <sjc>6B1F</sjc>
            <sjc>6B1D</sjc>
            <smc>6C9</smc>
            <smc>675</smc>
            <smc>62R</smc>
            <smc>62P</smc>
            <smc>602</smc>
            <smc>622</smc>
            <smc>642</smc>
            <smc>65F</smc>
            <smc>65J</smc>
            <smc>65L</smc>
            <smc>623</smc>
            <smc>625</smc>
            <smc>624</smc>
            <smc>622</smc>
            <audience>Target audience goes here....</audience>
        </ja>
    here is the javascript that runs it.
    function FilterData()
        var tf = document.getElementById("filterTF");
        if (!tf.value)
            // If the text field is empty, remove any filter
            // that is set on the data set.
            ds1.filter(null);
            return;
        // Set a filter on the data set that matches any row
        // that begins with the string in the text field.
        var regExpStr = tf.value;
    if (!document.getElementById("containsCB").checked)
            regExpStr = "^" + regExpStr;
        var regExp = new RegExp(regExpStr, "i");
        var filterFunc = function(ds, row, rowNumber)
            var str = row["smc"];
            if (str && str.search(regExp) != -1)
            return row;
            return null;
        ds1.filter(filterFunc);
    function StartFilterTimer()
        if (StartFilterTimer.timerID)
            clearTimeout(StartFilterTimer.timerID);
        StartFilterTimer.timerID = setTimeout(function() { StartFilterTimer.timerID = null; FilterData(); }, 100);
    I really need help on this, or are there any other suggestions or samples that might work?
    thank you!

    I apologize, im using Spry XML Data Set. i guess the best way to describe what im trying to do is, i want to use the Non-desctructive filter sample with the Spry Nested XML Data sample. So with my sample xml on my first post and with the same code non-destructive filter is using, im having trouble trying to search repeating nodes, for some reason it only searches the last node of the repeating nodes. Does that make sense? let me know.
    thank you Arnout!

  • Using XMLAgg with non-wellformed XML fragments

    Hi,
    with XMLAgg one can create a non-wellformed XML-Fragement ( i.e. with multiple root elements ) like
    <foo>bar1</foo>
    <foo>bar2</foo>
    where each foo element comes from a table row ( e.g. from a single-column table with the rows 'bar1' and 'bar2' ).
    However, I wasn't able to get a similar result when creating multiple elements per row. I defined a function that returns a non-wellformed fragment like
    <foo>bar1</foo>
    <oof>bar1</oof>
    per row, but I couldn't aggregate these fragments using XMLAgg. The result should look like ( 2 elements per row )
    <foo>bar1</foo>
    <oof>bar1</oof>
    <foo>bar2</foo>
    <oof>bar2</oof>
    Instead, i got an "LPX-00245: extra data after end of document" error ( whole error see below ).
    I wonder why it is possible to create non-wellformed fragments with XMLAgg, but why there seems to be impossible to aggregate them.
    Regards,
    Pat
    The whole error message ( sorry, the DBMS is configured for german language ):
    ORA-29400: Data Cartridge-Fehler
    ORA-31011: XML-Parsing nicht erfolgreich
    ORA-19202: Fehler bei XML-Verarbeitung
    LPX-00245: extra data after end of document
    Error at line 1
    aufgetreten
    ORA-06512: in "TEST.DOC", Zeile 31
    29400. 00000 - "data cartridge error\n%s"
    *Cause:    An error has occurred in a data cartridge external procedure.
    This message will be followed by a second message giving
    more details about the data cartridge error.
    *Action:   See the data cartridge documentation
    for an explanation of the second error message.

    Even in 9i I can aggregate without root element:
    SQL> set timing off
    SQL> select * from v$version where rownum = 1
    BANNER                                                         
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    1 row selected.
    SQL> with t as (
    select 1 id, xmltype( '<foo>bar1</foo>') xml from dual union all
    select 1, xmltype( '<foo>bar1</foo>') from dual union all
    select 2, xmltype( '<foo>bar1</foo>') from dual union all
    select 2, xmltype( '<foo>bar1</foo>') from dual
    select  xmlagg(xml) xml from (
            select id, xmlagg(xml) xml from t group by id)
    XML                                                                     
    <foo>bar1</foo>                                                         
    <foo>bar1</foo>                                                         
    <foo>bar1</foo>                                                         
    <foo>bar1</foo>                                                         
    1 row selected.

  • I am not getting required output after importing xml file having HTML tags, MathML and Latex code

    I created well formatted xml having html tags, MathML code and Latex code inside
    XML with sample latex
    <question>
        <p> 8. In this problem, <Image  style="vertical-align: -9pt" title="5a\frac{7b}{3}" alt="5a\frac{7b}{3}" href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%205a%5Cfrac%7B7b%7D%7B3%7D%0A"></Image> and <Image href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%207b%5Cfrac%7B5a%7D%7B3%7D" style="vertical-align: -9pt" title="7b\frac{5a}{3}" alt="7b\frac{5a}{3}"> </Image>are both mixed numbers, like <Image src="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%203%20%5Cfrac%7B1%7D%7B2%7D%20=%203.5" style="vertical-align: -9pt" title="3 \frac{1}{2} = 3.5" alt="3 \frac{1}{2} = 3.5"></Image>. The expression <Image style="vertical-align: -9pt" title="5a \frac{7b}{3} \ \times 7b \frac{5a}{3}" alt="5a \frac{7b}{3} \ \times 7b \frac{5a}{3}" href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%205a%20%5Cfrac%7B7b%7D%7B3%7D%20%5C%20%5Ctimes %207b%20%5Cfrac%7B5a%7D%7B3%7D"> </Image>is equal to which of the following choices? </p>
    </question>
    XML with sample html tags
    <p>4. Examine the expression 3<i>k</i><sup>2</sup> + 6<i>k</i> - 5 + 6<i>k</i><sup>2</sup> + 2.</p><p>When it is simplified, which of the following is the equivalent expression?</p>
    XML with sample MathML tags
    <p>5. Find the vertex of the parabola associated with the quadratic function <math xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo> </mo><mo>=</mo><mo> </mo><mo>-</mo><msup><mi>x</mi><mn>2</mn></msup><mo> </mo><mo>+</mo><mo> </mo><mn>10</mn><mi>x</mi><mo> </mo><mo>+</mo><mo> </mo><mn>4</mn></math></p>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mo>-</mo><mn>5</mn><mo>,</mo><mo> </mo><mn>69</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mn>5</mn><mo>,</mo><mo> </mo><mn>29</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mn>5</mn><mo>,</mo><mo> </mo><mn>69</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mo>-</mo><mn>5</mn><mo>,</mo><mo> </mo><mn>29</mn></mrow></mfenced></math>
    None of the above works fine after importing xml to Indesign document/templete, it is not renderting equivalent out instead it is showing the same text inside tags in the Indesign document.
    I have lot of content in our database, I will export to XML, import to Indesign, Indesign should render required output like what we see in the browser and export the output to printed format.
    Import formated XML to indesign --> Export to Quality Print Format
    Can any one guide me and let me know whether it is posible to do with Indesign, if so let me know in case if I am missing anything in importing xml and get required output.
    Thanks in advance. Waiting for reply ASAP.

    Possibly your expectations are too high. ... Scratch that "possibly".
    XML, in general, cannot be "rendered". It's just an abstract data format. Compare it to common markup such as *asterisks* to indicate emphasized words -- e-mail clients will show this text in bold, but InDesign, and the vast majority of other software, does not.
    To "render" XML, HTML, MathML, or LaTeX -- you seem to freely mix these *very* different markup formats, unaware of the fact that they are vastly different from each other! -- in the format you "expect", you need to apply the appropriate software to each of  the original data files. None of these markup languages are supported natively by InDesign.

  • Calling Bpel Process From a Jsp(Need a string output instead of XML object)

    Hi
    I am calling a BPEL process(Synchrononus) from a JSP page, Where Bpel process calls a java web service.The output from Bpel process is returned as an XML object. I need the output in a string format.Please let me know the steps to get the string output.
    I also executed invokeCreditRatingService.jsp(from samples shipped with SOA Suite) that calls CreditRatingService bpel, but i was getting the following output where the rating value is printed as an XML object.
    Output:-
    BPELProcess CreditRatingService executed!
    Credit Rating is oracle.xml.parser.v2.XMLElement@9511c8
    Please let me know, what changes i need to make to get the string output.I followed all the steps given in "orabpel-Tutorial7-InvokingBPELProcesses.PDF" to execute credit rating jsp.
    We are using SOA Suite 10.1.3.1.0 version.Do I need to make any changes to the code, to make it work with this version.
    Thanks
    Vandana.

    The call payload.get("payload") returns, as you have observed, an XMLElement. You can simply convert the XMLElement into an XML string by using a DOMSerializer implementation. The following code is very useful for this purpose:
    http://javafaq.nu/java-example-code-432.html
    Best,
    Manfred

  • Print Check-Copy (Non-Negotiable) after every check print

    We are implementing Std. R12.0.6 AP Check Printing.
    I've designed standard BI Publisher RTF to print the Check and Check-Copy without any issue.
    My RTF Template has Check design on first page and Check-Copy (Non-Negotiable) on second page of RTF. Std. Conc. Prog. Payment program FORMAT PAYMENT INSTRUCTIONS automaticlly will be printnig the Checks after paying the Vendor, there my RTF is being used for printing through PDF.
    Issue is Both Check & Copy are by default getting printed from Tray#3. But the requirement is Check to be selected from Tray#2 and its Check-Copy should be selected from Tray#3.
    Note: output PDF is NOT considering the Print setups made in RTF.
    My question is:
    (1) How can we Print Checks from (Check Stock) Tray#2 and Checks those Copies (which are Non-Negotiable) from
    Tray#3

    Hi,
    Check printing is a different scenario in Oracle, since the concurrent program is launched as a part of the payment process.
    If the concurrent program is submitted manually then we could have manipulated it by wrapping in a different program and then calling two different concurrent programs having its output from two different trays, but in check printing scenario we don't have a work around.
    By modifying the seeded code you should be able to achieve this: [Non recommended solution]
         1. Create a wrapper program [call seeded check printing program (program 1) then a custom program (program 2), program 2 will print the non negotiable document ]
         2. In the seeded code modify the concurrent program call to your wrapper program call.
    NOTE: EVERY TIME WHEN A PATCH IS APPLIED TO AP OR IBY modules, care should be take to reflect the custom change.
    Hope it helps, Thanks!
    Please find some useful references in this regards:
         How To Set The Printer Tray When Sending Concurrent Output To Printer [ID 740539.1]
         How to Specify a Printer Paper Tray With Pasta [ID 241086.1]
         How to Use Hewlett-Packard Printers with Multiple Paper Trays When Printing Requests. [ID 147712.1]
         What are the Common PCL5 Printer Commands for HP Laser jet Printers [ID 135990.1]
         How To Setup Custom Pasta A4 Print Styles And Drivers [ID 763274.1]
    Regards,
    Yuvaraj

  • Capture data in 1D barcode upon merging XML with XDP?

    Hi,
    The scenario is:
    Forms Server 7.2.2 is being used for merging XML data with an XDP file to render a PDF (displaying a pre-filled form to user).
    On the XDP, there is a 1D Barcode and few fields are mapped to this barcode (the barcode is intended to capture form identification information).
    Upon merging, the barcode should capture the data of those fields (data is being fetched from a db and fed as XML to Forms server). This is required as the pre-filled form will be printed and then mailed to another location, where the barcode will be read using a decoder to capture form indentification.
    Will the 1D barcode captures data from those fields, after merging XML with XDP?
    The form is NOT Reader Extended. Is Reader Extending a necessity for enabling 1D barcode to capture data?
    Is this also applicable for 2D barcodes?
    Thanks a lot for your help! :)

    Thank you Hodmi,
    I had forgotten to define the Record name parameter in the PDF Output Options.
    As the XML structure changed, not upating this parameter was preventing the process from working.
    Now it is working just fine. Thank you!
    Marcos

Maybe you are looking for