Newbie help please:  "Validation of XML file failed."

Hopefully my question is short and easy.
I'm a developer and haven't used FrameMaker before. However for unforeseen reasons, I've inherited our technical help documentation constructed in FrameMaker which I've never used. Unfortunately I'm under a very tight deadline and I'm attempting to update our already existing and fairly extensive application help files.
However, I'm getting a "Validation of XML file failed" error for 90% of our .xml help docs. I opened our .book file in FrameMaker fairly easily, and can see all of our .xml files. However the variables already embedded in the documents aren't being recognized and seem to be causing the above error. I've located our variable definition files (xml) in the concepts folder, but FrameMaker doesn't seem to recognize them. Any suggestions on what I can check or how I can get FM to refer to the variable definitions? I'm working with a new installation of FM, is there some setup I overlooked?
Many thanks,
dana.

Sheila and Rick,
Thank you both so much for your offer of help. My apologies for not replying earlier. Other 'emergencies' and priorities at work took me in other directions. It turns out another solution has been found for the time being. But thank you again for your replies. They say a lot about this community and its support. :)
Thanks again,
dana.

Similar Messages

  • Validation with data file failed

    Hello All
    I have loaded the Currency Exchange Rates from BW cube into Rate Model in BPC upto March 2014 and then our BW cube get updated the Exchange Rates for April 2014.
    Now I am trying to load the Exchange Rates for April 2014 only into Rate model and for that I am validating the Transformation File but it was failed. It shows 'VALIDATION WITH DATA FILE FAILED'.
    Rejected list option showing blank screen.
    With the same Transformation file I have loaded the data upto March 2014 successfully.
    I have compressed the source cube, reactivate the source cube after all am unable to validate the Transformation file. Below is my transformation file screen shot.
    Please let me know if you need any more details from my side.
    Thanku you all in advance.
    Please help
    Regards
    Srikant

    Hi Shaik
    Thanks for your reply.
    I have validate the Transformaiton file by given vlaue in MAXREJECTCOUNT= 10000 but there is no chage same error is coming. 'Validation with data file failed' without any errors.
    Thanks
    Srikant

  • Validating large xml files

    In our application we have a requirement to validate large xml file (around 40 mb) against a simple schema file.
    I have tried all options(Sax and Dom) mentioned in below article on sun site -
    http://java.sun.com/developer/EJTechTips/2005/tt1025.html
    but with all of these approches the validation process just hangs for hours.
    Even i am running my test case for this validation by allocating 1 GB memory to test case, on latest processor(core-2 duo) but still it just hangs and returns after a long duration.
    If needed i can provide sample test case, schema file and xml file.
    Please help me to know if its a problem with JAXP 1.3 Schema Validation Framework (SVF) to handle large files, or if there is any other efficient way of validating large xml file.
    Regards
    Rahul

    you may want to split the XML to 10MB each and parse the XML's separately or store in a database and read the XML using XQuery.
    I am sure there may be better ways to do this, will see experts opinions here.

  • Help regarding uploading an xml file

    Hi All
    I have to upload data from an xml file.
    I guess the function module SMUM_XML_PARSE can be used for achieving this. But can anybody please tell me the exact procedure to use this function module.
    The program is going for a dump showing a CALL_FUNCTION_CONFLICT_TYPE error.
    The code is as follows
    data: stab like smum_xmltb occurs 0 with header line.
    data: ret1 like bapiret2 occurs 0.
          call function 'SMUM_XML_PARSE'
            exporting
              xml_input       = 'C:TEST.XML'
            tables
              xml_table       = stab
              return          = ret1
    loop at stab.
      write:/ stab-hier,stab-type.
    endloop.
    Thanks in advance
    Sree Ramya

    hii
    as for fm
    CALL FUNCTION 'SMUM_XML_PARSE'
    EXPORTING
    XML_INPUT = inputstring
    TABLES
    XML_TABLE = xmltab
    RETURN = ZBAPIRET2.
    This function module converts yr xml file i.e. in inputstring into zmltab table. Then U can loop on table to check the content.
    go thru this link
    http://www.geocities.com/victorav15/sapr3/abapfun.html#xml
    and also refer the example
    check this code
    1. Convert internal table to XML.
    Here is a sample program to convert internal table to XML
    *& Report ZTESTXML *
    Report ZPRUEBA_MML_13 *
    Export an internal table to XML document *
    NO BORRAR ESTE CODIGO *
    report zprueba_mml_13.
    PANTALLA SELECCION *
    parameters: gk_ruta type rlgrap-filename.
    PANTALLA SELECCION *
    TYPE TURNOS *
    types: begin of turnos,
    lu like t552a-tpr01,
    ma like t552a-tpr01,
    mi like t552a-tpr01,
    ju like t552a-tpr01,
    vi like t552a-tpr01,
    sa like t552a-tpr01,
    do like t552a-tpr01,
    end of turnos.
    TYPE TURNOS *
    TYPE SOCIO *
    types: begin of socio,
    numero like pernr-pernr,
    reposicion like pa0050-zauve,
    nombre like pa0002-vorna,
    turnos type turnos,
    end of socio.
    TYPE SOCIO *
    ESTRUCTURA ACCESOS *
    data: begin of accesos occurs 0,
    socio type socio,
    end of accesos.
    ESTRUCTURA ACCESOS *
    START OF SELECTION *
    start-of-selection.
    perform llena_accesos.
    perform descarga_xml.
    end-of-selection.
    END OF SELECTION *
    FORM LLENA_ACCESOS *
    form llena_accesos.
    refresh accesos.
    clear accesos.
    move: '45050' to accesos-socio-numero,
    'MOISES MORENO' to accesos-socio-nombre,
    '0' to accesos-socio-reposicion,
    'T1' to accesos-socio-turnos-lu,
    'T2' to accesos-socio-turnos-ma,
    'T3' to accesos-socio-turnos-mi,
    'T4' to accesos-socio-turnos-ju,
    'T5' to accesos-socio-turnos-vi,
    'T6' to accesos-socio-turnos-sa,
    'T7' to accesos-socio-turnos-do.
    append accesos.
    clear accesos.
    move: '45051' to accesos-socio-numero,
    'RUTH PEÑA' to accesos-socio-nombre,
    '0' to accesos-socio-reposicion,
    'T1' to accesos-socio-turnos-lu,
    'T2' to accesos-socio-turnos-ma,
    'T3' to accesos-socio-turnos-mi,
    'T4' to accesos-socio-turnos-ju,
    'T5' to accesos-socio-turnos-vi,
    'T6' to accesos-socio-turnos-sa,
    'T7' to accesos-socio-turnos-do.
    append accesos.
    endform. "LLENA_ACCESOS
    FORM LLENA_ACCESOS *
    FORM DESCARGA_XML *
    form descarga_xml.
    data: l_dom type ref to if_ixml_element,
    m_document type ref to if_ixml_document,
    g_ixml type ref to if_ixml,
    w_string type xstring,
    w_size type i,
    w_result type i,
    w_line type string,
    it_xml type dcxmllines,
    s_xml like line of it_xml,
    w_rc like sy-subrc.
    data: xml type dcxmllines.
    data: rc type sy-subrc,
    begin of xml_tab occurs 0,
    d like line of xml,
    end of xml_tab.
    class cl_ixml definition load.
    g_ixml = cl_ixml=>create( ).
    check not g_ixml is initial.
    m_document = g_ixml->create_document( ).
    check not m_document is initial.
    write: / 'Converting DATA TO DOM 1:'.
    call function 'SDIXML_DATA_TO_DOM'
    exporting
    name = 'ACCESOS'
    dataobject = accesos[]
    importing
    data_as_dom = l_dom
    changing
    document = m_document
    exceptions
    illegal_name = 1
    others = 2.
    if sy-subrc = 0.
    write 'Ok'.
    else.
    write: 'Err =',
    sy-subrc.
    endif.
    check not l_dom is initial.
    w_rc = m_document->append_child( new_child = l_dom ).
    if w_rc is initial.
    write 'Ok'.
    else.
    write: 'Err =',
    w_rc.
    endif.
    call function 'SDIXML_DOM_TO_XML'
    exporting
    document = m_document
    importing
    xml_as_string = w_string
    size = w_size
    tables
    xml_as_table = it_xml
    exceptions
    no_document = 1
    others = 2.
    if sy-subrc = 0.
    write 'Ok'.
    else.
    write: 'Err =',
    sy-subrc.
    endif.
    loop at it_xml into xml_tab-d.
    append xml_tab.
    endloop.
    call function 'WS_DOWNLOAD'
    exporting
    bin_filesize = w_size
    filename = gk_ruta
    filetype = 'BIN'
    tables
    data_tab = xml_tab
    exceptions
    others = 10.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    endform. "DESCARGA_XML
    FORM DESCARGA_XML *
    2. To convert XML to internal table.
    You can use these function modules
    TEXT_CONVERT_XML_TO_SAP or
    SDIXML_DOM_TO_XML Convert DOM (XML) into string of bytes that can be downloaded to PC or application server
    or
    SMUM_XML_PARSE (Parse XML docment into a table structure)
    You can also refer to these:
    SMUM_XML_CREATE (Create XML document from internal table)
    SMUM_XML_CREATE_X (Create XSTRING xml doc)
    Check this code, it converts an XML data into a string internal table.
    REPORT Z_XML_TO_TABLE.
    TYPE-POOLS: ixml.
    TYPES: BEGIN OF t_xml_line,
    data(256) TYPE x,
    END OF t_xml_line.
    DATA: l_ixml TYPE REF TO if_ixml,
    l_streamfactory TYPE REF TO if_ixml_stream_factory,
    l_parser TYPE REF TO if_ixml_parser,
    l_istream TYPE REF TO if_ixml_istream,
    l_document TYPE REF TO if_ixml_document,
    l_node TYPE REF TO if_ixml_node,
    l_xmldata TYPE string.
    DATA: l_elem TYPE REF TO if_ixml_element,
    l_root_node TYPE REF TO if_ixml_node,
    l_next_node TYPE REF TO if_ixml_node,
    l_name TYPE string,
    l_iterator TYPE REF TO if_ixml_node_iterator.
    DATA: l_xml_table TYPE TABLE OF t_xml_line,
    l_xml_line TYPE t_xml_line,
    l_xml_table_size TYPE i.
    DATA: l_filename TYPE string.
    PARAMETERS: pa_file TYPE char1024 DEFAULT 'c:     emporders_dtd.xml'.
    Validation of XML file: Only DTD included in xml document is supported
    PARAMETERS: pa_val TYPE char1 AS CHECKBOX.
    START-OF-SELECTION.
    Creating the main iXML factory
    l_ixml = cl_ixml=>create( ).
    Creating a stream factory
    l_streamfactory = l_ixml->create_stream_factory( ).
    PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.
    wrap the table containing the file into a stream
    l_istream = l_streamfactory->create_istream_itable( table =
    l_xml_table
    size =
    l_xml_table_size ).
    Creating a document
    l_document = l_ixml->create_document( ).
    Create a Parser
    l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
    istream = l_istream
    document = l_document ).
    Validate a document
    IF pa_val EQ 'X'.
    l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
    ENDIF.
    Parse the stream
    IF l_parser->parse( ) NE 0.
    IF l_parser->num_errors( ) NE 0.
    DATA: parseerror TYPE REF TO if_ixml_parse_error,
    str TYPE string,
    i TYPE i,
    count TYPE i,
    index TYPE i.
    count = l_parser->num_errors( ).
    WRITE: count, ' parse errors have occured:'.
    index = 0.
    WHILE index < count.
    parseerror = l_parser->get_error( index = index ).
    i = parseerror->get_line( ).
    WRITE: 'line: ', i.
    i = parseerror->get_column( ).
    WRITE: 'column: ', i.
    str = parseerror->get_reason( ).
    WRITE: str.
    index = index + 1.
    ENDWHILE.
    ENDIF.
    ENDIF.
    Process the document
    IF l_parser->is_dom_generating( ) EQ 'X'.
    PERFORM process_dom USING l_document.
    ENDIF.
    *& Form get_xml_table
    FORM get_xml_table CHANGING l_xml_table_size TYPE i
    l_xml_table TYPE STANDARD TABLE.
    Local variable declaration
    DATA: l_len TYPE i,
    l_len2 TYPE i,
    l_tab TYPE tsfixml,
    l_content TYPE string,
    l_str1 TYPE string,
    c_conv TYPE REF TO cl_abap_conv_in_ce,
    l_itab TYPE TABLE OF string.
    l_filename = pa_file.
    upload a file from the client's workstation
    CALL METHOD cl_gui_frontend_services=>gui_upload
    EXPORTING
    filename = l_filename
    filetype = 'BIN'
    IMPORTING
    filelength = l_xml_table_size
    CHANGING
    data_tab = l_xml_table
    EXCEPTIONS
    OTHERS = 19.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Writing the XML document to the screen
    CLEAR l_str1.
    LOOP AT l_xml_table INTO l_xml_line.
    c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data
    replacement = space ).
    c_conv->read( IMPORTING data = l_content len = l_len ).
    CONCATENATE l_str1 l_content INTO l_str1.
    ENDLOOP.
    l_str1 = l_str1+0(l_xml_table_size).
    SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
    WRITE: /.
    WRITE: /' XML File'.
    WRITE: /.
    LOOP AT l_itab INTO l_str1.
    REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab
    IN
    l_str1 WITH space.
    WRITE: / l_str1.
    ENDLOOP.
    WRITE: /.
    ENDFORM. "get_xml_table
    *& Form process_dom
    FORM process_dom USING document TYPE REF TO if_ixml_document.
    DATA: node TYPE REF TO if_ixml_node,
    iterator TYPE REF TO if_ixml_node_iterator,
    nodemap TYPE REF TO if_ixml_named_node_map,
    attr TYPE REF TO if_ixml_node,
    name TYPE string,
    prefix TYPE string,
    value TYPE string,
    indent TYPE i,
    count TYPE i,
    index TYPE i.
    node ?= document.
    CHECK NOT node IS INITIAL.
    ULINE.
    WRITE: /.
    WRITE: /' DOM-TREE'.
    WRITE: /.
    IF node IS INITIAL. EXIT. ENDIF.
    create a node iterator
    iterator = node->create_iterator( ).
    get current node
    node = iterator->get_next( ).
    loop over all nodes
    WHILE NOT node IS INITIAL.
    indent = node->get_height( ) * 2.
    indent = indent + 20.
    CASE node->get_type( ).
    WHEN if_ixml_node=>co_node_element.
    element node
    name = node->get_name( ).
    nodemap = node->get_attributes( ).
    WRITE: / 'ELEMENT :'.
    WRITE: AT indent name COLOR COL_POSITIVE INVERSE.
    IF NOT nodemap IS INITIAL.
    attributes
    count = nodemap->get_length( ).
    DO count TIMES.
    index = sy-index - 1.
    attr = nodemap->get_item( index ).
    name = attr->get_name( ).
    prefix = attr->get_namespace_prefix( ).
    value = attr->get_value( ).
    WRITE: / 'ATTRIBUTE:'.
    WRITE: AT indent name COLOR COL_HEADING INVERSE, '=',
    value COLOR COL_TOTAL INVERSE.
    ENDDO.
    ENDIF.
    WHEN if_ixml_node=>co_node_text OR
    if_ixml_node=>co_node_cdata_section.
    text node
    value = node->get_value( ).
    WRITE: / 'VALUE :'.
    WRITE: AT indent value COLOR COL_GROUP INVERSE.
    ENDCASE.
    advance to next node
    node = iterator->get_next( ).
    ENDWHILE.
    ENDFORM. "process_dom
    Regards
    Naresh

  • Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an er

    Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an error appears on the pages with video content?

    its in german:
    der Vorgang könnte nicht abgeschlossen werden.
    something like the process coundnt be completed

  • Validating generated XML file with DTD

    Hello all,
    my requirement is to test the XML file with its DTD.
    we are creating an XML file, before writing it on the application server , we need to test it with its DTD.
    i found one method set_validating in the interface if_ixml_parser , for validating XML file, but not getting an idea how to use it, like how to link the DTD to XML etc.
    if i try to use the above method am getting the following error:
    Unable to retrieve the external entity 'd:\dtdfile.dtd'.
    where 'd:\dtdfile.dtd' is the path of the DTD file included in the Doctype of the XML file.
    Please help me to solve this.
    Thx in advance.

    Hello,
    Did you find your answer ?
    I know how to validate an XML file an internal DTD, but not an external one... If you know, can you pelase advice ?
    If you didn't found yet, you need to use method get_reason() to get the description of the error.
    best regards,
    Gilles.

  • Help in creation of XML file for IDOC postings

    Hi All,
    Need help if anyone has knowledge/experience in creating XML files for IDOC processing.
    We need to design an input file (in XML format) for creation of IDOCu2019s for purchase Invoices through Interface.
    We have an existing input file, which is working correctly.  We are trying to modify this existing input file for a new Tax Code (Non-deductible inverse tax liability).   This tax code is working fine for manual postings.   But, through IDOC, tax postings are not correctly triggering.
    Could you please confirm if any one has experience on this, so that I can share more details for resolving.
    Thanks & Regards,
    Srini

    Hello,
    you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
    If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
    Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
    Regards Otto

  • Error while validating the xml file

    Hello All,
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    dbf.setValidating(false);
    DocumentBuilder db = dbf.newDocumentBuilder();
    doc = db.parse(new ByteArrayInputStream(xmlString.getBytes()));
    In this code even though I have set the validation of instance of DocumentBuilderFactory to false it still tries to validate the xml file using the dtd. How do I avoid the validation of the xml file by the dtd file ?.
    Is anybody having any suggestions for that ?.
    Help needed urgently.
    Thanks and regards,
    Sachin

    Thanks for the prompt help. Is there any other way instead of removing the DTD line ?. Because the xml is coming as a string and removing the dtd and then adding it will unneccesary hamper performance. Do you any other way in which even though I don't remove the line I get the output without removing the dtd line ?.
    thanks and regards,
    Sachin

  • Help with displaying my xml file in my jtext area

    Hi i am trying to read the data from my xml file and display it once the user clicks on the list all button.
    below is the source code for my program can someone please tell me some code to this.
    package tractorgui;
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.beans.XMLEncoder;
    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.FileReader;
    import java.beans.XMLDecoder;
    import javax.swing.*;
    import javax.swing.border.LineBorder;
    //import tractor.TextInputPrompt;
    import tractor.Tractor;
    * This code was edited or generated using CloudGarden's Jigloo
    * SWT/Swing GUI Builder, which is free for non-commercial
    * use. If Jigloo isbeing used commercially (ie, by a corporation,
    * company or business for any purpose whatever) then you
    * should purchase a license for each developer using Jigloo.
    * Please visit www.cloudgarden.com for details.
    * Use of Jigloo implies acceptance of these licensing terms.
    * A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
    * THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
    * LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
    public class NewSwingApp extends javax.swing.JFrame {
    //          //Set Look & Feel
    //          try {
    //               javax.swing.UIManager.setLookAndFeel("com.jgoodies.looks.plastic.Plastic3DLookAndFeel");
    //          } catch(Exception e) {
    //               e.printStackTrace();
              private static final long serialVersionUID = 1L;
         private JButton searchmanufacturer;
         private JButton jButton3;
         private JLabel companyname;
         private JPanel labelpannel;
         private JButton listall;
         private JPanel MenuButtons;
         private JButton archivetractor;
         private JTextArea outputscreen;
         private JButton exhibittractor;
         private JButton deletetractor;
         private JButton addtractor;
         private JButton listallexbited;
         private Tractor [ ] tractors;
         private JScrollPane jScrollPane2;
         private JScrollPane jScrollPane1;
    private int numberOfTractors;
         * Auto-generated main method to display this JFrame
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        NewSwingApp inst = new NewSwingApp();
                        inst.setLocationRelativeTo(null);
                        inst.setVisible(true);
         public NewSwingApp() {
              super();
              initGUI();
         private void initGUI() {
              try {
                   BorderLayout thisLayout = new BorderLayout();
                   getContentPane().setLayout(thisLayout);
                   this.setPreferredSize(new java.awt.Dimension(750, 700));
                        labelpannel = new JPanel();
                        BorderLayout labelpannelLayout = new BorderLayout();
                        getContentPane().add(labelpannel, BorderLayout.NORTH);
                        labelpannel.setLayout(labelpannelLayout);
                        jButton3 = new JButton();
                        getContentPane().add(getExitsystem(), BorderLayout.SOUTH);
                        jButton3.setText("Exit System");
                        jButton3.setPreferredSize(new java.awt.Dimension(609, 57));
                        jButton3.setBackground(new java.awt.Color(0,255,255));
                        jButton3.setForeground(new java.awt.Color(0,0,0));
                        jButton3.setFont(new java.awt.Font("Arial",1,24));
                        jButton3.addActionListener(new ActionListener() {
                             public void actionPerformed(ActionEvent evt) {
                                            System.exit(0);
                        MenuButtons = new JPanel();
                        getContentPane().add(MenuButtons, BorderLayout.WEST);
                        GridLayout MenuButtonsLayout = new GridLayout(7, 1);
                        MenuButtonsLayout.setColumns(1);
                        MenuButtonsLayout.setRows(7);
                        MenuButtonsLayout.setHgap(5);
                        MenuButtonsLayout.setVgap(5);
                        MenuButtons.setLayout(MenuButtonsLayout);
                        MenuButtons.setPreferredSize(new java.awt.Dimension(223, 267));
                             listall = new JButton();
                             MenuButtons.add(getListall());
                             listall.setText("List All");
                             listall.setBackground(new java.awt.Color(0,255,255));
                             listall.setForeground(new java.awt.Color(0,0,0));
                             listall.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
                             listall.setFont(new java.awt.Font("Arial",2,14));
                             listall.addActionListener(new ActionListener() {
                                  /* (non-Javadoc)
                                  * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
                                  public void actionPerformed(ActionEvent evt) {
                                       String XMLFile = "tractor.xml-courseworkasignment/src";
                                       //** Prints the contents of my XML file
                                       try {
                                       String s;
                                       BufferedReader in = new BufferedReader( new FileReader(XMLFile)
                                       outputscreen.setText("File successfully opened");
                                       try {
                                       while ( (s=in.readLine()) !=null)
                                       outputscreen.append(s);
                                       catch(Exception e) {
                                            outputscreen.append("Error reading line: " + e.getMessage());
                                       outputscreen.append("End of Document");
                                       catch(FileNotFoundException e) {
                                            outputscreen.append("Error in opening file: " + e.getMessage());
                             listallexbited = new JButton();
                             MenuButtons.add(getListallexbited());
                             listallexbited.setText("List All Tractors On Exhibition ");
                             listallexbited.setPreferredSize(new java.awt.Dimension(157, 57));
                             listallexbited.setBackground(new java.awt.Color(0,255,255));
                             listallexbited.setForeground(new java.awt.Color(64,0,0));
                             listallexbited.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       outputscreen.repaint();
                                       String XMLFile = "C:tractor.xml";
                                  // Print contents of XML file
                                  try {
                                  String s;
                                  BufferedReader in = new BufferedReader( new FileReader(XMLFile)
                                  outputscreen.setText("File successfully opened");
                                  try {
                                  while ( (s=in.readLine()) !=null)
                                  outputscreen.append(s);
                                  catch(Exception e) {
                                       outputscreen.append("Error reading line: " + e.getMessage());
                                  outputscreen.append("End of Document");
                                  catch(FileNotFoundException e) {
                                       outputscreen.append("Error in opening file: " + e.getMessage());
                             addtractor = new JButton();
                             MenuButtons.add(getAddtractor());
                             addtractor.setText("Add Tractor ");
                             addtractor.setBackground(new java.awt.Color(0,255,255));
                             addtractor.setForeground(new java.awt.Color(64,0,0));
                             addtractor.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       String manufacturer =JOptionPane.showInputDialog(getComponent(0), "Enter Manufacturer of Tractor");
                                       String shp = (JOptionPane.showInputDialog(getComponent(0), "Enter Horse Power of Tractor"));
                                       int hp =Integer.parseInt(shp);
                                       int sisRare =Integer.parseInt(JOptionPane.showInputDialog(getComponent(0), "Enter If the Tractor is rare (1=Yes/2=No)"));
                                       boolean isRare;
                                       if (sisRare== 1) {
                                       isRare =true;     
                                       }else
                                            isRare =false;
                                       String yom= JOptionPane.showInputDialog(getComponent(0), "Enter Year of Manufacture");
                                       int yearOfManufacture =Integer.parseInt(yom);
                                       String yis =JOptionPane.showInputDialog(getComponent(0), "Enter Number of years the Tractor has been in service");
                                       int yearsInService =Integer.parseInt(yis);
                                       String svalue = JOptionPane.showInputDialog(getComponent(0), "Enter Tractor's Value (?Pounds)");
                                       double value = Double.parseDouble(svalue);
                                       String lastWorkPlace =JOptionPane.showInputDialog(getComponent(0), "Enter Last Workplace");
                                            if(NewSwingApp.addTractor(new Tractor(manufacturer, hp, isRare, yearOfManufacture, yearsInService, value, lastWorkPlace, false)))
                                       JOptionPane.showMessageDialog((getComponent(0)), "Tractor Added");
                                       else
                                            JOptionPane.showMessageDialog(getComponent(0), "Could not Add Tractor");
                             deletetractor = new JButton();
                             MenuButtons.add(getDeletetractor());
                             deletetractor.setText("Delete Tractor ");
                             deletetractor.setBackground(new java.awt.Color(0,255,255));
                             deletetractor.setForeground(new java.awt.Color(64,0,0));
                             deletetractor.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       System.out.println("deletetractor.actionPerformed, event="+evt);
                                       JOptionPane.showInputDialog(getComponent(0), "Enter Tractor ID");
                             exhibittractor = new JButton();
                             MenuButtons.add(getExhibittractor());
                             exhibittractor.setText("Exhibit Tractor");
                             exhibittractor.setBackground(new java.awt.Color(0,255,255));
                             exhibittractor.setForeground(new java.awt.Color(0,0,0));
                             exhibittractor.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       System.out.println("exhibittractor.actionPerformed, event="+evt);
                                       JOptionPane.showInputDialog(getComponent(0), "Enter Tractor I.D");
                             archivetractor = new JButton();
                             MenuButtons.add(getArchivetractor());
                             archivetractor.setText("Archive Tractor");
                             archivetractor.setBackground(new java.awt.Color(0,255,255));
                             archivetractor.setForeground(new java.awt.Color(0,0,0));
                             archivetractor.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       System.out.println("archivetractor.actionPerformed, event="+evt);
                                       JOptionPane.showInputDialog(getComponent(0), "Enter Tractor I.D");
                             searchmanufacturer = new JButton();
                             MenuButtons.add(searchmanufacturer);
                             searchmanufacturer.setText("Search Manufacturer");
                             searchmanufacturer.setPreferredSize(new java.awt.Dimension(159, 21));
                             searchmanufacturer.setBackground(new java.awt.Color(0,255,255));
                             searchmanufacturer.setForeground(new java.awt.Color(64,0,0));
                             searchmanufacturer.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       System.out.println("searchmanufacturer.actionPerformed, event="+evt);
                                       JOptionPane.showInputDialog(getComponent(0), "Enter Manufacturer Name");
                        outputscreen = new JTextArea();
                        getContentPane().add(outputscreen, BorderLayout.CENTER);
                        outputscreen
                                  .setText("");
                        outputscreen.setBorder(BorderFactory.createTitledBorder(""));
                        outputscreen.setWrapStyleWord(true);
                        outputscreen.setEditable(false);
                        outputscreen.setEnabled(true);
                        outputscreen.setBackground(new java.awt.Color(255, 255, 255));
                        outputscreen.setForeground(new java.awt.Color(64, 0, 0));
                        companyname = new JLabel();
                        getContentPane().add(companyname, BorderLayout.NORTH);
                        companyname.setText(" Wolvesville Tractor Museum");
                        companyname.setPreferredSize(new java.awt.Dimension(609, 85));
                        companyname.setBackground(new java.awt.Color(255,255,0));
                        companyname.setFont(new java.awt.Font("Arial",1,28));
                        companyname.setForeground(new java.awt.Color(0,0,0));
                        companyname.setBorder(BorderFactory.createTitledBorder(""));
                        companyname.setOpaque(true);
                   this.setSize(750, 750);
              } catch (Exception e) {
                   e.printStackTrace();
         protected static boolean addTractor(Tractor tractor) {
                   if (tractor.getManufacturer()==null) return false; else
                   if (tractor.getHp()<50||tractor.getHp()>1100) return false; else
                   if (tractor.getIsRare()==false) return false; else
                   if (tractor.getYearsInService()<1||tractor.getYearsInService()>200) return false; else
                   if (tractor.getYearOfManufacture()<1800||tractor.getYearOfManufacture()>2008) return false; else
                   if (tractor.getValue()<100||tractor.getValue()>1500) return false; else
                   if (tractor.getLastWorkPlace()==null) return false; else
              return true;
         public JPanel getMenuButtons() {
              return MenuButtons;
         public JButton getListall() {
              return listall;
         public JLabel getCompanyname() {
              return companyname;
         public JButton getExitsystem() {
              return jButton3;
         public JButton getSearchmanufacturer() {
              return searchmanufacturer;
         public JButton getListallexbited() {
              return listallexbited;
         public JButton getAddtractor() {
              return addtractor;
         public JButton getDeletetractor() {
              return deletetractor;
         public JButton getExhibittractor() {
              return exhibittractor;
         public JButton getArchivetractor() {
              return archivetractor;
         public JTextArea getOutputscreenx() {
              return outputscreen;
    public void savetractors () {
         try {
              XMLEncoder encoder = new XMLEncoder(new FileOutputStream("tractor.xml"));
              encoder.writeObject(tractors);
              encoder.close();
         } catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    public void loadtractors () {
    try {
              XMLDecoder decoder = new XMLDecoder(new FileInputStream("tractor.xml"));
              tractors = (Tractor[]) decoder.readObject();
              decoder.close();
              for (int i=0; i<tractors.length;i++) {
                   if (tractors!=null)numberOfTractors =i;
              numberOfTractors++;
         } catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              tractors=new Tractor[25];
              numberOfTractors=0;

    here's an example:
    http://jdj.sys-con.com/read/37550.htm
    you need to have a class Tractor with all those properties and then use readObject.Somehow you need to tell the Encoder/Decoder what Tractor means..
    hope this helps!!

  • Help for loading of XML File into Oracle 10.2 DB.

    Hello People,
    I need help with below XML File, I need to get it loaded into Oracle 10.2.After brainstorming I could have figured out 2 best ways to do so :
    1.Through ctrl file and log file using SQL Loader
    2.Using XQuery and XML datatype.
    Tried with option 1 but dint succeed.Could you please help me out with a solution of the same ??
    <?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
    - <sta:entity-data xmlns:sta="http://www.vendavo.com/omi/StandardDeal" xsi:schemaLocation="http://www.vendavo.com/omi/StandardDeal StandardDeal-ImportAgreement 100912 - Updated.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <StandardDeal>
    <IsImported>true</IsImported>
    <ModelNReferenceID>00144105-009-000</ModelNReferenceID>
    <DealName>00144105-009-000CV Magellan Arteriocyte Inc 1164385</DealName>
    <AccountGroup>SoldTo</AccountGroup>
    <CustomerSalesData.VCustomer.VName>0001164385</CustomerSalesData.VCustomer.VName>
    <DistrictManager />
    <MultipleSalesReps>false</MultipleSalesReps>
    <OnBehalfOf>Brian Smith</OnBehalfOf>
    <FOBDestination>false</FOBDestination>
    <ConsultingGroupInformation />
    <AgreementStartDate>11/15/2007</AgreementStartDate>
    <AgreementEndDate>12/31/2013</AgreementEndDate>
    <BaselineReviewDate>01/10/2013</BaselineReviewDate>
    <BaseLineReviewPeriod>Quarterly</BaseLineReviewPeriod>
    <RequestedDate>10/12/2012</RequestedDate>
    <RFPDueDate>10/12/2012</RFPDueDate>
    <WaiveFreight>false</WaiveFreight>
    - <HeaderDiscountPercentageoffALP>
    - <VPercentage documentId="1">
    <Amount>0</Amount>
    </VPercentage>
    </HeaderDiscountPercentageoffALP>
    <CustomerCommitmentType>Others</CustomerCommitmentType>
    <ManualApproval>true</ManualApproval>
    <LegalReviewRequired>false</LegalReviewRequired>
    <TechnologyClause>false</TechnologyClause>
    <ComplianceTracking>false</ComplianceTracking>
    <ComplianceStatus>false</ComplianceStatus>
    <VState.VLabel>draft</VState.VLabel>
    <Eval>false</Eval>
    <CustomerAccepted>true</CustomerAccepted>
    <VNotes>CV Magellan Arteriocyte Inc 1164385</VNotes>
    - <VItems>
    - <StandardDealLineItem documentId="5235485">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235486">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235487">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235489">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235490">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235491">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235493">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235494">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235495">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235497">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309604</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235498">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309604</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235499">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309604</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235501">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309653</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235502">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309653</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235503">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309653</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235505">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>BOS350</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235506">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>BOS350</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235655">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>AMS300</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    </VItems>
    </StandardDeal>
    </sta:entity-data>
    Regards,
    Ekta

    1.Through ctrl file and log file using SQL LoaderPlease clarify :
    Do you want to load the entire file into a single column (XMLType or CLOB), or do you want to extract XML data and store it into different relational columns?
    Please also edit your first post and use tags to enclose the XML source, and do not copy/paste directly from your browser, use "view source" feature so that the content doesn't retain navigation characters (+/-).
    Edited by: odie_63 on 11 nov. 2012 13:20                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • DTD and XSD Validation for xml file

    hi kindly reply to this mail guru'ssss
    i am facing a problem in parising a xml file against dtd and xsd.
    i have the dtd which contains only enitities that can be present in the xml file and the xsd file for validation against elements and attribute.
    when DTD is present then it is throwing errors like the elements should be declared.
    when i take out the doctype line and validate against schema its throwing the error that particular entity is not found or declared.
      public Vector validateSchema(String SchemaUrl, String XmlDocumentUrl)  
          SAXParser parser =new SAXParser();
         try{
             //parser.setNamespaceAware (true);     
             //parser.s
             parser.setFeature("http://xml.org/sax/features/validation",true);
             parser.setFeature("http://apache.org/xml/features/validation/schema",true);
             parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
            // parser.setProperty("http://xml.org/sax/properties/declaration-handler", new DTDHandl());
             parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",SchemaUrl);
            // parser.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
            // System.out.println(parser.getDTDHandler());
            // UnparsedCache cache = new UnparsedCache();
           //  parser.setDTDHandler(cache);
             InputSource inputSource =new InputSource(new java.io.FileInputStream(new java.io.File(XmlDocumentUrl)));
           //  parser.setDTDHandler(new myDTDHandler());
             //parser.setEntityResolver(new CustomResolver());
         //  parser.setContentHandler(this);
             Validator handler=new Validator();
             parser.setErrorHandler(handler); 
             parser.parse(inputSource);
             if(handler.validationError==true)
               System.out.println("XML Document is not valid");
             else                  
               System.out.println("XML Document is valid");
             for(int i=0;i<ErrorLines.size();i++){
                 System.out.println(ErrorLines.elementAt(i));
       }catch(java.io.IOException ioe){  
         System.out.println("IOException"+ioe.getMessage());   
       }catch (SAXParseException e) {
         System.out.println("SAXParseException "+e.getMessage());   
      }catch (SAXException e) {
         System.out.println("SAXException"+e.getMessage());   
         return ErrorLines;
    what could be soln to this.

    Hi
    Venky_Ferrari.
    Based on your description, your case related to XMLXSD, SO I will move your thread to
    Data Platform Development > XML, System.Xml, MSXML and XmlLite      
    forum for better support.
    Best regards,
    Kristin
    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.

  • Help in loading the xml file using  AS 2.0

    Hi
    I try to load the Xml file in As file but i need do all the
    fetching details from the __LoadXmlFile file function
    but it's working fine can any one help me for this issue
    ~~Sk

    You can't! Well, at least Flex cannot do this. All Flex can
    do is send this data -- any data -- to the server and it's up to
    you how you want to append this data to a file on the server.
    You see, flex can't write to local files. If you looking for
    client side file manipulation, take a look at Flex's desktop
    brother call AIR!
    ATTA

  • Can someone help me export a XML file from my project file?

    hey guys,
    I need someone to help me if possible, i was working at school with final cut pro and forgot to export it in xml format and only saved it in final cut pro format... i need to work on this at home and i have a pc.. because there are no lab hours and its due tommorrow, if anyone can help that would be great, thanks!!
    Winston

    i believe it was final cut pro 5, and i have premiere pro cs4 and it says itll read any xml file from final cut pro.
    if anyone wants to help me... here is my fcp file
    http://rapidshare.com/files/208267210/abstract.fcp.html
    you can just email me back the xml file to [email protected]
    i really appreciate it if someone can help me out!!
    Message was edited by: WinstonWong

  • Import of XML file failed in portal using XML Content and Action

    Hi Friends,
    I am trying to import the simple XML file which is just creating the folder in the PORTAL_CONTENT using XML CONTENT AND ACTIONS  which is one way of creating the portal content. GO TO SYSTEM ADMINISTRATION > TRANSPORT > XML CONTENT AND ACTIONS > IMPORT.
    The reason for using this import tool is to upload the backend Business roles, which is not not working on our corporate portal. To test the import functionality I used the following xml file (I got this XML file by exporting the test folder in the portal using the same tool)
    <GenericCreator author="XML Creator" version="XML Automatic Creation" mode="clean,execute" report.level="success" createMode="1" default.locale="en" ignore="false">
    <Context name="portal_content" objectClass="com.sap.portal.pcd.gl.GlContext"></Context>     <Property name="parent1" value="pcd:portal_content"/>
         <Context name="com.dri.fldr.im" objectClass="com.sap.portal.pcd.gl.GlContext" create_as="0" parent="$">
              <Attributes>
                   <Attribute name="com.sap.portal.pcm.Description" type="text">
                        <AttributeValue value="" locale=""/>
                        <Attribute name="administration" type="string">
                             <AttributeValue value=""/>
                        </Attribute>
                        <Attribute name="Inheritance" type="string">
                             <AttributeValue value="NONFINAL"/>
                        </Attribute>
                   </Attribute>
                   <Attribute name="com.sap.portal.pcm.Title" type="text">
                        <AttributeValue value="test" locale=""/>
                        <AttributeValue value="test" locale="en"/>
                        <Attribute name="administration" type="string">
                             <AttributeValue value=""/>
                        </Attribute>
                        <Attribute name="mandatory" type="string">
                             <AttributeValue value="true"/>
                        </Attribute>
                        <Attribute name="Inheritance" type="string">
                             <AttributeValue value="NONFINAL"/>
                        </Attribute>
                   </Attribute>
              </Attributes>
         </Context>
    </GenericCreator>
    SDN BLOCKED THE XML The above XML file works fine in other portal in the landscape but not in corporate portal ( which is freshly build recently).Following error message is display when i am trying to upload the file
    Status Name Action Type Comment
    General Extracting root node E:\usr\sap\EPD\JC00\j2ee\cluster\server0\%USERPROFILE%\AppData\Local\Temp\tmp_masscontent4135391959047431276.xml Failed to extract root node
    General Extracting root node E:\usr\sap\EPD\JC00\j2ee\cluster\server0\%USERPROFILE%\AppData\Local\Temp\tmp_masscontent4135391959047431276.xml Parsing failed .
    Dont know is there a service/ configurations needs to be done to enable this feature?.
    Thanks
    Edited by: hammad on Sep 4, 2009 5:48 PM
    Edited by: hammad on Sep 4, 2009 5:49 PM

    The problem statement is not very clear.
    Try following this how to guide [https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/207a2141-c870-2910-e080-90c920b24f47&overridelayout=true|How-To]
    Best Regards,
    Prasanna K

  • How To check validity of XML File

    can any one tell me how to find whether an XML file is valid or not before beginning to parse the XML file
    Thanks in advance

    Xerces will do that for qou, if you activate validation (and, of course, a DTD is specified in the file). Read the documentation of Xerces at xml.apache.org

Maybe you are looking for

  • Nokia 5800 Tips, Review, FAQs and How-to tutorials

    Hi, guys. Here I worked out comprehensive Nokia tutorial with my lovely Nokia 5800. You will find all the most commonly asked questions for Nokia 5800. Review of My Nokia 5800 I got one 5800 last month and then I was deeply fascinated by this smart p

  • Absolute X Y position of a movie clip

    Hi Can anyone tell me how to access the x y position of a movieclip on stage. I place each thumbnail image into a movie clip then I place that movieclip into another movie clip. I am trying to make a tooltip pop up appear over the image so in my mous

  • CS4 Reduce Image Size w/out increased density

    I worked on a poster graphic in a larger 8-1/2 x 11 size. Now I have to reduce the size for basic logo size item of about 3" or so. Still fairly new to Illustrator and can't figure out how to reduce the size of the graphic without increasing the dens

  • SSD's which are OK for updating firmware on a Mac?

    I'm looking at a couple SSD's for a MacPro, any thoughts on which are OK with updating firmware on a Mac? Probably better to ask now before I need to.. Crucial M500 or Samsung 840 Pro?  I'm assuming that OWC's offerings are probably the best for Mac

  • ERS Settlement Error message Reg

    Dear All,                   Im doing the ERS settlement configuration first time i have configured the Messages and outputs but at the time of settlement run it is showing error message as "ERS Settlement No message was found for partner 305469 compa