XML namespace in xml converted pdf

Hello everyone
I have a problem when converting pdf's in xml. Everytime when I convert a PDF(either with Acrobat or with mailing the file as XML) in XML the date fields always in middle shows the xml namespace xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" . We are using these xml's to transfer data to an accounting software but the software recognizes the xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" as an error and because of that the data couldn't be uploaded. We created the PDF using a xsd scheme made in the accounting software. Is there a way to get rid of xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" showing in the date fields.
I appreciate every possible help

Hi,
It sounds like you have the nillable="true" attribute in you XSD for the date field.
If you XSD looks like;
<xs:element name="Date1" type="xs:date" nillable="true"/>
Then you will get the following when the field Date1 is bound to is left blank.
<Date1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
This is the correct behaviour, so I am either not understanding the problem or there is a bug in the accounting software you are using.
Maybe you could try replacing the nullable="true" with a minOccurs="0".  This will mean the element will not appear in the XML at all.
Regards
Bruce

Similar Messages

  • Change XML Namespace in XML

    Hi gurus,
    i have imported an XSD file as an external definition and use this for a mapping. After my mapping i have an xml file like:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:Aviso xmlns:ns1="http://Post.AG/PartnerInterface/Schemas/PVSdeAt/Aviso_V1.0">
    - <ns2:Header xmlns:ns2="http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoHeader">
      <ns2:DebitorAuftraggeber>0022022315</ns2:DebitorAuftraggeber>
      <ns2:Kundenname>WNT Deutschland GmbH</ns2:Kundenname>
      <ns2:Erstellungsdatum>2009-06-26T16:12:25</ns2:Erstellungsdatum>
      <ns2:Versanddatum>2009-06-26T16:12:25</ns2:Versanddatum>
      </ns2:Header>
    - <ns3:Absender xmlns:ns3="http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoShipper">
      <ns3:Absendername1>WNT Deutschland GmbH</ns3:Absendername1>
      <ns3:Absendername2 />
      <ns3:Absendername3 />
      <ns3:Absendername4 />
    Now the question is how to change the namespace tags ns1 ns2 ns3? The target XML-File should view like this: (ns1 = ns0; ns2 = ns1; ns3 = ns2)
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Aviso xmlns:ns1="http://Post.AG/PartnerInterface/Schemas/PVSdeAt/Aviso_V1.0">
    - <ns1:Header xmlns:ns2="http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoHeader">
      <ns1:DebitorAuftraggeber>0022022315</ns2:DebitorAuftraggeber>
      <ns1:Kundenname>WNT Deutschland GmbH</ns2:Kundenname>
      <ns1:Erstellungsdatum>2009-06-26T16:12:25</ns2:Erstellungsdatum>
      <ns1:Versanddatum>2009-06-26T16:12:25</ns2:Versanddatum>
      </ns1:Header>
    - <ns2:Absender xmlns:ns3="http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoShipper">
      <ns2:Absendername1>WNT Deutschland GmbH</ns3:Absendername1>
      <ns2:Absendername2 />
      <ns2:Absendername3 />
      <ns2:Absendername4 />
    Thanks a lot,
    Max

    Hi,
    you can use a XSLT mapping as step within you Interface mapping to change the namespace tags. Just make sure the produced message matches the XSD structure (external definition) of the destination message interface.
    Check:
    http://www.w3schools.com/xsl/
    http://www.w3.org/TR/xslt
    Regards,
    Kai

  • HOW TO CONVERT PDF FILE IN TO XML FILE?

    HOW TO CONVERT PDF FILE IN TO XML FILE

    No Office programs can open a pdf and edit the contents so you will have to get a different app to convert teh pdf into xls format. There are plenty to be found on the web.
    Rod Gill
    The one and only Project VBA Book
    Rod Gill Project Management

  • WD(ABAP) - How to convert PDF object to XML

    I know there is a way available to converting PDF object to XML in JAVA. However how to achieve this goal in ABAP?
    In Web Dynpro ABAP, I can bind a context attribute to the pdfSource property of interactive form element. There also should be method to able to convert the binary content of this attribute to XML format, right? Does anyone know it?
    Your help would be greatly appreciated.

    Hi all,
    As an extension to Fred's question, is it possible to later use the generated XML data and present it in a PDF template?  It used to be possible using the FDF format, but Adobe seem to have discontinued that. 
    My basic requirement is to send the form data to a third party in XML format and for them to be able to view it in human-readable format, preferably using a PDF as a template. 
    Is this possible?
    Thanks,
    Jonathan

  • Hi, how to convert pdf to xml

    hi, how to convert pdf to xml

    Hi Sunil,
    You have to use Acrobat for this.
    Open the pdf, go to File > Save as other > More options > select xml and save the file.

  • Converting PDF Files to Html or Xml

    how can i tranfrom the pdf file to html or xml using Acrobat's API? The software already have the function(http://tv.adobe.com/watch/learn-acrobat-x/converting-pdf-files-to-other-file-formats/). In C# ,I can use the acrobat's dll open the pdf file  and  can invoke the  MenuItem SaveAs;
    like this:
                AcroApp.Show();
                AcroAVDoc.Open(@"D:\xpdf\a.pdf","aaaa");
                AcroApp.MenuItemExecute("SaveAs");
                AcroApp.CloseAllDocs();
                AcroApp.Exit();
    But this is not automatic.

    Try the forum for Acrobat SDK.

  • How to convert pdf to xml or pdf to doc

    My requirement is that i want to convert pdf data to xml.. Could any one please help me this issue

    Good work
    Good Luck.
    My
    Si
    tes

  • How can I convert pdf file to xml or html file.

    Hello
    My English ability is very poor. sorry.
    I want to extract text and image from pdf file.
    so, I try use itext. but.. I can't make what I want .
    I searched pdfbox and jpedal.
    but I can't get my solution.
    Just I want to convert pdf to xml or html(html prefer).
    I think pdfviewer is hint.
    but I can't get full source(in jpedal)
    Plz help.. me.....
    Does anybody solve this problem?

    Stay in your old thread
    [http://forums.sun.com/thread.jspa?threadID=5198647]
    Don't multi/crosspost or your account will be locked.

  • How to remove element namespaces in XML file using DOM or SAX?

    Hi Guys,
    I developed a JAVA mapping in XI to add name spaces for XML file, after mapping,name spaces xmlns="http://www.mro.com/mx/integration" and xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" were added correctly, but for some nodes, such as <Header> and <Content>, a name space xmlns="" was added automatically.Please check below files to compare.
    It looks like be added automatically by XI. I didn't process anything for these nodes in JAVA program.
    Now the issue is, how can I remove these redundant namespaces? Such as xmlns="".
    Can I remove them using DOM or SAX in JAVA Mapping?
    Thanks in advance.
    ====>Original XML file
    <?xml version="1.0" encoding="UTF-8"?>
    <LLYLPPInterface language="EN">
       <Header>
          <SenderID>GBIP</SenderID>
          <CreationDateTime>2008-02-13T22:49:34-05:00</CreationDateTime>
          <RecipientID/>
          <MessageID/>
       </Header>
       <Content>
          <LLY-LPP>
             <INVOICE>
                <INVOICELINE>
                   <PONUM>4780000008</PONUM>
                   <POLINENUM>1</POLINENUM>
                   <INVOICEQTY>1</INVOICEQTY>
                   <LOADEDCOST>68</LOADEDCOST>
                </INVOICELINE>
             </INVOICE>
          </LLY-LPP>
       </Content>
    </LLYLPPInterface>
    ===>Target XML file after JAVA mapping
    <?xml version="1.0" encoding="utf-8"?>
    <LLYLPPInterface language="EN" xmlns="http://www.mro.com/mx/integration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <Header xmlns="">
              <SenderID>GBIP</SenderID>
              <CreationDateTime>2008-02-13T23:11:55-05:00</CreationDateTime>
              <RecipientID/>
              <MessageID/>
         </Header>
         <Content xmlns="">
              <LLY-LPP>
                   <INVOICE>
                        <INVOICELINE>
                             <PONUM>4780000008</PONUM>
                             <POLINENUM>0</POLINENUM>
                             <INVOICEQTY>1</INVOICEQTY>
                             <LOADEDCOST>68</LOADEDCOST>
                        </INVOICELINE>
                   </INVOICE>
              </LLY-LPP>
         </Content>
    </LLYLPPInterface>
    Edited by: Eddie Zhang on Feb 14, 2008 9:22 AM
    Edited by: Eddie Zhang on Feb 14, 2008 9:24 AM

    Hi Milan,
    Thanks for your replay.
    Actually when I used module XMLAnonymizerBean to convert namespaces, the header of XML, such as <?xml version="1.0" encoding="UTF-8"?> was converted to format <?xml version='1.0' encoding='UTF-8'?>, quote was converted to single quote. Although I set parameter anonymizer.quote = ", it still didn't work, single quote appeared instead of quote.
    I'm not sure why this happened. Can anyone help to clarify this?
    Thanks
    Edited by: Eddie Zhang on Feb 15, 2008 2:11 AM

  • Convert XML string into XML

    Hi All,
    Can you please let me know for any sample code in xslt/java mapping for converting XML string into XML. We use SAP Pi 7.0
    My XML string starts like this
    <?xml version="1.0" encoding="UTF-8" ?> 
    - <ns0:MT_ReceiverFileStructure <namespace>"><Output><?xml version="1.0" encoding="ISO-8859-9"?><?xml-stylesheet type="text/xsl" href="<xsl>"?><Tarih_Date Tarih="11.09.2014" Date="09/11/2014>
       Thanks,
       Pavithra

    Thanks Praveen. It worked.
    However, the xml i have is an extract from a exchange rate URL and it has the reference to a xsl in it as below
    <?xml version="1.0" encoding="ISO-8859-9"?><?xml-stylesheet type="text/xsl" href="<ABC.xsl>"?>.
    So there is an error in sxmb_moni. Is it possible to remove this.

  • XML Namespace handling?

    Hi,
    I am having a typical problem here. Is there any way I can set a namespace to an XML string before I convert it into a Document. The problem is I have this XML string and I am trying to parse it, but I get a java.io.Nullpointer Exception because one of the tags in the XML string has a name space and I need to assign a name space to it here.
    here's an example...
    Following is my XML string say....
    <metadata>
         <schema>Schema 1</schema>
         <schemaversion>DX:MD1.0 S:1.0</schemaversion>
         <dlmd:record>Record</dlmd:record>
    </metadata>
    I need to parse this string, but I can not do it without setting a namespace for dlmd:record! Or is there a way I can do it without the namespace...I tried using the setNamespaceaware() option but it does not seem to work.
    It's sort of strange as to why I need to assign a name space to it here...but thats the problem I have to deal with...
    any help would be very much appreciated.
    Thanks in advance
    Prashanth

    Prashanth,
    this is what I'm doing. First, the parser test code:
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    public class JAXPDOMTest {
        public void domParse(String url) {
            DocumentBuilder parser;
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            factory.setValidating(false);
            factory.setNamespaceAware(false);
            try {
                parser = factory.newDocumentBuilder();
                Document doc = parser.parse(url);
            } catch (Exception e) {
                e.printStackTrace();
        static public void main(String[] args)
           JAXPDOMTest x=new JAXPDOMTest();
           x.domParse("test.xml");
    }and here's test.xml:
    <?xml version="1.0"?>
    <metadata>
       <schema>Schema 1</schema>
       <schemaversion>DX:MD1.0 S:1.0</schemaversion>
       <dlmd:record>Record</dlmd:record>
    </metadata>jaxp-1.1 is my directory containing the official 1.1 release and my complete classpath look like this:
    CLASSPATH=d:\xml_tools\jaxp-1.1\crimson.jar;d:\xml_tools\jaxp-1.1\jaxp.jar;.
    I run the above (java JAXPDOMTest), I get:
    java.lang.NullPointerException
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:523)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
    at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:134)
    at JAXPDOMTest.domParse(JAXPDOMTest.java:15)
    at JAXPDOMTest.main(JAXPDOMTest.java:24)
    I set the class path to:
    CLASSPATH=d:\xml_tools\crimson-1.1.1\crimson.jar;d:\xml_tools\crimson-1.1.1\jaxp.jar;.
    and, voila, no exception.
    Hope that helps,
    Leo.

  • How to convert xml to non xml in business service

    I have created a business service which routes the data to the respective given email addresses.But the body of the body is in the form of xml tags but need the body to be in normal document type format.
    I have tried converting xml to mlf format(with delimiter '\n') before routing but still its the same xml tag which i get it from the body ,the only change being this time its a very simple xml file with just elements in it and no namespace declaration ,namespace definition etc.Please help me solve this problem?

    I am not sure exactly in which format you want to translate the XML but you may use either MFL transformation/Java callout in OSB to convert XML into non-XML or vice-versa -
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15866/part_fb.htm#BABEAIAF
    Regards,
    Anuj

  • Javax.servlet.ServletException: The name "" is not legal for JDOM/XML namespaces

    Dear all,
    First of all sorry, if this is not the right place for my question.
    I am facing some problem with the XFire Webservices. When i am trying to access the WSDL through the url. server is throwing the following exception :
    javax.servlet.ServletException: The name "" is not legal for JDOM/XML namespaces: Namespace URIs must be non-null and non-empty Strings.
         org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:143)
         org.codehaus.xfire.transport.http.XFireServlet.doGet(XFireServlet.java:107)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    org.jdom.IllegalNameException: The name "" is not legal for JDOM/XML namespaces: Namespace URIs must be non-null and non-empty Strings.
         org.jdom.Namespace.getNamespace(Namespace.java:164)
         org.codehaus.xfire.util.NamespaceHelper.getUniquePrefix(NamespaceHelper.java:58)
         org.codehaus.xfire.aegis.type.basic.BeanType.writeSchema(BeanType.java:560)
         org.codehaus.xfire.wsdl.AbstractWSDL.addDependency(AbstractWSDL.java:224)
         org.codehaus.xfire.wsdl.AbstractWSDL.addDependency(AbstractWSDL.java:233)
         org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createDocLitPart(WSDLBuilder.java:403)
         org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createPart(WSDLBuilder.java:355)
         org.codehaus.xfire.wsdl11.builder.WSDLBuilder.writeParameters(WSDLBuilder.java:509)
    cont.......
    I am not able to figure out the root cause for this. The service.xml file looks like below:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- START Service.xml -->
    <beans xmlns="http://xfire.codehaus.org/config/1.0">
    <!-- Construct the castor service factory by Spring -->
    <bean id="castorTypeRegistry" class="org.codehaus.xfire.castor.CastorTypeMappingRegistry"/>
    <bean id="bindingProvider" class="org.codehaus.xfire.aegis.AegisBindingProvider">
    <constructor-arg ref="castorTypeRegistry"/>
    </bean>
    <bean id="castorServiceFactory" class="org.codehaus.xfire.service.binding.ObjectServiceFactory">
    <constructor-arg index="0" ref="xfire.transportManager"/>
    <constructor-arg index="1" ref="bindingProvider"/>
    </bean>
    <service>
    <name>ReleaseManager</name>
    <namespace>ReleaseManager</namespace>
    <serviceClass>com.pinkroccade.jfoundation.calculation.releases.ReleaseManager</serviceClass>
    <implementationClass>com.pinkroccade.jfoundation.calculation.releases.ReleaseManagerImpl</implementationClass>
    <schemas>
    <schema>META-INF/schema/release-impact-worksheet-3.2.0.xsd</schema>
    </schemas>
    <style>document</style>
    <serviceFactory>#castorServiceFactory</serviceFactory>
    </service>
    </beans>
    <!-- END Service.xml-->
    The issue which i am facing is it due to the problem with the service.xml (Which i dont think so..), Or is it any thing to do with the XSD file which i am using.
    Can any body give me some guide lines for this ????
    Thanks in advance.
    Thanks and Regards,
    Manjunath.

    Any one any thoughts..
    I need to find out the solution for this as soon as possible; Not able to proceed further...
    Thanks and Regards,
    Manjunath.

  • I am creating a form on LiveCycle Designer and I am trying to create a form that has a e-mail submit button.  When the butten is utilized it attaches the form to the e-mail in an plain text .xml format rather than the pdf format.  Is there a quick fix?

    I am creating a form on LiveCycle Designer and I am trying to create a form that has a e-mail submit button.  When the button is utilized it attaches the form to the e-mail in an plain text .xml format rather than the pdf format.  Is there a quick fix?

    Hi,
    You have the choice between xml or pdf, in later versions of designer you can choose with a dropdown on the email button Object palette, the "Submit As";
    In earlier version you had to edit the XML Source and change the format from xml to pdf (or vice-versa);
    Regards
    Bruce

  • Need to generate a Index xml file for corresponding Report PDF file.

    Need to generate a Index xml file for corresponding Report PDF file.
    Currently in fusion we are generating a pdf file using given Rtf template and dataModal source through Ess BIPJobType.xml .
    This is generating pdf successfully.
    As per requirement from Oracle GSI team, they need index xml file of corresponding generated pdf file for their own business scenario.
    Please see the following attached sample file .
    PDf file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/BPA_Print_Trx-_output.pdf
    Index file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/o39861053.out.idx.txt
    In R12 ,
         We are doing this through java API call to FOProcessor and build the pdf. Here is sample snapshot :
         xmlStream = PrintInvoiceThread.generateXML(pCpContext, logFile, outFile, dbCon, list, aLog, debugFlag);
         OADocumentProcessor docProc = new OADocumentProcessor(xmlStream, tmpDir);
         docProc.process();
         PrintInvoiceThread :
              out.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
                   out.print("<xapi:requestset ");
                   out.println("<xapi:filesystem output=\"" + outFile.getFileName() + "\"/>");
                   out.println("<xapi:indexfile output=\"" + outFile.getFileName() + ".idx\">");
                   out.println(" <totalpages>${VAR_TOTAL_PAGES}</totalpages>");
                   out.println(" <totaldocuments>${VAR_TOTAL_DOCS}</totaldocuments>");
                   out.println("</xapi:indexfile>");
                   out.println("<xapi:document output-type=\"pdf\">");
    out.println("<xapi:customcontents>");
    XMLDocument idxDoc = new XMLDocument();
    idxDoc.setEncoding("UTF-8");
    ((XMLElement)(generator.buildIndexItems(idxDoc, am, row)).getDocumentElement()).print(out);
    idxDoc = null;
    out.println("</xapi:customcontents>");
         In r12 we have a privilege to use page number variable through oracle.apps.xdo.batch.ControlFile
              public static final String VAR_BEGIN_PAGE = "${VAR_BEGIN_PAGE}";
              public static final String VAR_END_PAGE = "${VAR_END_PAGE}";
              public static final String VAR_TOTAL_DOCS = "${VAR_TOTAL_DOCS}";
              public static final String VAR_TOTAL_PAGES = "${VAR_TOTAL_PAGES}";
    Is there any similar java library which do the same thing in fusion .
    Note: I checked in the BIP doc http://docs.oracle.com/cd/E21764_01/bi.1111/e18863/javaapis.htm#CIHHDDEH
              Section 7.11.3.2 Invoking Processors with InputStream .
    But this is not helping much to me. Is there any other document/view-let which covers these thing .
    Appreciate any help/suggestions.
    -anjani prasad
    I have attached these java file in kixs : https://kix.oraclecorp.com/KIX/display.php?labelId=3755&articleId=354962
    PrintInvoiceThread
    InvoiceXmlBuilder
    Control.java

    You can find the steps here.
    http://weblogic-wonders.com/weblogic/2009/11/29/plan-xml-usage-for-message-driven-bean/
    http://weblogic-wonders.com/weblogic/2009/12/16/invalidation-interval-secs/

Maybe you are looking for

  • MacBook loses wireless connection when iPod touch connects to network

    hi ever since upgrading to 10.5.5. on my MacBook i've had the "intermittent network connection" problems that have been described and discussed (without any real solution from what i can see) in another thread. PROBLEM: every couple of minutes my Mac

  • Open Dialog box on button click using Visual Webpart

    Hi, I am trying to create New Item,Edit Item & Delete Item button in Visual web part.On clicking on the button it should open the corresponding custom form on dialogue box.I don't want to create any button in the ribbon.I just want to create UI page

  • Interactive booklets no longer play in iTunes

    All my interactive booklets from albums I bought at the iTunes Store no longer play! I am running Leopard with all the latest updates to my software. Thanks for any suggestions.

  • Debit Note

    Hi Experts, i have one doubt long period, why in SAP debit note are called as A/P Credit memo?? regards anand

  • Adobe X Pro document signable by multiple people

    Adobe X Pro document signable by multiple people I have adobe X pro and I want to let anyoen sign the document that I send it too