Quastion about type conversion mapping

What does the type convertion mapping serve for in jdeveloper 10g?
Cant find any meaningful examples.
I think it sould be used for escaping java coding if it is necessarily to change automatically generated data types...or to supply some specific format like to_char function in sql... But it seems that neither functionallity is supporteds
Thanks. Alex

There is some more current info here:
http://wiki.eclipse.org/Introduction_to_Mappings_(ELUG)#Type_Conversion_Converter
But this is for the TypeConversionConverter in EclipseLink, which is mostly the same (the TypeConversionMapping in 9.0.4 became the TypeConversionConverter in 10.1.3).
It is basically to handle converting from one type in Java such as Calendar to another type in the database, say DATE or even VARCHAR, etc. It can handle most obvious conversions. Many conversions will also work without a converter, or at least work most of the time depending on if the database auto converters types, but some databases are more picking on the type that is bound matching the field type.
James : http://www.eclipselink.org

Similar Messages

  • Types of Mapping XI supports

    Choose the true about types of mapping XI supports
    a. Structure Mapping
    b. Node mapping
    c. Value Mapping   
    d. Functional Mapping
    i guess it supports all of those mappings specified..
    iam i right on this??

    Guys -
    I am a novice to XI. But, I guess as per my understanding this is what I think. Please advis me if you have better opinion that would justify this answer in certifrication.
    XI by definition supports only the following 4 mappings types:
    Message (Graphical), XSLT, JAVA & ABAP
    However, first in Element cardinality addresses something called NODE MAPPING which describes as follows:
    Mapping of Non Mandatory Nodes (minOccurs=0)
    ====================================
    1. If a non mandatory node contains elements with minOccurs>0, these elements becomes mandatory after their parent node is assigned
    2. Assignment of element is not sufficient
    3. Node has to be 'created' by assigning a suitable source node/element
    Therefore, as per this discription, I believe NODE mapping a valid for CERTIFICATION
    Secondly, as per my understanding of message mapping, we map source and target STRUCTURES here. Does not this mean STRUCTURE MAPPING? Please confirm?
    Thirdly, You experts all must have done Value Mappings in your projects and there is no need for me to describe more about it. Can not we consider this as a valid answer for CERTIFICATION?
    Last but not least FUNCTIONAL MAPPING; I am not sure why this option is here? May be this is just to add confusion. On the otherside, it make sense if we consider including functions (both standard and user-defined) in our mapping. Does this make sense being a valid Mapping at all?
    In other words, let me ask you all experts; Is this a direct or indirect question? If it is direct then we should turn down all the options. If indirect, may the first 3 are correct or all four.
    Therefore, I rely on your guys for you input. Please provide your valuble analysis.
    Thanks

  • Different types of Mapping in XI

    Hi All,
    I am new to XI, I know different types of Mapping in XI.
    when we are using this mapping?
    1. Graphical Mapping
    2. Java Mapping
    3. XSLT Mapping and
    4. ABAP Mapping
    Please give detail.. it's helpful to me...
    Thanks & Regards
    SReddy,

    Hi Reddy,
    I thought i will start of from scratch.Mapping is basically done to convert one form of xml into another form. This can be done using either of them mentioned below.
    - Graphical mapping
    - XSLT mapping
    - JAVA mapping
    - ABAP mapping
    To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following links:
    Graphical mapping
    /people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview
    http://www.sapgenie.com/netweaver/xi/mapping1.htm
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    XSLT mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    JAVA mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    ABAP mapping
    /people/r.eijpe/blog
    To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:
    http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf
    To get an idea as to what value mapping is, please go thru the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.
    Hope this clears your doubt fully.
    Regards,
    Abhy
    PS: AWARD POINTS FOR HELPUL ANSWERS.

  • Types of Mapping

    Hi Masters,
    I have Small Dought..
    We have 4 Type of Mappings,
    <b>Genera Message Mapping, JAVA Mapping, XSLP Mapping and ABAP Mapping...
    </b>
    <b>My Dought is ...In which Scenarios we are using this all mappings....</b>
    Please give me Clear Idea...
    Regards,
    SReddy

    Hi,
    I thought i will start of from scratch.Mapping is basically done to convert one form of xml into another form. This can be done using either of them mentioned below.
    - Graphical mapping
    - XSLT mapping
    - JAVA mapping
    - ABAP mapping
    There is no hard and fast rule for using the mapping techniques. But, I will try to put things in the right perspective for you.
    Graphical Mapping is used for simple mapping cases. When, the logic for your mapping is simple and straight forward and it does not involve any complex logic.
    Java and XSLT mapping are used when graphical mapping cannot help you.
    When the choice is between Java And XSLT, XSLT is simpler than java mapping and easier. But, it has its drawbacks. One among them being that you cannot use Java APIs and Classes in it. There might be cases in your mapping when you will have to perfrom something like a properties file look up or a DB lookup, such scenarios are not possible in XSLT and so, when you want to use some specific Java API's you will have to go for Java Mapping.
    Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but , DOM is very processor intensive.
    SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exaclty easy to develop either.
    To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following links:
    Graphical mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    /people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview
    http://www.sapgenie.com/netweaver/xi/mapping1.htm
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    XSLT mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    http://www.w3.org/TR/xslt20/
    JAVA mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
    ABAP mapping
    /people/r.eijpe/blog
    To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:
    http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf
    To get an idea as to what value mapping is, please go thru the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.
    Hope this clears your doubt fully.
    Regards,
    Abhy

  • Conversion mapping is losing time zone data during daylight saving time

    We have a problem with conversion of Calendars to timestamp with timezone for the last hour of Daylight Saving Time (e.g. 01:00 EDT - 01:59 EDT) where it is being interpreted as Standard Time which is in reality 60 minutes later.
    We've written a JUnit test case that runs directly against TopLink to avoid any issues with WAS and its connection pooling.
    The Calendar theDateTime comes from an object called TimeEntry which is mapped to a TIMESTAMP WITH TIMEZONE field using conversion mapping with Data Type TIMESTAMPTZ (oracle.sql) and Attribute Type Calendar (java.util).
    We are using:
    Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build Patch for Bugs 5145690 and 5156075)
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    Oracle JDBC driver Version: 10.2.0.1.0
    platform=>Oracle9Platform
    Execute this Java:
    SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy HH:mm z");
    TimeZone tzEasternRegion = TimeZone.getTimeZone("US/Eastern");
    Calendar theDateTime = Calendar.getInstance(tzEasternRegion);
    theDateTime.setTime(format.parse("10/29/2006 01:00 EDT"));
    Persist to the database and execute this SQL:
    SELECT the_date_time, EXTRACT(TIMEZONE_REGION FROM the_date_time), EXTRACT(TIMEZONE_ABBR FROM the_date_time), EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    FROM time_table WHERE time_table_id=1
    This provides the following results:
    THE_DATE_TIME EXTRACT(TIMEZONE_REGION FROM the_date_time) EXTRACT(TIMEZONE_ABBR FROM the_date_time) EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    29-OCT-06 01.00.00.000000 AM US/EASTERN US/Eastern EST -5
    The wrong time zone is in the database. It should be EDT -4. Let's test the SQL that should be generated by TopLink. It should look like the following.
    Execute this SQL:
    UPDATE time_table SET the_date_time = TO_TIMESTAMP_TZ('10/29/2006 01:00 US/Eastern','mm/dd/yyyy HH24:MI TZR') WHERE (time_table_id=1)
    SELECT the_date_time, EXTRACT(TIMEZONE_REGION FROM the_date_time), EXTRACT(TIMEZONE_ABBR FROM the_date_time), EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    FROM time_table WHERE time_table_id=1
    This provides the same results:
    THE_DATE_TIME EXTRACT(TIMEZONE_REGION FROM the_date_time) EXTRACT(TIMEZONE_ABBR FROM the_date_time) EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    29-OCT-06 01.00.00.000000 AM US/EASTERN US/Eastern EST -5
    Now, execute this SQL:
    UPDATE time_table SET the_date_time = TO_TIMESTAMP_TZ('10/29/2006 01:00 EDT US/Eastern','mm/dd/yyyy HH24:MI TZD TZR') WHERE (time_table_id=1)
    SELECT the_date_time, EXTRACT(TIMEZONE_REGION FROM the_date_time), EXTRACT(TIMEZONE_ABBR FROM the_date_time), EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    FROM time_table WHERE time_table_id=1
    This provides better results:
    THE_DATE_TIME EXTRACT(TIMEZONE_REGION FROM the_date_time) EXTRACT(TIMEZONE_ABBR FROM the_date_time) EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    29-OCT-06 01.00.00.000000 AM US/EASTERN US/Eastern EDT -4
    The correct time zone is now in the database. Let's test reading this with the following Java:
    System.out.println("cal= " + theDateTime);
    System.out.println("date= " + theDateTime.getTime());
    System.out.println("millis= " + theDateTime.getTimeInMillis());
    System.out.println("zone= " + theDateTime.getTimeZone());
    This provides the following results:
    cal= java.util.GregorianCalendar[...]
    date= Sun Oct 29 01:00:00 EST 2006
    millis= 1162101600000
    zone= sun.util.calendar.ZoneInfo[id="US/Eastern",...]
    The TimeZone object is correct since we are using the US/Eastern regional time zone, but the millis are wrong which makes the time EST instead of EDT. The millis should be 1162098000000.
    The conversion from java.util.Calendar to TIMESTAMPTZ loses the actual offset when setting to a regional time zone. It can maintain this info by specifying it explicitly.
    The conversion from TIMSTAMPTZ to java.util.Calendar also loses the actual offset even if the correct offset is in the database.
    Has anyone else encountered this conversion problem? It appears to be a conversion problem in both directions. I know that the Calendar is lenient by default and will assume Standard Time if time is entered during the repeated 1 o'clock hour at the end of Daylight Saving Time, but the Calendars we are using are explicit in their time, so this would be classified as data corruption.
    Nik

    Opened an SR. Looks like there is a problem with conversion either in TopLink or in JDBC.

  • Character array type conversion problem

    Hi, I'm using BlazeDS (v3.0.0.544) to remotely call Java code on the server from my Flex client. I'm having trouble when converting a character array type from Java to ActionScript and vice-versa. In my Flex code, if the ActionScript class uses a String type to map to the char[] then the char[] is successfully converted from Java to ActionScript, but not from ActionScript to Java.
    // Extract from ActionScript code
    private var m_charArray:String;
    public function get charArray():String
    return m_charArray;
    public function set charArray(value1:String):void
    m_charArray = value1;
    Alternatively, if my ActionScript class uses an Array type then I can successfully send data from the client and populate a char[] field on the server, but can't send an updated char[] back to my ActionScript class.
    In fact the Flex console reports:
    TypeError: Error #1034: Type Coercion failed: cannot convert "myString" to Array.
    The code this time:
    // Extract from ActionScript code
    private var m_charArray:Array;
    public function get charArray():Array
    return m_charArray;
    public function set charArray(value1:Array):void
    m_charArray = value1;
    All the other types I have tried work successfully, it's only with char arrays that I've hit a problem.
    Any help would be appreciated, thanks.

    Hi Graeme,
    It is how it works. I can see the inconsistency. You can find an example how of echo char[] in blazeds\trunk\qa\apps\qa-regress\testsuites\mxunit\tests\remotingService\dataTypes\CharTy pesTest.mxml. It echos a char[] in return of a string. You can get the char in a string easily string.charAt() and get its length using length(). I think it may be the reason remoting decided to use a string to represent a char[] instead of a generic objects array. It should be more memory efficient. However, I can see that it can turn into problem as what you descibed. When the data has to send back to server, it has to convert back to array. If the char[] type is used inside an object, it is impossible to do the conversion unless the getter and setter are generic
    public function get charArray():Object
    return m_charArray;
    public function set charArray(value1:Object):void
    if (value1 is String)
    m_charArray = new Array();
    //copy the string elements to it
    else
    m_charArray = value1;
    I know it is ugly, but it the only work around I can think of. I think it needs to log a bug to correct this conversion behavior
    William

  • Invalid data type conversions

    what are the invalid data type conversions in ABAP ???
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 10, 2012 6:01 PM

    No Amanda,
    The values that I see in message monitor are also those that comes to XSLT programs as input.
    I investigated our problem a little further myself:
    1) XI always converts messages into XML format - this everybody knows.
    2) In XI documentation it is declared that XI uses ISO 8601 for DATE type formatting. That's why you see dates in format YYYY-MM-DD in XML data in message monitoring.
    3) The appearance of those decimal values are not that obvious for me. If XI uses ABAP transformation for message content then applies the rules for converting ABAP data types into XML. For this there is a SAP document 'ABAP - XML mapping' from TechEd2004. This document seems to describe how ABAP data types are handled by XML transformation.
    Anyway, we currently need to play with decimal values in XSLT mapping programs inside XI:
    a) add leading 0 integer if source value < 1
    RFC returns 0.123 -> XI converts to XML '.123' -> XSLT mapper should return '0.123' ->SOAP response returns '0.123'
    b) add decimal point and trailing zeros
    RFC returns 0.000 -> XI converts to XML '0' -> XSLT mapper should return '0.000' ->SOAP response return '0.000'
    With dates, the problem is actually on documenting mapping rules when writing interface specifications. If you would write an EAI-solution-independent conversion rule (RFC/date->SOAP/char) for date field it could sound like: YYYYMMDD -> dd.mm.yyyy. This works semantically between these systems but would not work for XI-developer, because he get YYYY-MM-DD from the RFC.
    Additionally the decimal type conversion requirements in XSLT mapping programs probably only applies XI and are therefore not reusable in other EAI environments.
    I would be glad if somebody would still have further comments for this data type conversion issue.
    br: Kimmo

  • Different types of mapping

    What are the advantages and under what circumstances do we need to use each one of them?

    Hello Sonia,
    Depends upon u r requirement u have to choose which mapping is suitable..
    In Real Time out most of our requirements through graphical mappings only.
    Diffarent types of Mapping's....
    1) MESSAGE MAPPING
    2 ) ABAP MAPPING
    3 ) JAVA MAPPING
    4 ) XSLT MAPPING
    Message Mapping:
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    Java Mapping :
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+mapping&adv=false&sortby=cm_rnd_rankvalue#
    SAP Network Blog: Implementing a Java Mapping in SAP PI
    /people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
    Java Mapping (SAP Library - Partner Connectivity Kit)
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
    SAP Network Blog: XI Java Mapping Helper (DOM)
    /people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
    SAP Network Blog: Testing and Debugging Java Mapping
    /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
    Binary Conversion in XI - Java Mapping - Code Gallery - Wiki
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/binary%2bconversion%2bin%2bxi%2b-%2bjava%2bmapping
    SAP Network Blog: "JAVA MAPPING", an alternate way of reading a CSV file
    /people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
    ABAP mappings run on ABAP Stack and are developed in the ABAP workbench of the Integration Server.
    You normally do not need to use the ABAP mappings and is preferable for someone with ABAP programming background. I should say JAVA functions would suffice any complex scenarios.
    refer step by step guides for ABAP Mapping
    ABAP Mapping:
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=abap+mapping&adv=false&sortby=cm_rnd_rankvalue#
    How to Use ABAP Mapping in Exchange Infrastructure 3.0 (NW2004)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    SAP Network Blog: Testing ABAP Mapping
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    SAP Network Blog: How to call XI ABAP Mapping via RFC
    /people/ricardoandres.maienza/blog/2007/04/06/how-to-call-xi-abap-mapping-via-rfc
    SAP Network Blog: XI: ABAP mapping logs - more standard = better visibility
    /people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
    SAP Network Blog: Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping
    /people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
    You need to provide the name of your mapping program maually , you see it is an input box.
    XSLT Mapping..
    http://help.sap.com/saphelp_nw04/helpdata/en/83/2200cb50d345c793336d9a1683163e/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/83/2200cb50d345c793336d9a1683163e/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/b78d406b305537e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/4c/b2ad3de2d76b3be10000000a114084/frameset.htm
    Thanks,
    Satya Kumar
    Reward Points if it is useful..

  • Advantages/disadvantages,Capabilities,Failures of Types of mapping

    Dear all,
    Can you kindly explain me the Advantages/disadvantages,Capabilities,Failures of Types of mapping.
    what is the parser XSLT uses.
    what is differnece between sax/dom parsers.
    Thanks,
    Srinivasa

    Hi srinivas phani  ,
    The following websites give u good documentation on Mapping:
    Excellent PDF Document on Mapping
    http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
    Mapping Development with the ABAP Workbench
    http://help.sap.com/saphelp_nw04/helpdata/en/10/5abb2d9df242f6a62e22e027a6c382/content.htm
    ABAP Mappings
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
    how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    How to Use ABAP Mapping in XI 3.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    SAXParser
    Both DOM and SAX approaches have advantages and disadvantages, and your choice of technique must depend on the type of data being parsed, the requirements of your application, and the constraints under which you are operating.
    The SAX approach is linear: It processes XML structures as it finds them, generating events and leaving the event handlers to decide what to do with each structure. The advantage of this approach is that it is resource-friendly; because SAX does not build a tree representation of the document in memory, it can parse XML data in chunks, processing large amounts of data with very little impact on memory. This also translates into better performance; if your document structure is simple, and the event handlers don't have anything too complicated to do, SAX-based applications will generally offer a speed advantage over DOM-based ones.
    The downside, though, is an inability to move around the document in a non- linear manner. SAX does not maintain any internal record of the relationships between the different nodes of an XML document (as the DOM does), making it difficult to create customized node collections or to traverse the document in a non-sequential manner. The only way around this with SAX is to create your own custom object model, and map the document elements into your own custom structures—a process that adds to complexity and can possibly degrade performance.
    Where SAX flounders, though, the DOM shines. The DOM creates a tree representation of the document in memory, making it possible to easily travel from one node to another, or even access the same node repeatedly (again, not something you can do easily in SAX). This tree representation is based on a standard, easy-to-understand model, making it easier to write code to interact with it.
    This flexibility does, however, come with an important caveat. Because the DOM builds a tree in memory, DOM processing cannot begin until the document has been fully parsed (SAX, on the other hand, can begin parsing a document even if it's not all available immediately). This reduces a developer's ability to "manage" the parsing process by feeding data to the parser in chunks, and also implies greater memory consumption and consequent performance degradation.
    Consequently, the choice of technique depends significantly on the type of constraints the application will be performing under, and the type of processing it will be expected to carry out. For systems with limited memory, SAX is a far more efficient approach. On the other hand, complex data-processing requirements can benefit from the standard object model and API of the DOM.
    After using DOM to parse XML documents for any length of time, you will probably begin to notice that performance tends to suffer when you’re dealing with large documents. This problem is endemic to DOM's tree-based structure: larger trees demand more memory, and DOM must load an entire document into memory before it can allow you to parse it. For situations where performance is problematic with DOM, you have an alternative in the Simple API for XML (SAX). In this fifth installment in our Remedial XML series, I'll introduce you to the SAX API, and provide some links to SAX implementations in several different languages.
    Further differences can be seen in the following websites
    http://articles.techrepublic.com.com/5100-22-1044823.html
    Parsing XML Efficiently : DOM Parsing ,SAX Parsing
    http://www.oracle.com/technology/oramag/oracle/03-sep/o53devxml.html
    SAX Example
    http://www.informit.com/articles/article.aspx?p=26351&seqNum=6&rl=1
    Event or DOM parsing?
    http://discuss.joelonsoftware.com/default.asp?design.4.156750.12
    SAX samples
    http://xerces.apache.org/xerces2-j/samples-sax.html
    Set up a SAX parser
    http://www.ibm.com/developerworks/xml/library/x-tipsaxp.html
    Simple API for XML (SAX)
    http://en.wikipedia.org/wiki/Simple_API_for_XML
    SAX Parser Benchmarks
    http://piccolo.sourceforge.net/bench.html
    XML Parsers: DOM and SAX Put to the Test
    http://www.devx.com/xml/Article/16922/1954?pf=true
    High-Performance XML Parsing With SAX
    http://www.xml.com/pub/a/2001/02/14/perlsax.html
    Using the SAX Parser
    http://www.javacommerce.com/displaypage.jsp?name=saxparser1.sql&id=18232
    Class SAXParser
    http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParser.html
    Class SAXParser
    http://people.apache.org/~andyc/neko/doc/html/javadoc/org/cyberneko/html/parsers/SAXParser.html
    SAX Parsers
    http://webdesign.about.com/od/saxparsers/SAX_Parsers.htm
    Interface SAXParser
    http://excalibur.apache.org/apidocs/org/apache/excalibur/xml/sax/SAXParser.html
    Class SAXParser
    http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/SAXParser.html
    DOM Parsing
    Excellent website showing how 2 use Document Object Model (DOM)
    http://www.w3.org/DOM/
    Document Object Model (DOM) Parsing
    http://www.xml.com/lpt/a/1597
    Overview of DOM, DOM Level 3 core,DOM Level 3 Load & Save
    http://www.softwaresummit.com/2004/speakers/GrahamJAXP1.pdf
    Sample java program using DOM
    http://mail-archives.apache.org/mod_mbox/cocoon-cvs/200305.mbox/%[email protected]%3Eorg/mod_mbox/cocoon-cvs/200305.mbox/%[email protected]%3E
    Easy RFC lookup from XSLT mappings using a Java helper class
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
    XML Transformation Using the TrAX APIs in JAXP
    http://www.xml.com/pub/a/2005/07/06/jaxp.html?page=last
    cheers!
    gyanaraj
    ****Pls reward points if u find this helpful

  • Image type conversion

    Hi, How can i use BufferedImage class to perform image type conversion, thanks

    I fyou're talking about changing the image encoding, see the documentation for ImageIO.
    {color:#0000ff}http://java.sun.com/javase/6/docs/api/javax/imageio/ImageIO.html{color}
    Particularly the read and write methods.
    If you're talking about changing the BufferedImage.TYPE_xxx, construct a new BI with the same size and drawImage the previous image on it.
    If something else, clarify. And next time you ask a question, please try to be clear about your requirements.
    luck, db

  • Implicit and explicit Type conversion using Type object in heap

    Hi,
    I am surprised how Implicit and explicit Type conversion works using Type object in heap. for example when implicit type conversion occur what pointer it returns to object and similarly with explicit type conversion.

    Hello,
    >> I am surprised how Implicit and explicit Type conversion works using Type object in heap.
    For Implicit conversions: Typical examples are conversions from smaller to larger integral types, and conversions from derived classes to base classes. For the first one, the reference would be different which means it would return a different pointer to
    a new object. For the reference type, it actually points to the same memory location, you could use the object.ReferenceEquals() to check it.
    For Explicit conversions (casts):Typical examples include numeric conversion to a type that has less precision or a smaller range, and conversion of a base-class instance to a derived class. For first one, it would perform the same with implicit conversions.
    While for the conversion of conversion of a base-class instance to a derived class, actually, there's no built-in way to do this conversion.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The priority of different data type conversion

    Hi All,
    I want to know the priority of data type conversion rule. if in an expression, I have several kind of data type( I, P, F,N..).
    Then finaly, all the data object will convert to which data type?
    I don't know the priority of data conversion.
    E.g.   data a type i. data b type p. data c type f.
             a = b + c.
    or    data d type p, data e type f.
          if ( d > f ).
    Then who will convert to who's type?
    Thanks and Regards.
    Aaron

    For expressions, the right term in SAP is "calculation type", it's explained here : [abap help - determining the calculation type|http://help.sap.com/abapdocu_70/en/ABENARITH_TYPE.htm]. SAP takes the "biggest" type of all variables in the expression. It can be I, P or F (smallest is I, biggest is F).
    Conditions are handled differently, just using data type conversion (see link given above by Abhishek), SAP converts from smallest to biggest type (in your case, it converts P to F and compares the two F variables).

  • Need Help with data type conversion

    Hello People,
    I am new to java, i need some help with data type conversion:
    I have variable(string) storing IP Address
    IPAddr="10.10.103.10"
    I have to call a library function which passes IP Address and does something and returns me a value.
    The problem I have is that external function call in this library excepts IP Address in form of a byte array.
    Here is the syntax for the function I am calling through my program
    int createDevice (byte[] ipAddress).
    now my problem is I don't know how to convert the string  IPAddr variable into a byte[] ipAddress to pass it through method.

    Class InetAddress has a method
    byte[]      getAddress() You can create an instance using the static method getByName() providing the IP address string as argument.

  • Can anyone Explain about Data conversion for Material master In SAP MM

    Can anyone Explain about Data conversion for Material master, Vendor  In SAP MM
    Thanks

    Hi,
    Refer following link;
    [Data Migration Methodology|http://christian.bergeron.voila.net/DC_Guide/Data_Migration_Methodology_for_SAP_V01a.doc]

  • IPhone 6 Plus 16GB blue screen crashes: Read, error type:Address map hole or size mis-match

    Hi folks,
    Some time ago I had a 16GB 6+ and it crashed with the blue screen, so I returned it. I now have a brand new one that I got from Tmobile ($75 return fee) and although it has mostly worked just fine, I have gotten 2 blue screen crashes. Below are the details from the phone's log.
    What strikes me is the message "Read, error type:Address map hole or size mis-match".
    Does anyone know if this could be caused by a hardware defect?
    I've gotten one of these crashes running iOS 8.1.2 and another in 8.1.3.
    Thanks.
    Incident Identifier: 20304759-E90B-453F-BDC5-176AF4E30041
    CrashReporter Key:   fcf18d230005749957728546dea3221a0c588330
    Hardware Model:      iPhone7,1
    Date/Time:           2015-01-25 19:43:44.913 -0800
    OS Version:          iOS 8.1.2 (12B440)
    panic(cpu 0 caller 0xffffff8008cd45d0): L2C PIO error (src:core0-AF snoop, address:0x1202030208, access:Read, error type:Address map hole or size mis-match, L2C_ERR_STS:100003fc00000202, L2C_ERR_ADR:0x1108e1202030208, L2C_ERR_INF:0x2107)
    Debugger message: panic
    OS version: 12B440
    Kernel version: Darwin Kernel Version 14.0.0: Mon Nov  3 22:27:30 PST 2014; root:xnu-2783.3.22~1/RELEASE_ARM64_T7000
    iBoot version: iBoot-2261.3.33
    secure boot?: YES
    Paniclog version: 3
    Kernel slide:     0x0000000006000000
    Kernel text base: 0xffffff8008002000
    Epoch Time:        sec       usec
      Boot    : 0x54bc22ef 0x00000000
      Sleep   : 0x54c58398 0x0002abb4
      Wake    : 0x54c583ae 0x000f08df
      Calendar: 0x54c5b7e3 0x00025045

    same with my iPhone 4s 16gb
    {"os_version":"iOS 8.1.3 (12B466)","bug_type":"110"}
    Incident Identifier: 582496DB-6999-468C-9504-3D1C191B9F4B
    CrashReporter Key: 623a577555e51ed110b937358adfa66fba3ea447
    Hardware Model: iPhone4,1
    Date/Time: 2015-02-20 04:17:50.830 +0300
    OS Version: iOS 8.1.3 (12B466)
    panic(cpu 0 caller 0x83dc8347): "i2c1::_checkBusStatus Bus is still in a bad state; last write status 00010110 xfer 00000000 fifo 00000000 for device als"
    Debugger message: panic
    OS version: 12B466
    Kernel version: Darwin Kernel Version 14.0.0: Mon Jan 12 21:30:11 PST 2015; root:xnu-2783.3.26~3/RELEASE_ARM_S5L8940X
    Kernel slide: 0x0000000003400000
    Kernel text base: 0x83401000
    Boot : 0x54e68884 0x00000000
    Sleep : 0x54e68a7e 0x000dd6ac
    Wake : 0x54e68b19 0x00035c02
    Calendar: 0x54e68b1d 0x00040927
    Panicked task 0x84a87c60: 13773 pages, 122 threads: pid 0: kernel_task
    panicked thread: 0xc5066e80, backtrace: 0x81a33ca0
    0x834ad94d
    0x834adcb1
    0x8341d5bd
    0x83dc8347
    0x83dc8059
    0x83dc7e35
    0x8389c601
    0x8389c513
    0x836f6f65
    0x8389cc6d
    0x8389ccc5
    0x83a9f18d
    0x83a9c27f
    0x83a9c73f
    0x83a9c90d
    0x836f6f65
    0x83a9c8e5
    0x836e91e7
    0x8343ed9b
    0x834ab59c
    Task 0x84a87c60: 13773 pages, 122 threads: pid 0: kernel_task
    Task 0x84a87948: 771 pages, 3 threads: pid 1: launchd
    Task 0x84a87000: 2016 pages, 13 threads: pid 17: UserEventAgent
    Task 0x84a87630: 481 pages, 4 threads: pid 18: misd
    Task 0x84a87318: 4114 pages, 22 threads: pid 19: CommCenter
    Task 0x87a62948: 349 pages, 2 threads: pid 21: keybagd
    Task 0x87a62318: 574 pages, 4 threads: pid 23: iaptransportd
    Task 0x87a62000: 868 pages, 9 threads: pid 24: configd
    Task 0x87a7ac60: 793 pages, 4 threads: pid 25: lockdownd
    Task 0x87a7a948: 1218 pages, 6 threads: pid 26: imagent
    Task 0x87a7a630: 2771 pages, 4 threads: pid 27: atc
    Task 0x87a7a318: 792 pages, 2 threads: pid 28: fairplayd.H1
    Task 0x87a7a000: 1571 pages, 14 threads: pid 29: aggregated
    Task 0x87c4ac60: 1069 pages, 4 threads: pid 30: routined
    Task 0x87c4a318: 707 pages, 5 threads: pid 33: timed
    Task 0x87d23c60: 646 pages, 2 threads: pid 35: installd
    Task 0x87d23948: 2383 pages, 11 threads: pid 36: mediaserverd
    Task 0x87d23318: 1279 pages, 11 threads: pid 38: ubd
    Task 0x87d23000: 249 pages, 7 threads: pid 39: syslogd
    Task 0x87d6ac60: 410 pages, 2 threads: pid 40: softwareupdated
    Task 0x87d6a948: 851 pages, 5 threads: pid 41: mediaremoted
    Task 0x87d6a630: 1877 pages, 7 threads: pid 42: identityservices
    Task 0x87d6a318: 9938 pages, 16 threads: pid 43: SpringBoard
    Task 0x87d6a000: 453 pages, 2 threads: pid 44: fileproviderd
    Task 0x87e25c60: 609 pages, 4 threads: p

Maybe you are looking for

  • Cannot install Windows 8.1 with BootCamp on Mavericks

    I have a brand spankin' new Late 2013 27" iMac, fully updated, with a 3TB Fusion drive. I have thrice attempted to install Windows 8.1 via BootCamp 5.5, with the 64bit edition DVD on the SuperDrive, and allotting 1TB out of the 3 available. There are

  • ITunes won't display

    I have a Sony Vaio with Windows 7 Home Premium 64-bit OS. When I start iTunes, the program launches, shows in Processes as iTunes*32.exe - then the program will not display. This is new problem since iTunes 10, I believe, but am not 100% positive. An

  • Using PIPELINED in VO

    Hello, I have 2 types: create or replace type e1e2 AS OBJECT ( e1 varchar2(3), e2 varchar2(3)); CREATE OR REPLACE TYPE e1e2_tabtype AS TABLE OF e1e2; and function: CREATE OR REPLACE function manage_type(ee in varchar2) return e1e2_tabtype PIPELINED a

  • Dinamic filter

    Hello everybody, I dont know if I will be able to ask this in the right way at first sight.This is the issue, I have a filter with 3 options= All, Only M4U or Everything but M4U, choosing one of it it will affect the second filter content, adding to

  • Advanced Filter Behaves differently in Full screen mode

    I have a power view report designed and published in SharePoint 2013. It has a filter on a text field - I can filter it with filter conditions "contains" in regular view mode. But this same field is not editable in "Full Screen Mode". The Numeric fil