JAXB Unnecessary encoding of reserved XML chars?

Hello all.
Hopefully what I'm experiencing is a simple problem to fix. I've got an XML document that has the ampersand char encoded as such:
When I parse this document into a JAXB object, it is getting encoded to:
&
I can't figure out how or why or how to make this not happen. Has anyone run into this and figured out why?
Thanks for you time and help.
chris

If you have a string that happens to contain XML data, and you want to treat that data as text contents of a containing XML file instead of treating it as markup, then there are two ways to do that. One is to enclose it in a CDATA section:
<![CDATA[...your data goes here...]]>
The other is to escape the XML markup characters: & becomes &amp;, > becomes &gt;, < becomes &lt;, ' becomes &apos;, and " becomes &quot;.
If that wasn't what you meant, try asking a different version of the question.

Similar Messages

  • XML parser not able to find encoding format of xml file with jre1.4.2

    Hi
    I am using jre1.4.2_05 and Weblogic 8.1 version and i have a problem with finding encoding format of xml file.
    I need to parse a xml file and need to find which encoding format that xml is based on that i need to change logic.
    Need to know after parsing each xml file what encoding format the xml is? Here the problem is we are using jre1.4.2_05 by default DOM \ SAX parser is not supported and i looked at few third party parser which are also don't have facility.
    But in latest jre 1.5 or jdk1.5 has this feature. Its difficult to the project to upgrade to jre1.5 or more.
    Please let me know if you have any idea about the issue.

    I had a quick look around and I think you might be able to find them in the support portal...
    SAP Support Portal > Software Downloads > SAP Software Download Centre > Support Packages and Patches > Archive for Support Packages and Patches > Archive - Browse our Download Catalog > SAP Connectors.
    Let me know if you find them.
    Regards,
    Stephen.

  • How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?

    How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
    Hi,
    I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
    but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
    ( f.ex. cannot verifying it correct in xmlspy )
    my dbms is
    NLS_CHARACTERSET          = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     = AL16UTF16
    NLS_RDBMS_VERSION     = 10.2.0.1.0
    I do generate it in this matter :
    declare
    xmldoc CLOB;
    ctx number ;
    utl_file.file_type;
    begin
    -- generate fom xml-view :
    ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
    DBMS_XMLGEN.setRowSetTag(ctx, null);
    DBMS_XMLGEN.setRowTag(ctx, null );
    DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
    -- create xml-file:
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    -- put data to host-file:
    vblob_len := DBMS_LOB.getlength(xmldoc);
    DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
    bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
    UTL_FILE.put_line(bHandle, vbuffer, FALSE);
    UTL_FILE.fclose(bHandle);
    end ;
    maybe while work UTL_FILE there is a change the encoding ?
    How can this solved ?
    Thank you
    Norbert
    Edited by: astramare on Feb 11, 2009 12:39 PM with database charsets

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • How to set the encoding of an XML-document

    I need to change the encoding of an xml-document.
    When I convert the document into a string, UTF-8
    is used, I want to use ISO-8859-1.

    use this in your identity transform:
    transformer.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1");

  • How to get the encoding of a XML file ...

    Hi,
    How do you get the encoding of a XML file?
    For example,
    <?xml version="1.0" encoding="SJIS"?>
    I am trying to retrieve the above encoding="SJIS", but I can't seem to locate the API for doing so.
    Thanks in advance for any help,
    Eric

    Hi ddossot,
    Thanks for your suggestion.
    However, the xerces.jar file that comes with my old tomcat server is an old version and thus, the getEncoding method is not even present in the DocumentImpl class. The option to update to a newer version of tomcat and xerces is not available. What a pity... :-(
    Well, I just have to try to find a way around. Worst case scenario, parse the first line in the xml file myself.
    Regards,
    Eric

  • Non xml char

    Hi, all,
    I need to create a DOM tree and take the value from user input,
    I have no idea how the user can enter the strange chars like BEL.
    Do I need validate every char make sure is in the xml char range when I create
    the node? or the biuld in parser will take care of it?

    Hi,
    use
    out.write(OutputDoc.asXML().getBytes("UTF-8"));
    or
    out.write(OutputDoc.asXML().getBytes("ISO-8559-1"));
    Regards, mario

  • XMLStreamException: Unable to write XML string which starts with the illegal XML char 0x0000

    Hi,
    I am trying to run a WebLogic 8.1 Workshop webservice using Tuxedo Controls. I
    am running in to an XML error:
    <faultcode>JWSError</faultcode>
    <faultstring>com.bea.xml.marshal.XmlEncodingException: Error writing XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which starts with
    the illegal XML char 0x0000</faultstring>
    <detail>
    If i look into the application server log file, It says:
    <FML32Deserializer::deserializeInteger>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer> <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <Exception deserializing field BUFFERSIZE, exception: weblogic.jws.control.ControlException:
    Error getting field BUFFERSIZE as a Integer, exception: 4 (FNOTPRES)>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer> <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <FML32Deserializer::deserializeField - Name=ROWID, type=class java.lang.String>
    But these fields are in the field table class file generated using java weblogic.wtc.jatmi.mkfldclass32

    I am pasting the response i get while i try to run this web service using WebLogic
    Workshop.
    Anyones help would be much appreciated.
    Thanks,
    Deepak
    Service Response
    Submitted at Friday, December 19, 2003 1:25:00 PM CST
    <error>
    <faultcode>JWSError</faultcode>
    <faultstring>com.bea.xml.marshal.XmlEncodingException: Error writing XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which starts with
    the illegal XML char 0x0000</faultstring>
    <detail>
    com.bea.wlw.runtime.core.request.ResponseValidationException: com.bea.xml.marshal.XmlEncodingException:
    Error writing XML stream: com.bea.xml.pure.XMLStreamException: Unable to write
    XML string which starts with the illegal XML char 0x0000
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.setReturnValue(MimeXmlResponse.java:35)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:242)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:159)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:100)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:134)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.dispatch(Dispatcher.java:46)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.exploreExec(HttpServerHelper.java:253)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:570)
    at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Caused by: com.bea.xml.marshal.XmlEncodingException: Error writing XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which starts with
    the illegal XML char 0x0000
    at com.bea.xml.marshal.MarshalContext.error(MarshalContext.java:140)
    at com.bea.xml.marshal.MarshalContext.writeCharacterData(MarshalContext.java:178)
    at com.bea.xml.marshal.AtomicValueMPlan.marshal(AtomicValueMPlan.java:79)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:358)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
    at com.bea.xml.marshal.MethodMPlan.marshal(MethodMPlan.java:260)
    at com.bea.wlw.runtime.core.dispatcher.DispMessage.marshalXml(DispMessage.java:386)
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.writePart(MimeXmlResponse.java:105)
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.writeOutputPart(MimeXmlResponse.java:97)
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.setReturnValue(MimeXmlResponse.java:31)
    ... 22 more
    </detail>
    </error>
    "Deepak" <[email protected]> wrote:
    >
    >
    >
    Hi,
    I am trying to run a WebLogic 8.1 Workshop webservice using Tuxedo Controls.
    I
    am running in to an XML error:
    <faultcode>JWSError</faultcode>
    <faultstring>com.bea.xml.marshal.XmlEncodingException: Error writing
    XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which
    starts with
    the illegal XML char 0x0000</faultstring>
    <detail>
    If i look into the application server log file, It says:
    <FML32Deserializer::deserializeInteger>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer>
    <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <Exception deserializing field BUFFERSIZE, exception: weblogic.jws.control.ControlException:
    Error getting field BUFFERSIZE as a Integer, exception: 4 (FNOTPRES)>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer>
    <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <FML32Deserializer::deserializeField - Name=ROWID, type=class
    java.lang.String>
    But these fields are in the field table class file generated using java
    weblogic.wtc.jatmi.mkfldclass32

  • Corrupt XML file encoding utf-8 special chars (IDOC - File scenario)

    Dear experts,
    I have a problem with the XML output files of XI and could not find the answer in one of the current posts.
    I'm sending Master Data from R/3 with IDOCs through XI to a FTP directory. These files include characters as Á, Ê, etc.
    The XI server includes the utf-8 encoding in the output XML message. However, when opening these files I receive errors (tried it in multiple programs). It tells me that Á is not utf-8.
    It will not accepts Á. I was under the impression that utf-8 included extended Latin and thus would accept these characters. Thus implying that the message was created wrong. Also importing these files into MDM import manager gives errors.
    All rfc destinations are on Unicode.
    By the way, we experience the same problem when syndicating files from the MDM server.
    Any suggestions?
    Cheers.
    * Will reward points for helpful answers.

    Hi,
    Check out this guide..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
    make use of the messagetransformbean - http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
    Also for further ref: go thru this thread - Change encoding from utf-8 to iso-8859-1 in JMS receiver!
    regards
    sasi.........
    <b>Reward if useful</b>

  • Encoding problem with xml

    Hello,
    I'm trying to save on disk an xml with utf-8 codification and compressed with "gzip" algorithm. For some reasons, I have to use a BufferedWriter, then I must convert the byte[] to String.
    Afterwards, I read this document and I try to decompress it and save on a String variable.
    If I do all this process using utf-8 encoding, the decompressing process throws an exception: Not in GZIP format.
    But if I use iso-8859-1, then everything works OK.
    I don't understand why using iso works, and why using utf-8 does not work (when the webservice specification says that the xml documents are sent in utf-8).
    The code is the following (the static "myCharset" is the key: when I set iso works, and setting utf-8 does not work):
    public class testCompress
    public static String xmlOutput     = "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><consultaCiudadesPorPaisResponse xmlns=\"http://tempuri.org/\"><consultaCiudadesPorPaisResult><xml funcion=\"ConsultaCiudadesPorPais\" xmlns=\"\"><ROK>TRUE</ROK></xml></consultaCiudadesPorPaisResult></consultaCiudadesPorPaisResponse></soap:Body></soap:Envelope>";
    public static String myCharset     = "iso-8859-1";
    // Writes the compressed document to disk.
    public static void writeDocument() throws Exception
      BufferedWriter writer = null;
      try 
       // Compress the "xmlOutput" converting this string to bytes using "utf-8" as specification says (in "compress" method)
       // Afterwards, I convert this byte[] to String using "myCharset".
       String compressedFile = new String(CompressionService.compress(xmlOutput, "utf-8", "gzip", 8), myCharset);
       // And write to disk using "myCharset" as the encoding used by "OutputStreamWriter".
       writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("c:/cache"), myCharset), 8192);
       writer.write(compressedFile);
      catch (Exception e) { throw e; }
      finally
        if (writer != null)
         try { writer.close(); writer = null; } catch (IOException ioe) {}
    // Reads the compressed document from disk.
    public static byte[] readDocument() throws Exception
      BufferedReader reader = null;
      StringBuilder sb           = new StringBuilder();
      char[] buffer           = new char[8192];
      try
       // Open the file using "myCharset" for reading chars.
       reader = new BufferedReader(new InputStreamReader(new FileInputStream("c:/cache"), myCharset));
       int numchars = 0;
       while ((numchars = reader.read(buffer, 0, 8192)) >= 0) sb.append(buffer, 0, numchars);
       // And return the result as a byte[] encoded with "myCharset".
       return (sb.toString().getBytes(myCharset));
      catch (Exception e) { throw e; }
      finally
       if (reader != null)
        try { reader.close(); } catch (IOException ioe) {}
    public static void main(String[] args) throws Exception
      writeDocument();
      byte[] file = readDocument();
      // DECOMPRESS FAILS IF myCharset = "utf-8", and works if myCharset = "iso-8859-1"
      System.out.println(com.vpfw.proxy.services.compress.CompressionService.decompress(file, "utf-8", "gzip", 8));
    }

    Okay, here's what's happening. You created a byte[] by encoding some text as UTF-8, then you ran that byte[] through a gzip deflater. The result is binary data that can only be understood by a gzip inflater; to any other software it just looks like garbage. Now you're taking a randomly-chosen encoding and pretending the binary data is really text that was encoded with that encoding.
    Most encodings have limits on what kinds of input they can accept. For example, US-ASCII only uses the low-order seven bits of each byte; any byte with a value larger than 127 is invalid. When the encoder encounters such a byte, it inserts the standard replacement character, U+FFFD, in that spot. When you try to decode the string again as US-ASCII, the replacement character is what you see in that position; the original byte value is lost. In UTF-8, the bytes have to conform to [certain patterns|http://en.wikipedia.org/wiki/UTF-8#Description]; for example, any byte with a value greater than 127 has to be part of a valid two-, three- or four-byte sequence.
    ISO-8859-1 is different. It's a single-byte encoding like ASCII, but it uses all eight bits of every byte. Furthermore, every possible byte value (0..255) maps to a character, so you can throw any random byte at it and tell it the byte represents a character, and it will believe you. Some of those values may map to control characters that would look like garbage if you displayed them, but they're valid. That means you can re-encode the string as ISO-8859-1 and get back the exact byte sequence you started with.
    So that's why your code "works" when you use ISO-8859-1, but I strongly recommend that you find another way; making binary data masquerade as text is dangerously fragile. Why do you have to use a Writer anyway? Is it for transmission over a medium that only accepts text data? If so, you should use a Base64 encoder or similar tool that's designed for that purpose.

  • [JAXB 2.x] Defining the XML Schema Type for XmlElementDecl

    How can an XML Schema Type (XmlSchemaType) be defined for an XmlElementDecl/Ref?
    The classes are as follows:
        @XmlRegistry
        class ObjectFactory {
            // XmlSchemaType is desired, but cannot be used with XmlElementDecl/Ref: @XmlSchemaType(name = "unsignedShort")
            @XmlElementDecl(namespace = "urn:com:test:namespace", name = "char", scope = com.test.Arguments.class)
            @XmlJavaTypeAdapter(com.test.CharacterAdapter.class )
            public JAXBElement<Character> createArgumentsChar(Character value) {
                return new JAXBElement<Character>(_ArgumentsChar_QNAME, Character.class, com.test.Arguments.class, value);
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "", propOrder = { "arguments" })
        class Arguments {
            @XmlElementRefs( {
                    @XmlElementRef(name = "char", namespace = "urn:com:test:namespace", type = JAXBElement.class),
            protected List<JAXBElement<?>> arguments;
        }The desired schema is as follows:
        <xs:element name="arguments" minOccurs="0">
            <xs:complexType>
                <xs:sequence>
                    <xs:choice minOccurs="0" maxOccurs="unbounded">
                        <xs:element name="char" type="xs:unsignedShort" />
                    </xs:choice>
                </xs:sequence>
            </xs:complexType>
        </xs:element>However, when generating the schema from these classes (schemagen), the resulting "char" element type is "xs:string," not "xs:unsignedShort" as desired. What annotation can be used to indicate that the type should be xs:unsignedShort? If the addition of an annotation is not possible, are there any other ways to accomplish this?
    Message was edited by: Shelley (Indicated "JAXB 2")

    There are mappings between XSD type and Java type table on the Sun website.

  • Invalid UTF8 encoding when including XML page in XSQL

    Hello
    I'm creating an XSQL page that includes an XML page generated using PSP
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="sgvrt">
    <xsql:include-xml href="http://epdesccs.pdvsa.com:7777/pls/sgvrt/xml_indicadores_epm"/>
    </page>
    I'm not using <xsql:include-owa> because I get another error "Node not in document". When I run the XSQL I get:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <page>
    <xsql-error action="xsql:include-xml">
    <message>Invalid UTF8 encoding.</message>
    </xsql-error>
    </page>
    The page that is being generated by the PSP is:
    <?xml version="1.0" standalone="no" encoding="ISO-8859-1"?>
    <indicadores_gestion_epm xmlns:ind="urn:intesa-ind">
    <fecha>Junio 2001</fecha>
    <ind:indicador><ind:descripcion>Costo de Generacisn de Potencial por Perforacisn (Conv.)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>48,21</ind:real_valor><ind:unidad_medida>M$/Bl</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacisn de Potencial por Perforacisn (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>M$/Bl</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Exploracion Aqo Actual (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>22,48</ind:real_valor><ind:unidad_medida>$/BPE</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Exploracion Promedio (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>19,98</ind:real_valor><ind:unidad_medida>$/BD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Incorporacion de Reservas Probadas y Probables de Crudo (GD)</ind:descripcion><ind:plan_valor>647</ind:plan_valor><ind:real_valor>2</ind:real_valor><ind:unidad_medida>MMBLs</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Incorporacion de Reservas Probadas y Probables Gas (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>4</ind:real_valor><ind:unidad_medida>MMMPC</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Contribuciones a las Reservas Probadas de Gas (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>5</ind:real_valor><ind:unidad_medida>MMMPC</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Produccion Disponible Promedio de Crudo (GD)</ind:descripcion><ind:plan_valor>362,8</ind:plan_valor><ind:real_valor>1401,66</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Capacidad de Produccisn de Crudo</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Contribuciones a las Reservas Probadas de Crudo (GD)</ind:descripcion><ind:plan_valor>1750</ind:plan_valor><ind:real_valor>1750</ind:real_valor><ind:unidad_medida>MMBLs</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo Unitario de Operacisn (Conv.)</ind:descripcion><ind:plan_valor>0</ind:plan_valor><ind:real_valor>,01</ind:real_valor><ind:unidad_medida>$/BL</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo Unitario de Operacisn (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>102,53</ind:real_valor><ind:unidad_medida>$/BL</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Disponibilidad de Gas (Acumulado)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MMPCD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Produccion de Crudo Entregada a RSC Promedio</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacion de Potenc. RA/RC (Conv.)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>3,15</ind:real_valor><ind:unidad_medida>M$/BD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacion de Potenc. RA/RC (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>M$/BD</ind:unidad_medida></ind:indicador>
    </indicadores_gestion_epm>
    So the two pages have encoding="ISO-8859-1" so why is the XML Parser sending an <message>Invalid UTF8 encoding.</message>.

    Hello
    I'm creating an XSQL page that includes an XML page generated using PSP
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="sgvrt">
    <xsql:include-xml href="http://epdesccs.pdvsa.com:7777/pls/sgvrt/xml_indicadores_epm"/>
    </page>
    I'm not using <xsql:include-owa> because I get another error "Node not in document". When I run the XSQL I get:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <page>
    <xsql-error action="xsql:include-xml">
    <message>Invalid UTF8 encoding.</message>
    </xsql-error>
    </page>
    The page that is being generated by the PSP is:
    <?xml version="1.0" standalone="no" encoding="ISO-8859-1"?>
    <indicadores_gestion_epm xmlns:ind="urn:intesa-ind">
    <fecha>Junio 2001</fecha>
    <ind:indicador><ind:descripcion>Costo de Generacisn de Potencial por Perforacisn (Conv.)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>48,21</ind:real_valor><ind:unidad_medida>M$/Bl</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacisn de Potencial por Perforacisn (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>M$/Bl</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Exploracion Aqo Actual (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>22,48</ind:real_valor><ind:unidad_medida>$/BPE</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Exploracion Promedio (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>19,98</ind:real_valor><ind:unidad_medida>$/BD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Incorporacion de Reservas Probadas y Probables de Crudo (GD)</ind:descripcion><ind:plan_valor>647</ind:plan_valor><ind:real_valor>2</ind:real_valor><ind:unidad_medida>MMBLs</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Incorporacion de Reservas Probadas y Probables Gas (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>4</ind:real_valor><ind:unidad_medida>MMMPC</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Contribuciones a las Reservas Probadas de Gas (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>5</ind:real_valor><ind:unidad_medida>MMMPC</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Produccion Disponible Promedio de Crudo (GD)</ind:descripcion><ind:plan_valor>362,8</ind:plan_valor><ind:real_valor>1401,66</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Capacidad de Produccisn de Crudo</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Contribuciones a las Reservas Probadas de Crudo (GD)</ind:descripcion><ind:plan_valor>1750</ind:plan_valor><ind:real_valor>1750</ind:real_valor><ind:unidad_medida>MMBLs</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo Unitario de Operacisn (Conv.)</ind:descripcion><ind:plan_valor>0</ind:plan_valor><ind:real_valor>,01</ind:real_valor><ind:unidad_medida>$/BL</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo Unitario de Operacisn (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>102,53</ind:real_valor><ind:unidad_medida>$/BL</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Disponibilidad de Gas (Acumulado)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MMPCD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Produccion de Crudo Entregada a RSC Promedio</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacion de Potenc. RA/RC (Conv.)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>3,15</ind:real_valor><ind:unidad_medida>M$/BD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacion de Potenc. RA/RC (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>M$/BD</ind:unidad_medida></ind:indicador>
    </indicadores_gestion_epm>
    So the two pages have encoding="ISO-8859-1" so why is the XML Parser sending an <message>Invalid UTF8 encoding.</message>.

  • JAXB and inheritance. Converting xml to java object

    I have a schema "FreeStyle.xsd" i used JAXB to generate POJO's . I get around 15 classes. I have a config.xml which is compliant to this schema . Now i want to write a java program which takes the config.xml and converts it into a java object . Please anybody help me with this . Thanks in advance
    Freestyle.xsd
    <?xml version="1.0" encoding="windows-1252"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="FreeStyleProject" type="hudson.model.FreeStyleProject"/>
    <xsd:complexType name="hudson.model.FreeStyleProject">
      <xsd:complexContent>
       <xsd:extension base="hudson.model.Project">
        <xsd:sequence/>
       </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="hudson.model.Project">
      <xsd:complexContent>
       <xsd:extension base="hudson.model.BaseBuildableProject">
        <xsd:sequence/>
       </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="hudson.model.BaseBuildableProject">
      <xsd:complexContent>
       <xsd:extension base="hudson.model.AbstractProject">
        <xsd:sequence/>
       </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="hudson.model.AbstractProject">
      <xsd:complexContent>
       <xsd:extension base="hudson.model.Job">
        <xsd:sequence>
         <xsd:element name="concurrentBuild" type="xsd:boolean"/>
         <xsd:element name="downstreamProject" type="hudson.model.AbstractProject"
                      minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="scm" type="hudson.scm.SCM" minOccurs="0"/>
         <xsd:element name="upstreamProject" type="hudson.model.AbstractProject"
                      minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
       </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="hudson.scm.SCM">
      <xsd:sequence>
       <xsd:element name="browser" type="hudson.scm.RepositoryBrowser"
                    minOccurs="0"/>
       <xsd:element name="type" type="xsd:string" minOccurs="0"/>
      </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="hudson.scm.RepositoryBrowser">
      <xsd:sequence/>
    </xsd:complexType>
    <xsd:complexType name="hudson.model.Job">
      <xsd:complexContent>
       <xsd:extension base="hudson.model.AbstractItem">
        <xsd:sequence>
         <xsd:element name="buildable" type="xsd:boolean"/>
         <xsd:element name="build" type="hudson.model.Run" minOccurs="0"
                      maxOccurs="unbounded"/>
         <xsd:element name="cascadingChildrenName" type="xsd:string" minOccurs="0"
                      maxOccurs="unbounded"/>
         <xsd:element name="color" type="hudson.model.BallColor" minOccurs="0"/>
         <xsd:element name="firstBuild" type="hudson.model.Run" minOccurs="0"/>
         <xsd:element name="healthReport" type="hudson.model.HealthReport"
                      minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="inQueue" type="xsd:boolean"/>
         <xsd:element name="keepDependencies" type="xsd:boolean"/>
         <xsd:element name="lastBuild" type="hudson.model.Run" minOccurs="0"/>
         <xsd:element name="lastCompletedBuild" type="hudson.model.Run"
                      minOccurs="0"/>
         <xsd:element name="lastFailedBuild" type="hudson.model.Run" minOccurs="0"/>
         <xsd:element name="lastStableBuild" type="hudson.model.Run" minOccurs="0"/>
         <xsd:element name="lastSuccessfulBuild" type="hudson.model.Run"
                      minOccurs="0"/>
         <xsd:element name="lastUnstableBuild" type="hudson.model.Run"
                      minOccurs="0"/>
         <xsd:element name="lastUnsuccessfulBuild" type="hudson.model.Run"
                      minOccurs="0"/>
         <xsd:element name="nextBuildNumber" type="xsd:int"/>
         <xsd:element name="property" type="hudson.model.JobProperty" minOccurs="0"
                      maxOccurs="unbounded"/>
         <xsd:element name="queueItem" type="hudson.model.Queue-Item"
                      minOccurs="0"/>
        </xsd:sequence>
       </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="hudson.model.Queue-Item">
      <xsd:complexContent>
       <xsd:extension base="hudson.model.Actionable">
        <xsd:sequence>
         <xsd:element name="blocked" type="xsd:boolean"/>
         <xsd:element name="buildable" type="xsd:boolean"/>
         <xsd:element name="id" type="xsd:int">
          <xsd:annotation>
           <xsd:documentation>VM-wide unique ID that tracks the {@link Task} as it
                              moves through different stages in the queue (each
                              represented by different subtypes of {@link Item}.</xsd:documentation>
          </xsd:annotation>
         </xsd:element>
         <xsd:element name="inQueueSince" type="xsd:long"/>
         <xsd:element name="params" type="xsd:string" minOccurs="0"/>
         <xsd:element name="stuck" type="xsd:boolean"/>
         <xsd:element name="task" type="xsd:anyType" minOccurs="0">
          <xsd:annotation>
           <xsd:documentation>Project to be built.</xsd:documentation>
          </xsd:annotation>
         </xsd:element>
         <xsd:element name="why" type="xsd:string" minOccurs="0"/>
        </xsd:sequence>
       </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="hudson.model.Actionable">
      <xsd:sequence>
       <xsd:element name="action" type="xsd:anyType" minOccurs="0"
                    maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="hudson.model.JobProperty">
      <xsd:sequence/>
    </xsd:complexType>
    <xsd:complexType name="hudson.model.HealthReport">
      <xsd:sequence>
       <xsd:element name="description" type="xsd:string" minOccurs="0"/>
       <xsd:element name="iconUrl" type="xsd:string" minOccurs="0"/>
       <xsd:element name="score" type="xsd:int"/>
      </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="hudson.model.Run">
      <xsd:complexContent>
       <xsd:extension base="hudson.model.Actionable">
        <xsd:sequence>
         <xsd:element name="artifact" type="hudson.model.Run-Artifact" minOccurs="0"
                      maxOccurs="unbounded"/>
         <xsd:element name="building" type="xsd:boolean"/>
         <xsd:element name="description" type="xsd:string" minOccurs="0"/>
         <xsd:element name="duration" type="xsd:long"/>
         <xsd:element name="fullDisplayName" type="xsd:string" minOccurs="0"/>
         <xsd:element name="id" type="xsd:string" minOccurs="0"/>
         <xsd:element name="keepLog" type="xsd:boolean"/>
         <xsd:element name="number" type="xsd:int"/>
         <xsd:element name="result" type="xsd:anyType" minOccurs="0"/>
         <xsd:element name="timestamp" type="xsd:long" minOccurs="0"/>
         <xsd:element name="url" type="xsd:string" minOccurs="0"/>
        </xsd:sequence>
       </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="hudson.model.Run-Artifact">
      <xsd:sequence>
       <xsd:element name="displayPath" type="xsd:string" minOccurs="0"/>
       <xsd:element name="fileName" type="xsd:string" minOccurs="0"/>
       <xsd:element name="relativePath" type="xsd:string" minOccurs="0">
        <xsd:annotation>
         <xsd:documentation>Relative path name from {@link Run#getArtifactsDir()}</xsd:documentation>
        </xsd:annotation>
       </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="hudson.model.AbstractItem">
      <xsd:complexContent>
       <xsd:extension base="hudson.model.Actionable">
        <xsd:sequence>
         <xsd:element name="description" type="xsd:string" minOccurs="0"/>
         <xsd:element name="displayName" type="xsd:string" minOccurs="0"/>
         <xsd:element name="name" type="xsd:string" minOccurs="0"/>
         <xsd:element name="url" type="xsd:string" minOccurs="0"/>
        </xsd:sequence>
       </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
    <xsd:simpleType name="hudson.model.BallColor">
      <xsd:restriction base="xsd:string">
       <xsd:enumeration value="red"/>
       <xsd:enumeration value="red_anime"/>
       <xsd:enumeration value="yellow"/>
       <xsd:enumeration value="yellow_anime"/>
       <xsd:enumeration value="green"/>
       <xsd:enumeration value="green_anime"/>
       <xsd:enumeration value="blue"/>
       <xsd:enumeration value="blue_anime"/>
       <xsd:enumeration value="grey"/>
       <xsd:enumeration value="grey_anime"/>
       <xsd:enumeration value="disabled"/>
       <xsd:enumeration value="disabled_anime"/>
       <xsd:enumeration value="aborted"/>
       <xsd:enumeration value="aborted_anime"/>
      </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>
    Config.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <project>
      <actions/>
      <description>Sample job ..</description>
      <project-properties class="java.util.concurrent.ConcurrentHashMap">
        <entry>
          <string>hudson-plugins-disk_usage-DiskUsageProperty</string>
          <base-property>
            <originalValue class="hudson.plugins.disk_usage.DiskUsageProperty"/>
            <propertyOverridden>false</propertyOverridden>
          </base-property>
        </entry>
        <entry>
          <string>jdk</string>
          <string-property>
            <originalValue class="string">(Inherit From Job)</originalValue>
            <propertyOverridden>false</propertyOverridden>
          </string-property>
        </entry>
        <entry>
          <string>scm</string>
          <scm-property>
            <originalValue class="hudson.scm.NullSCM"/>
            <propertyOverridden>false</propertyOverridden>
          </scm-property>
        </entry>
      </project-properties>
      <keepDependencies>false</keepDependencies>
      <creationTime>1402648240275</creationTime>
      <properties/>
      <cascadingChildrenNames class="java.util.concurrent.CopyOnWriteArraySet"/>
      <cascading-job-properties class="java.util.concurrent.CopyOnWriteArraySet">
        <string>hudson-plugins-batch_task-BatchTaskProperty</string>
        <string>hudson-plugins-disk_usage-DiskUsageProperty</string>
        <string>hudson-plugins-jira-JiraProjectProperty</string>
        <string>org-hudsonci-plugins-snapshotmonitor-WatchedDependenciesProperty</string>
        <string>hudson-plugins-promoted_builds-JobPropertyImpl</string>
      </cascading-job-properties>
      <scm class="hudson.scm.NullSCM"/>
      <canRoam>false</canRoam>
      <disabled>false</disabled>
      <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
      <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
      <concurrentBuild>false</concurrentBuild>
      <cleanWorkspaceRequired>false</cleanWorkspaceRequired>
    </project>
    the file generated by JAXB are
    com\model\HudsonModelAbstractItem.java
    com\model\HudsonModelAbstractProject.java
    com\model\HudsonModelActionable.java
    com\model\HudsonModelBallColor.java
    com\model\HudsonModelBaseBuildableProject.java
    com\model\HudsonModelFreeStyleProject.java
    com\model\HudsonModelHealthReport.java
    com\model\HudsonModelJob.java
    com\model\HudsonModelJobProperty.java
    com\model\HudsonModelProject.java
    com\model\HudsonModelQueueItem.java
    com\model\HudsonModelRun.java
    com\model\HudsonModelRunArtifact.java
    com\model\HudsonScmRepositoryBrowser.java
    com\model\HudsonScmSCM.java
    com\model\ObjectFactory.java
    Any help will be appreciated .
    Thanks in advance

    Unmarshal the config.xml to Java object.
    Basic JAXB Examples - The Java EE 5 Tutorial

  • How to find out the encoding of an XML input document

    Hello all,
    I read a XML file into a DOM document and would like to save it back in the same encoding as the input. How do I find out the encoding of the input document?
    This is my code for reading the document:
    import java.io.File;
    import java.io.FileInputStream;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMResult;
    import javax.xml.transform.stream.StreamSource;
    import org.w3c.dom.Document;
    Transformer transformer = TransformerFactory.newInstance().newTransformer();
    DOMResult domResult = new DOMResult();
    transformer.transform(new StreamSource(new FileInputStream(fileName)),
                          domResult);
    Document doc = (Document)domResult.getNode();
    .

    FileInputStream fis = new FileInputStream(fileName);
    String encoding = new InputSource(fis).getEncoding();
    fis.close();Note that this only works because you can get an InputStream over the document twice. If the document were coming from an HTTP response (for example) it wouldn't work.

  • Can't create a JAXB binding for ejb-jar.xml using xjc

    Hi all,
    I have been trying to build a JAXB binding for EJB deployment descriptors, mainly because I have to update a hand-cranked ejb-jar.xml file on the fly with some additions that have come from a code generator.
    I have tried to use
    xjc ejb-jar_2_1.xsd j2ee_1_4.xsd ejb-jar_2_1.xsd
    xjc on the schema definitions I found at http://java.sun.com/xml/ns/j2ee/ but I can't get it to work. It produces reams of errors, see below for a short extract.
    Of course, someone could put me out of my misery and tell me where to find a binding that someone else has done. I can't be the first chimp on the planet that has wanted to do this!
    Any help much appreciated.
    errors:
    [WARNING] warning: "blockDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: "finalDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 117 of j2ee_web_services_client_1_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 115 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 129 of ejb-jar_2_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 145 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 159 of ejb-jar_2_1.xsd

    Exception initializing 'oracle.dbtools.raptor.MonitorJDBCAddin' in extension 'Oracle SQL Developer': oracle.classloader.
    util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.jdbc.OracleDriverThe Oracle driver is not on the classpath.

  • How to encode an output XML file to UTF-16

    Hi,
      My target is a file system and the output is XML file. I need to encode the same in UTF-16 instead of default UTF-8. I am not using XSLT mapping
    1. How can I do this dynamically by adapter specific message attributes?
    2. Or can I achieve this by some module parameters in communication channel?
    thanks
    francis

    Use the XMLAnonymizerBean for this.
    http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/frameset.htm
    Regards
    Stefan

Maybe you are looking for

  • Why does Illustrator crash when opening a file on Windows 8.1

    This morning I opened Illustrator and opened the file I was working on and the app crashed. It happened even when I tried to make a new document. I have CC, CC 2014 and CC (64-bit) and they all do the same thing. I'm running a Surface Pro 2 on Window

  • Time machine causes error message " Disk not properly ejected" with USB backup drive

    I am using iMac OS X Lion and Time Machine causes the error message with a WD 1.5 TB drive in aThermaltake dock, USB.  every time I wake up the computer....  Ejection of Time Machine and shut it down and turn opp power to drive causes the error messa

  • Got myself in a color profile pickle - Windows 7

    So I'm using PS CS4 on Windows 7 Release Candidate (build 7100). I have profile my monitor using a cheap Spyder Express colorimeter. This produces an icc profile called spyder2express which is loaded up on startup. I know it loads correctly because i

  • Problem with printing through SAP

    Hi All, We have problem with printing, only one person through SAP can only print the documents successfully and the remaining are getting incomplete print output. This is happening only for transactions GD23 and FB03 (FI related transactions). We ha

  • SCCM 2012 Site Design with multiple agency seperation

    I have read through some of the other posts, and none quite seem to match my scenario. I have a new task to design a new SCCM 2012 Site. At first I thought this was going to be easy, but it seems to have become a bit of a challenge. I have been taske