Insert (xsl) tag to output xml

Hi,
I want to add a stylesheet tag to the output xml but I am not able to find where abouts to do this:
I would need configure the form to add the following line to its output xml so it can be instantly user friendly:
<?xml-stylesheet type="text/xsl" href="MyStyleSheet.xsl"?>
Can someone tell me where I can do this?
Kind regards,
Rick

Hi,
I want to add a stylesheet tag to the output xml but I am not able to find where abouts to do this:
I would need configure the form to add the following line to its output xml so it can be instantly user friendly:
<?xml-stylesheet type="text/xsl" href="MyStyleSheet.xsl"?>
Can someone tell me where I can do this?
Kind regards,
Rick

Similar Messages

  • How to turn off XML tag when outputting xml nodes?

    I'm outputting some xml data and each time ColdFusion adds the <?xml version="1.0" encoding="UTF-8"?> tag. Is there any way to turn this off?

    It's difficult to tell what are are doing and how best to remedy it without you giving us at least some idea what your code looks like.
    Adam

  • Inserting a new line after each tag of an xml

    Hi,
    I am having a requirement where i need to insert a newline after each tag<> of an xml. I am sending an xml to target system using JMS adapter and the target system has UNIX as OS.
    In unix system if we see the output xml, it will be in a single string as shown
    <?xml version="1.0" encoding="ISO-8859-1"?><messages><Field1\><Field2\>.........................</messages>
    But the desired output should be in the below format
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <messages>
    <Field1\>
    <Field2\>
    </messages>
    And there should not be any indentation for the xml. It should be in the above format it self.

    Hi,
    I believe this can be achieved through XSLT or JAVA Mapping.
    Please refer to the following link:
    XSLT Mapping:
    Inserting a new line after each tag of an xml
    JAVA Mapping:
    In Java Mapping ,all you have to do is to make a code that does a search and replace.
    Hope this helps,

  • Unclosed meta/img tag. Output method= xml / xhtml / xml

    Hello,
    Im trying to parse from a Document to an String, in the usually way, as follows:
        public static String parseDocument(Document document) {
            try {
                if (document== null) {
                    return null;
                TransformerFactory tFactory =
                        TransformerFactory.newInstance();
                Transformer transformer = tFactory.newTransformer();
                DOMSource source = new DOMSource(document);
                StringWriter sw = new StringWriter();
                StreamResult result = new StreamResult(sw);
                transformer.transform(source, result);
                String xmlString = sw.toString();
                return xmlString;
    //TODO: error handling
            } catch (TransformerConfigurationException ex) {
                return null;
            } catch (TransformerException ex) {
                return null;
            } catch (Exception ex) {
                return null;
    }Ive maked a test that creates a Document:
      public static Document createFromDoc(){
            try {
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                DocumentBuilder builder = factory.newDocumentBuilder();
                DOMImplementation impl = builder.getDOMImplementation();
                Document doc = impl.createDocument(null, null, null);
                Element root = doc.createElement("html");
                doc.appendChild(root);
                Element head = doc.createElement("head");
                root.appendChild(head);
                Element meta = doc.createElement("meta");
                meta.setAttribute("http-equiv", "Content-Type");
                meta.setAttribute("content", "text/xml");
                meta.setAttribute("charset", "UTF-8");
                head.appendChild(meta);
                Element title = doc.createElement("title");
                head.appendChild(title);
                Element body = doc.createElement("body");
                root.appendChild(body);
                Element div = doc.createElement("div");
                div.appendChild(doc.createTextNode("Created with docs."));
                body.appendChild(div);
                return doc;
            } catch (ParserConfigurationException ex) {
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                return null;
        }Well, you can see the test method "prueba1". Y:
        public static void prueba1(){
            Document doc1 = Main.createFromDoc();
            //String doc2 = Main.createFromString();
            String doc1Str = GestorXMLDoc.parseDocument(doc1);
            return;
        }Why my method public static String parseDocument(Document document) adds this extra meta tag when it transforms a Document to an String:
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    and modifies the other meta tag as follows (I mean, unclosing it):
    <meta charset="UTF-8" content="text/xhtml" http-equiv="Content-Type">
    You can see the full String result:
    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8" content="text/xhtml" http-equiv="Content-Type">
    <title></title>
    </head>
    <body>
    <div>Created with docs.</div>
    </body>
    </html>I tried parsing with a fake XSLT Template with output: XML, and it doesnt works. I tried changing the meta content data with "text/xml".
    This method makes the document not compatible with XML, because it doesnt close the meta tag. I need work with this XHTML doc as a valid XML document, not as a HTML (W3C allows set meta/link/img tags unclosed) to add new nodes.
    Thank you ppl =)

    First of all, what you are trying to do is transforming, not parsing. Parsing is converting an XML document into an internal form, and you already have the XML in the internal form (org.w3c.dom.Document).
    Anyway, XSLT has special rules for transforming a document whose root element's name is "html". It looks like those rules are being applied in your case. If you don't want them to be applied (which you don't if you are producing XHTML) then you have to tell the transformer you want XML as your output and not HTML.
    If you had an XSLT document you would use <xsl:output method="xml"/>, but you don't have one in this case. So you do it like this:
    transformer.setOutputProperty(OutputKeys.METHOD, "xml");

  • How to use an .xsl file to transform input XML to re-formatted output XML?

    Hello,
    I have a .xml file from a report that I want to use a stylesheet to transform into a different .xml format.
    I am reading that I can create a .xsl file to read my input and then transform it to a new output .xml file.
    How do I load this into the Apps?
    I tried creating a template definition and loading the .xsl in as type 'XSL-TEXT' and also, I added
    <?xml-stylesheet type="text/xsl" href="Transform.xsl"?> to my xml data source. The output looked the same as the input.
    Has anyone done this before? Any suggestions would be great!
    Thanks
    -CC

    This is how I use e4x with HTTPService:
    import mx.collections.XMLListCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable] private var claimsXLC:XMLListCollection;
    private function claimsHandler(evt:ResultEvent):void{
        claimsXLC = new XMLListCollection(evt.result..claim as XMLList);
    XML data is being returned, but I use XMLList to create the XMLListCollection.
    If this post answers your question or helps, please mark it as such.

  • Using BEA tag libraries for XML/XSL translation

    Hi, I am new to using XML within Weblogic and have been struggling with using the
    built in JSP tags to transform XML into HTML. When I try to display the jsp page,
    I get the following error message in the browser:
    Only one top level element is allowed in an XML document. Error processing resource
    'http://localhost:7001/plims/testXML.jsp'. Line 20, Position 12
    </style> script tag removed <!--- script language="javascript1.2"> -----------^
    Here is the jsp code :
    <%@ taglib uri="xmlx.tld" prefix="x"%>
    <%
    String myMedia = "html";
    String content = new String();
    %>
    <x:xslt media="<%=myMedia%>">
    <x:xml>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <tree> </tree>
    </x:xml>
    <x:stylesheet media="html" uri="qjTree.xsl"/>
    </x:xslt>
    I used the instructions on BEA's help docs to configure the app to use the tag
    libraries, but it didnt work.
    http://e-docs.bea.com/wls/docs70/xml/xml_apps.html#1082507
    I am using a very simple xml tree for now to keep things simple. Any helping in
    finding a solution would be much appreciated

    Make sure you have the tld files and all the related tag libraries
    available.
    SP
    "Rachel McCarthy" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi, I am new to using XML within Weblogic and have been struggling withusing the
    built in JSP tags to transform XML into HTML. When I try to display thejsp page,
    I get the following error message in the browser:
    Only one top level element is allowed in an XML document. Error processingresource
    'http://localhost:7001/plims/testXML.jsp'. Line 20, Position 12
    </style> script tag removed <!--- scriptlanguage="javascript1.2"> -----------^
    >
    >
    >
    >
    Here is the jsp code :
    <%@ taglib uri="xmlx.tld" prefix="x"%>
    <%
    String myMedia = "html";
    String content = new String();
    %>
    <x:xslt media="<%=myMedia%>">
    <x:xml>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <tree> </tree>
    </x:xml>
    <x:stylesheet media="html" uri="qjTree.xsl"/>
    </x:xslt>
    I used the instructions on BEA's help docs to configure the app to use thetag
    libraries, but it didnt work.
    http://e-docs.bea.com/wls/docs70/xml/xml_apps.html#1082507
    I am using a very simple xml tree for now to keep things simple. Anyhelping in
    finding a solution would be much appreciated

  • Inserting xsl-stylesheet with XmlCursor

    Has anyone successfully inserted xml-stylesheet tags with XmlBeans? I tried using an XmlCursor thusly:
    <pre>
    //Insert stylesheet ref
    XmlCursor xml = m_respDoc.newCursor();
    xml.toFirstChild();
    xml.insertChars("<?xml-stylesheet type=\"text/xsl\" href=\"/Myweb/output.xsl\"?>");
    </pre>
    However, when I do that, XmlBeans inserts "xml-fragment" around the payload of the document.
    Ideally, I should be able to just insert the stylesheet tag, but I found nothing in the XmlBeans API docs to suggest this was doable.
    TIA.

    Thanks Mike, that worked a lot better.
    However, for some reason, when I inserted the processing instruction, I stopped getting the XML header ("<?xml version="1.0" encoding="UTF-8" ?> "). I can't quite figure out when XMLBeans prints this header and when it doesn't, or if the Container or servlet does it when I set the content type. Anyways, thanks for solving my immediate problem.

  • Error in outputting xml formatted data

    Hello,
    I'm trying to output xml formatted data using apex.
    At about 70% into the formatted output I get this in the browser:
      <descript>punct= & > < /,() &</descript>
      </row>
    - <row The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Only one top level element is allowed in an XML document. Error processing resource 'http://apex.oracle.com/pls/otn/f?p=158...
    <script language="JavaScript1.1" type="text/javascript">
    -^
    m">>
    <DIVI have a 600 row table (dml below) with identical string in each row of the descript column. (I put in some special characters just to push it through the escape function for html. It is displaying the text correctly.)
    The page has one report region (plsql below).
    The page template is stripped down.
    My local results are identical to the otn hosted workspace.
    I did dump the table in xml format and displayed the dump file in browser without a problem, so I'm missing something in the code.
    Thank you.
    Albert
    On OTN webspace, go to http://apex.oracle.com/pls/otn/f?p=15866:1:1291425545573680200:::::
    plsql
    declare
    xdescript varchar2(4000);
        begin
        -- xml preface is in the page template
        -- htp.p('<?xml version="1.0"?>');
        htp.p('<rowset>');
        begin
            for item in
            (select descript,cid from receipts order by cid)
            loop
            htp.p ('<row>');
            xdescript := htf.escape_sc(item.descript);
            htp.p('<cid>' || item.cid || '</cid>');
            htp.p('<descript>'|| xdescript || '</descript>');
            htp.p('</row>');
            end loop;
        end;
        htp.p ('</rowset>');
    end;
    dml
    CREATE TABLE  "RECEIPTS"
       (     "CID" NUMBER,
         "AMOUNT" NUMBER NOT NULL ENABLE,
         "CLEARED" DATE,
         "DESCRIPT" VARCHAR2(80),
         "DATEENTERED" DATE DEFAULT SYSTIMESTAMP,
         "CHECKNBR" NUMBER,
         "CLEARSEQ" NUMBER DEFAULT 0,
          CONSTRAINT "RECEIPTS_PK" PRIMARY KEY ("CID") ENABLE
    CREATE SEQUENCE   "RECEIPTS_SEQ"  MINVALUE 1 MAXVALUE 999999999999999999999999999
    INCREMENT BY 1 START WITH 4319 CACHE 20 NOORDER  NOCYCLE
    CREATE OR REPLACE TRIGGER  "BI_RECEIPTS"
      BEFORE INSERT ON "RECEIPTS"
      FOR EACH ROW
    BEGIN
        SELECT "RECEIPTS_SEQ".NEXTVAL INTO :NEW.CID FROM DUAL;
    END;
    ALTER TRIGGER  "BI_RECEIPTS" ENABLE
    /

    May be it helps you. I use SQL/XML and APEX Application Process to generate XML succesfully
    Here is the result:
    http://htmldb.oracle.com/pls/otn/f?p=9774:101:0:APPLICATION_PROCESS=RSSNEWEVENTS
    and here is the Process Text source:
    declare
    a clob;
    begin
    owa_util.mime_header( ccontent_type => 'text/xml', bclose_header => TRUE, ccharset => 'utf-8');
    htp.prn('<?xml version="1.0" encoding="UTF-8"?>');
    select
    XMLTYPE.getStringVal(
    XMLElement("rss",
    XMLAttributes('2.0' as version),
    XMLElement("channel",
    XMLConcat(
    XMLElement("title",'iActiveLife - novinky'),
    XMLElement("link",'http://www.iactivelife.cz/'),
    XMLElement("description",'iActiveLife - Zajímavý život snadn&#283;ji'),
    XMLElement("language",'cs'),
    XMLElement("pubdate",''),
    XMLAgg(
    XMLElement("item",
    XMLConcat(
    XMLElement("title",event_name),
    XMLElement("link",'http://htmldb.oracle.com/pls/otn/f?p=' || v('APP_ID') || ':37:' || v('SESSION') || '::NO::P37_EVENT_ID:' || event_id),
    XMLElement("description",'')
    ) into a
    from (
    select event_id,event_name,issue_date, last_update_order
    from (
    select events.event_id, events.event_name, events.issue_date, rank () over (order by events.issue_date desc) as last_update_order
    from events
    where exists ( select * from opportunities where events.event_id=opportunities.event_id and opportunities.user_id is not null)
    order by events.issue_date desc)
    where last_update_order<=10
    htp.prn(a);
    end;

  • Need Double quotes instead of Single quotes in output XML version header

    In XML output generated by XDODTEXE executable, its observed that header row looks like this:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    It should look like this:
    <?xml version="1.0" encoding="UTF-8"?>
    Browsers like IE deceive. Opening the XML in Text editors show single quotes and spaces.
    Data Template and XSL template files have proper headers with double quotes.
    The output XML file is rejected by a Government Authority as parsing the header line fails.
    Are there any ways to configure this?

    I dont know if this has anything to do with my problem or not, but I thought I should add this:
    When a user is filling out the form that has the textarea,  they put whatever text they want into the textarea field.
    textarea name="text"></textarea
    Then, they click on a 'Continue' button and the system shows them a preview of what they are about to have inserted
    into the database.
    Within the code on this preview page is a hidden field, which holds the contents of their textarea data so it can be
    passed on through the process once the user verifies the preview.
    This is done using this: input type="hidden" name="text" value="<cfoutput>#text#</cfoutput>"
    Like I said, I don't know if that has anything to do with this problem, but thought it might be good to mention it
    Kudos

  • Errors in output XML

    Hi All,
    output XML of my XSL Transformation has strange errors. First of all, the xmlns attribute is not in the root tag, but in the child element. Second problem is, that all information is listet after the root tag again:
    XML output:
    <?xml version='1.0' encoding="UTF-8"?>
    <SyncMXINVENTORY xmlns="">
    TKGITEM1
    6102
    UOM
    111-222-ccc
    0.000000
    0.000000
    <MXINVENTORYSet xmlns="http://www.ibm.com/maximo">
    <INVENTORY action="AddChange">
    <ITEMNUM>TKGITEM1</ITEMNUM>
    <LOCATION>6102</LOCATION>
    <ISSUEUNIT>UOM</ISSUEUNIT>
    <BINNUM>111-222-ccc</BINNUM>
    <INVCOST>
    <AVGCOST>0.000000</AVGCOST>
    <STDCOST>0.000000</STDCOST>
    </INVCOST>
    </INVENTORY>
    </MXINVENTORYSet></SyncMXINVENTORY>
    Correct output should look like this:
    <?xml version='1.0' encoding="UTF-8"?>
    <SyncMXINVENTORY xmlns="http://www.ibm.com/maximo">
         <MXINVENTORYSet>
              <INVENTORY action="AddChange">
                   <ITEMNUM>TKGITEM1</ITEMNUM>
                   <LOCATION>6102</LOCATION>
                   <ISSUEUNIT>UOM</ISSUEUNIT>
                   <BINNUM>111-222-ccc</BINNUM>
                   <INVCOST>
                        <AVGCOST>0.000000</AVGCOST>
                        <STDCOST>0.000000</STDCOST>
                   </INVCOST>
              </INVENTORY>
         </MXINVENTORYSet>
    </SyncMXINVENTORY>
    Thanks
    Hamza

    Hi Joe!
    Yes, I do and I'm interested in the fix.
    Thanks and regards
    Hamza

  • Insert new tags after root element

    Hi,
    I'm trying to insert new tags immediately after the root element in a DOM tree. The data to be inserted is being passed to the program as a string parameter. I've used Dom4J to add the data as a new element immediatelty after the root. Problem is, I'm not able to extract the content as a String from the document object. Here's my sample code :
    String addStr = "<div class=\"test2\">Test Val1</div><div class=\"test2\">Test Val2</div>";
    SAXReader reader = new SAXReader();
    String xml = "<div class=\"discussionThread dt\"><div class=\"dt_subject\">2011 IS HERE!</div></div>";
    Document document = reader.read(new StringReader(xml));
    DefaultElement newElement = new DefaultElement("div");
    newElement.addAttribute("class", "test");
    newElement.add(new DefaultText(addStr));
    List content = document.getRootElement().content();
    if (content != null ) {
            content.add(0, newElement);
    }There are couple of issues with this approach.
    1. I'm not able to find a way to convert the Document object content to String. The only API reference is asXML() which converts the document to a xml and sends it back as String. As a result of this, it adds a <xml> tag at the top.Also,the content within the added String has been parsed and converted to &gt; , &lt;
    Here's the output
    <?xml version="1.0" encoding="UTF-8"?>
    <div class="discussionThread dt"><div class="test">&lt;div class="test2"&gt;Test Val1&lt;/div&gt;&lt;div class="test2"&gt;Test Val2&lt;/div&gt;</div><div class="dt_subject">2011 IS HERE!</div></div>Just wanted to know if there's a better way to do this. Any pointers will be highly appreciated.
    -Thanks

    from oracle documentation...
    Old and new values are available in both BEFORE and AFTER row triggers. A new column value can be assigned in a BEFORE row trigger, but not in an AFTER row trigger (because the triggering statement takes effect before an AFTER row trigger is fired). If a BEFORE row trigger changes the value of new.column, then an AFTER row trigger fired by the same statement sees the change assigned by the BEFORE row trigger.
    for more details read the documentation

  • Creating the DTD tag in an XML Documento

    I am using the Xalan XLST Transformer to generate XML documents.
    I want to include a DTD tag in each XML file and in my programs I create it using the following code:
    DocumentType dt = documento.getImplementation().createDocumentType(nombreDTD, nombreDTD, nombreArchivo);
    documento.appendChild(dt);
    ..The variable documento is the root element of the document, nombreDTD is the name identifying the root element tag, nombreArchivo is the name of the DTD file I want to reference.
    However when the XML output is generated, the DTD tag is always missing.
    Do anybody have any idea what might be causing this?
    Thanks,
    Color

    XSLT has its own method of putting the DTD information in the XML it creates. Include an xsl:output element in your XSL transformation like this:
    <xsl:output doctype-public="..." doctype-system="..." />

  • XSLT Generation from input and output XML

    Is it possible to generate an XSL mapping file in Java if we have input and output XML.
    If yes, then how to achieve this when user defined functions are used during mapping?

    Hi Prateek,
    check the following links for Business connectors and adapter:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/92/3bc0401b778031e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/4fb240ac052817e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/3f93404f673028e10000000a1550b0/frameset.htm
    Hope these help you.
    Regards,
    Anuradha.B

  • How do I add (or insert) a node into an XML document with JSTL?

    Dear all,
    I am trying to use JSTL to store some data from a form into XML. However, I have read many articles in JSTL and only found that it can only be, as far as those articles are concerned, used to "read" data from XML files, but not "write" to them.
    Am I missing something in JSTL? Or, if I want to write to an XML file (e.g., insert a new node, or modify a node's data), will I have to write my own bean and then use <c:usebean />?
    Thanks very much in advance.
    Regards,
    Robert

    JSTL is not a programming language in and of itself. It is intended to help you to write scriptlet free JSPs.
    JSP pages (by one school of thought) are intended to function as the "View" in a Model-View-Controller architecture.
    Being a view, JSP pages should be able to look at things - but not touch.
    The standard pattern is to go to a servlet first, which invokes the logic, and then forwards to a JSP for rendering.
    Editing XML by adding new nodes etc etc is thus a function of the java code layer - servlet/action whatever you want to call it.
    Giving you the power to edit XML documents via JSTL (ie on a JSP page) takes away from purity of the MVC design.
    Hence why they don't provide the tags for manipulating XML, and only provide the database tags with a disclaimer that they should only be used for prototypes/trivial apps!
    JSTL is designed to replace scriptlet code on a JSP page.
    It can replace 99% of scriptlet code. The other 1% shouldn't be on the JSP in the first place :-)
    cheers,
    evnafets

  • Inserting an element into an XML document

    I am simply looking insert a new element into an existing XML Document using JDOM. Here is my code so far:
    public class UserDocumentWriter {
         private SAXBuilder builder;
         private Document document;
         private File file = new File("/path/to/file/users.xml");
         private Element rootElement;
         public UserDocumentWriter() {
              builder = new SAXBuilder();
              try {
                   document = builder.build(file);
                   rootElement = document.getRootElement();
              } catch (IOException ioe) {
                   System.err.println("ERROR: Could not build the XML file.");
              } catch (JDOMException jde) {
                   System.err.println("ERROR: " + file.toString() + " is not well-formed.");
         public void addContact(String address, String contact) {
              List contactList = null;
              Element contactListElement;
              Element newContactElement = new Element("contact");
              newContactElement.setText(contact);
              List rootsChildren = rootElement.getChildren();
              Iterator iterator = rootsChildren.iterator();
              while (iterator.hasNext()) {
                   Element e = (Element) iterator.next();
                   if (e.getAttributeValue("address").equals(address)) {
                        contactListElement = e.getChild("contactlist");
                        contactListElement.addContent(newContactElement);
                        writeDocument(document);
         public void writeDocument(Document doc) {
              try {
                   XMLOutputter output = new XMLOutputter();
                   OutputStream out = new FileOutputStream(file);
                   output.output(doc, out);
              } catch (FileNotFoundException ntfe) {
                   System.err.println("ERROR: Output file not found.");
              } catch (IOException ioe) {
                   System.err.println("Could not output document changes.");
         }However, the problem is, the newly added element will always be appended to the end of the last line, resulting in the following:
    <contactlist>
                <contact>[email protected]</contact><contact>[email protected]</contact></contactlist>Is there anyway in which I can have the newly added element create it's own line for the purpose of tidy XML? Alternatively is there a better methodology to do the above entirely?

    Your question is not very clear.
    Do you want to know How to insert an element into an XML document?
    Answer: I can see you already know how to do it. You have added the element using addContent()
    or do you want to know How to display the XML in a tidy format?
    Answer: to view the XML in a properly formatted style you can you the Format class. A very basic way of viewing the XML would be:
       * Prints the Document to the specified file.
       * @param doc
       * @param filename
       * @param formatting
      public static void printDocToFile(Document doc, String strFileName,
          boolean formatting)
        XMLOutputter xmlOut = null;
        if (!formatting)
          xmlOut = new XMLOutputter();
        } else
          Format prettyFormat = Format.getPrettyFormat();
          prettyFormat.setOmitEncoding(false);
          prettyFormat.setOmitDeclaration(false);
          xmlOut = new XMLOutputter(prettyFormat);
        try
          if (doc != null)
            FileWriter writer = new java.io.FileWriter(strFileName, true);
            xmlOut.output(doc, writer);
            writer.flush();
            writer.close();
          } else
            System.out.println("Document is null.");
        catch (Exception ex)
          System.out.println(ex);
      }

Maybe you are looking for

  • Fatal! Book not bound error on B&N Nook upload of EPUB

    When exporting to EPUB, Indesign 2014 issues the following metadata: <metadata xmlns:dc="http://purl.org/dc/elements/1.1/"> If you've modified any of the metadata with opf attributes, this leads to the error "Fatal! book not bound" when uploading to

  • Memory problems MacBook Pro

    I have Parallels installed on my Mac and get the message "no program memory available" when opening Iphoto. Who can help me? Thank you

  • Script to change WP Document margins

    Almost all of the word processing documents I use utilize margin settings of .5 inches all the way around. The default settings are 1 inch. Can someone provide me with an applescript I can run to quickly reset the margins? It's a pain to do it manual

  • Problem of X200 with 15 feet USB cable

    Hi, I have a X200 with the ultrabase and  I used to use a 6 feet USB cable connect to a HP Laserjet P2015N printer but now when I use the 15 feet USB cable and the system says USB device not recognized. and I can use the 15 feet cable to connect to a

  • LSMW FOR MATERIAL MASTER USING BAPI_MATERIAL_SAVEDATA -Adding Custom Fields

    Hi Gurus, I'm developing LSMW for Material Master Upload using BAPI method. Object:BUS1001006 BAPI:BAPI_MATERIAL_SAVEDATA MESSAGE TYPE: MATMAS_BAPI BASIC TYPE : MATMAS_BAPI03. There is a requirement to use/map a custom field. Upon research custom fie