LUMIERE created XML files to 'facilitate the migration of project in FCP.'

I recently purchased Lumiere so that I could work with material shot on the JVC GY-HD100U camera in FCP. I understand that FCP is due to for an update soon, but alas, I'm unable to wait. That being said, I have followed the various steps to create mov files from the compressed MP2 files generated through Lumiere. The supposed last step before beginning the edit in FCP is to decide whether or not to 'create FCP XML' or not.
1. What purpose does using XML files instead of the .mov files serve in FCP? It is an option in the import files drop down... What gives? For that matter why and what are xml files function here? Pretty Green, I know
2. Can I edit using the custom 24p Apple Intermediate Codec I was told to create usinf the mov files instead, and then online, or convert the timeline to full resolution just the same using the mov files?
3. If I am getting an error message when trying to import the XML files and am therefore unablr to do so... any ideas why? I had one file with 'acceptable errors'. The log read that there was a path problem with the audio files, which I was unable to fix. The other files would not import at all. Why?
4. What is the best way/codec for editing HDV - outputing te best image resolution without a Xserve raid or the like...
I know this probably reads like questions for a Lumiere forum, but I have tried and received no answers... Any insights appreciated, as my deadline is fast approaching.
-Thanks
Tom.

Maybe this will help from the Lumiere HD forum on their site (http://www.lumierehd.com/forums/showthread.php?t=576) :
720p EDITORIAL WORKFLOW USING JVC-GYHD100 AND FCP5.0
By Jon Farhat
CAPTURING AND EDITING
JVC GY-HD100 720p > LUMIERE HD > FINAL CUT PRO 5.0
Workflow Steps:
1. Launch Lumiere HD and begin with the CAPTURE/PRINT tab.
2. Enter your Logging information into the fields labeled REEL, DESC., SCENE and SHOT. The program with create a name for you based on this information and place it in the NAME field.
3. You can also check AUTOINCREMENT. Doing this will create a Name based on the Scene Name and will add a Shot number starting with 1. Each time you capture a new take, the shot number will increase as well as appear as an extension to the file name as indicated in the Name field.
4. Click on the DESTINATION button to choose a folder for your raw Transport streams. The files placed in this folder will have the naming convention, DESCSCENE1.m2t. Note that these files have the Audio and Video multiplexed together.
5. Use the toggle controls to line find your desired take and back up a while to add a little pre-roll. (Note: LHD does not do Batch Capturing so you have to click the CAPTURE and STOP CAPTURE button for each take.
6. Once you have captured all your takes and placed them in your working folder, click on the PROGRAM STREAM tab.
7. Click on the DESTINATION button in the PROGRAM STREAM VIDEO area. When the navigation window opens, click on NEW FOLDER and create a folder called “Video”. Select OK to choose your new folder.
8. Click on the DESTINATION button in the PROGRAM STREAM AUDIO area. When the navigation window opens, click on NEW FOLDER and create a folder called “Audio”. Select OK to choose your new folder.
9. Now click on the SELECT M2T FILE(S). IMPORTANT NOTE: If you have used the Autoincrement function, or have sequentially numbered files, no not select the folder housing your m2t’s but rather drag select across all your takes, starting from the lowest number to the highest. Then click OK.
10. Now you are read to split the raw m2t transport streams into a separate AIFF audio file, which will be placed in the Audio directory you created and and M2V video file which will be placed in the Video Directory. It is important that the audio files and video files are in these separate directories.
11. Choose the PRESETS pull-down menu In the REALTIME TIMELINE CODEC window. Select OTHER.
12. In the COMPRESSION TYPE Pulldown menu, select APPLE INTERMEDIATE CODEC.
13. Select the FRAMES PER SECOND pull-down menu and select 23.98.
14. Select the OTHER button in the COMPRESSOR > PRESET.
15. In the SIZE section, choose the SOURCE button. Note that you can also create a smaller dimension such as 720 x 406 (16:9 aspect ratio) since this is only used as a proxy in FCP to edit with. But if you have the memory and speed, working in the full 1280 x 720 is preferable. These files will not be rendered into your final master. After you edit with this proxy codec, you will use Media Manager to build a new timeline from the full size raw capture images. It is on this new full-size timeline that you will color correct your movie as well. (Discussed later in this document)
16. In the FINAL CUT AUTOMATION section, check the CREATE FCP XML box, and UN-CHECK the ANAMORPHIC box.
17. Click on the AUDIO FILES? Button and either double-click on the AUDIO directory you created which houses your AIFF’s and then click OPEN or simply select the directory once and then click OPEN.
18. Now click on the SOURCE button in the SOURCE/DESTINATION section. Open the Video folder which houses your de-multiplexed m2v video files.
19. Click on the DESTINATION button in the SOURCE/DESTINATION section and select NEW FOLDER and call this “project name”_REALTIMES. This is where your .mov files which are compressed with the AIC (Apple Intermediate Codec) will be placed.
20. You are now ready to hit the GO button. So, what are you waiting for, hit the GO button now!
21. When the Quicktime settings dialog opens, confirm your SETTINGS, FILTER and SIZE settings under the VIDEO sections. IMPORTANT NOTE: Make sure to select the SOUND > SETTINGS button and change the SAMPLE RATE to 48kHz, 16 bit, Stereo.
22. After Lumiere HD creates your file(s), another window will open asking you to input your XML FILE NAME. Do this then click OK.
23. When you view your “REALTIMES” directory, you will notice that you now have matching files to your demultiplexed Video files. For instance, if your file was named, DESCSCENE1.m2t then then Realtime file you use for editing will be named DESCSCENE1.mov. The XML file will also appear in this destination directory.
24. Open Final Cut Pro. Let’s start by creating a new EASY SETUP preset. (You will only have to do this one time since no Easy Setup setup exists for AIC 24p in FCP. From then on, you will start FCP and simply go to Easy Setup and select this Project Preset before you import your XML skipping to item 29 below) Select AUDIO VIDEO SETTINGS. Under the SEQUENCE PRESETS tab, select APPLE INTERMEDIATE CODEC 720p30 from the scrolling menu. Note that we are going to create a preset for 23.98 from this one by changing the frame rate. All other settings are the same as the 720p30 preset.
25. Select the DUPLICATE button. In the SEQUENCE PRESET EDITOR change the NAME to “Apple Intermediate Codec 720p24” Go ahead and also change 30 to 24 in the DESCRIPTION text box.
26. Confirm the following settings in the GENERAL tab.
a. FRAME SIZE: 1280 X 720
b. ASPECT RATIO: HDTV 720p (16:9)
c. Make sure the ANAMORPHIC (16:9) box is UNCHECKED.
d. PIXEL ASPECT RATIO: Square
e. FIELD DOMINANCE: None
f. EDITING TIMEBASE: 23.98
g. TIMECODE RATE: Same as Editing Timebase
h. QUICKTIME VIDEO SETTINGS: Apple Intermediate Codec.
i. QUALITY: Desired setting based on your system capacity.
j. AUDIO SETTINGS: 48kHz, 16-bit and a Default Config:
27. Click OK, then select this new Preset once you return to the AUDIO/VIDEO SETTINGS dialog and then click CREATE EASY SETUP.
28. When the EASY SETUP dialog opens up create type in the NAME field, “HDV-Apple Intermediate Codec 720p24” Enter a description and then click the CREATE button. Save in the CUSTOM SETTINGS pull-down menu.
29. Let’s start by closing all open Projects and stay in FCP. It’s always good to have a separate 720p project for all your JVC HD-100 sequences. Select EASY SETUP and select your new “HDV-Apple Intermediate Codec 720p24” Of course you will still be in the basic program now with no Projects or Sequences, but your system is now configured to import the XML and the sequence presets will match perfectly. (Keep in mind we did all this to circumvent a bug in FCP5.0)
30. Now go to FILE > IMPORT > XML and select the XML file you created in Lumiere HD. Select CHOOSE. When the IMPORT XML window opens, select the CREATE NEW PROJECT in the DESTINATION pull down menu. Make sure your DEFAULT is APPLE INTERMEDIATE CODEC 720p24. Make sure all buttons are checked, including OVERRIDE WITH SETTINGS FROM XML. You should be able to simply check this override box when importing into any open FCP session and create a new project with the XML settings once the bug is fixed in FCP.
31. This will create a new project named after your XML, and a directory of all your real-time clips called “project name”_REALTIMES.
32. You will also notice that the clip names do not end with .mov but rather end with .m2v. These names actually access the AIC compressed .mov files as this naming convention in the browser is simply a means to locate the uncompressed transport streams later with Media Manager once you have finished editing.
33. Now you can start editing. When you drag a clip to the Timeline, the corresponding AIFF audio file will also travel with it and be locked to the Video. However, until Timecode sync is offered in LHD, you may need to re-sync via the Clapper slate as mentioned above. However, unless you are using very long takes, the sync is within fractions of a frame and isn’t perceptible.
34. Edit away but avoid doing things like color correction or final rendering of effects until you are done with the need to work in real-time.
35. Once you are finished editing, move to the next section.
GOING ONLINE
FINAL CUT PRO 5.0 > LUMIERE HD > JVC GY-HD100 720p
CONNECTING ORIGINAL MEDIA: ONLINE OPTION #1
1. Select sequence in your browser.
2. Choose FILE > MEDIA MANAGER.
3. Media Manager Settings:
a. Media: CREATE OFFLINE
b. Set Sequence to CUSTOM
c. 1280 X 720
d. Pixel Aspect Ratio: SQUARE
e. Anamorphic Box: UNCHECKED
f. Editing Timebase: 23.98
g. Timecode rate: SAME
h. Compressor: NONE or HDV720p30
i. Audio: 48kHz, 16 bit, stereo default
j. Project name: ONLINE 720p24
k. Go to ONLINE 720p24 tab in the browser. Double click on the sequence. (Note: the is currently an issue in LHD’s XML function in that it will not transfer the REEL NAME to the clip. You will have to select all your clips to add the reel name, otherwise the the clips will not be made “Offline”. You can always right-click on the clip an select the MAKE OFFLINE function. )
l. Save project name: ONLINE 720p24
m. Go to ONLINE 720p24 tab in the browser and double-click on the sequence. (clips should be offline if the reel name is added in the brower.)
n. Select all the clips in the browser in the ONLINE 720p24 sequence and choose RECONNECT MEDIA.
o. Point to the original digital negative clips that you demuxed in LHD. (ignore mismatch warning and all your clips should reconnect.
IMPORTANT NOTE: The above routine for going online worked will with FCP4 but now there exists a BUG in FCP5 in the Media Manager function.
BUG REPORT: When doing an offline and choosing "based on clip names" (which are NAME.MOV), Media manage will add .MOV to the source name resulting in NAME.MOV.MOV.
This is happening in FCP5. It never happened in FCP4. We've used this freature extensively before for online/offline editing workflow. The advantage of using clip name vs. file name in the browser is that you can edit a proxy and always keep track of its online version by naming the clip the same name as the online version. Now that it ads .MOV to the name, it's unusable - or you have to reconnect by hand rather than using hte "connect the clips based on relative paths" option.
CONNECTING ORIGINAL MEDIA: ONLINE OPTION #2
STICKING WITH APPLE INTERMEDIAT CODEC.
For now, it is possible to stick with the Apple Intermediate codec when going online and back through LHD to the JVC HD-100. If so, choose NONE compression when exporting a Quicktime from FCP for use in LHD. However, the best case will be to use the above option #1 when Apple gets around to fixing their bug with Media Manager.
Otherwise, you will have to reconnect all your clips to the original m2v’s manually to avoid the codec altogether.
About the Apple Intermediate Codec
The Apple Intermediate Codec is a high-quality video codec that Apple developed for use as an alternative to native MPEG-2 HDV editing in an HDV workflow. Instead of editing the MPEG-2 HDV data directly, you can capture video from the tape source and then transcode it with the Apple Intermediate Codec to optimize the video data for playback performance and quality.
Working with the Apple Intermediate Codec is less processor-intensive than working with native HDV. Unlike MPEG-2 HDV, the Apple Intermediate Codec does not use temporal compression, so every frame can be decoded and displayed immediately without first decoding other frames. The drawback of this codec is that it requires three to four times as much bandwidth and hard drive storage space as MPEG-2 HDV.
Data rates for the Apple Intermediate Codec are variable; the data rates and storage needed may vary slightly, depending on the complexity of your footage. Images with a lot of detail have a higher data rate, while images with less detail have a lower data rate.
Format and Data rate
MPEG-2 HDV 720p30……….2.5 MB/sec. (equivalent to 9 GB/hr.)
MPEG-2 HDV 1080i60/50……….3.3 MB/sec. (equivalent to 12 GB/hr.)
Apple Intermediate Codec HDV 720p30………. approximately 7 MB/sec. (equivalent to approximately 25 GB/hr.)
Apple Intermediate Codec HDV 1080i50………. approximately 12 MB/sec. (equivalent to approximately 42 GB/hr.)
Apple Intermediate Codec HDV 1080i60………. approximately 14 MB/sec. (equivalent to approximately 49 GB/hr.)
Frame Aspect and Dimensions
MPEG-2 HDV and Apple Intermediate Codec feature a 16:9 widescreen aspect ratio for all resolutions.
The 1080i format features 1080 lines (1440 pixels per line), interlaced, using non-square pixels to display a screen ratio of 16:9 (equivalent to 1920 x 1080). The 720p format features 720 lines (equivalent to 1280 x 720) with a progressive scan.
Color Recording Method
Both MPEG-2 HDV and Apple Intermediate Codec HDV record a 4:2:0 component (Y´CBCR) digital video signal. Each sample (pixel) has a resolution of 8 bits.
Note: This article was based on information from the HD and Broadcast Formats document (in Final Cut Pro 5, choose HD and Broadcast Formats from the Help menu).
EXPORTING QUICKTIME TO LUMIERE HD > JVC GY-HD100
1. Use the following settings when feeding a Quicktime file back to Lumiere HD if you plan on generating a 720p24 transport stream to the JVC GY-HD100 or BR-HD50.
2. Quicktime settings:
a. Resolution: 1280x720
b. Frame Rate: 23.976 (23.98)
c. Progressive
d. Audio on whole track.
e. Audio Settings: 48kHz, 16bit, stereo
f. Square Pixel.
3. Open LHD and select the TRANSPORT STREAM tab.
4. Select JVC 720p/24 (GY-HD100, BR-HD50) in the pulldown menu.
5. Select the HDMASTER tab and then choose your .MOV file.
6. Select the DESTINATION BUTTON under the TRANSPORT STREAM section.
7. Now return to the CAPTURE/PRINT tab in LHD and select the print to tape button. Choose your new edited TS (transport stream) file and Click OPEN and it will print to tape automatically.
Special Thanks to the following for their input to this document:
Frederic Haubrich
Neil Boone
Apple Docs: Article number 301599
Jerry

Similar Messages

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • Creating XML files with the DME

    Hi All,
    I'm working on an integration project between my company and HSBC, they are requesting that we supply our AP payment files for foreign currency in XML format.
    I have some limited experience with the DME and know it can create XML files, however, the elements available for XML files are different to standard flat files. Also it doesnt seem like I can create files with multiple levels? e.g.
    <InitgPty>
    ......... <Id>
    ............... <OrgId>
    ...................... <BkPtyId>ABC00103003</BkPtyId>
    .............. </OrgId>
    ........ </Id>
    </InitgPty>
    Does anyone have any documentation or experience with creating XML files with DME?
    thanks
    Phil.

    Hi,
    Please ask any Implementation team in ABAB or Report painter team with your friends,
    Thanks and REgards
    N.Soma Sundaram

  • Creating XML-files in ABAP with format ISO-8859-1 after the use of unicode

    Hello,
    We have a problem with XML-files created in z_abap-programma.
    Before the use of unicode the XML-file was of the format: ISO-8859-1.
    After the introducting of unicode the format is UTF-16.
    In the abap-program we are using:
            CALL TRANSFORMATION xls-program
             SOURCE t_vbak = it_vbak
             RESULT XML xmlstring.
            CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
              EXPORTING
                text     = xmlstring
              IMPORTING
                buffer   = lx_xml_as_string.
            CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
              EXPORTING
                buffer        = lx_xml_as_string
              IMPORTING
                output_length = li_xml_size
              TABLES
                binary_tab    = ltb_xml_table.
            CALL METHOD cl_gui_frontend_services=>gui_download
              EXPORTING
                bin_filesize = li_xml_size
                filename     = lc_filename
                filetype     = 'BIN'
              CHANGING
                data_tab     = ltb_xml_table
              EXCEPTIONS
                OTHERS       = 24.
    Is it prossible to create the XML-file with the format ISO-8859-1 after the unicode, please can you explane how to solve this problem.
    Regards,
    Theo Pijlman

    hi theo,
    did you read my thread i wrote some days before ? have a look in my sample coding find   " if_ixml_encoding ..... " there you can set the encoding of character .
    greetz
    tony
    thread:
    Re: abap to xml
    SAP Explanation for Interface if_ixml_encoding :
    http://help.sap.com/saphelp_nw04/helpdata/de/bb/5766a6dca511d4990b00508b6b8b11/content.htm

  • Can not create XML file from MS Access 2003

    Hi,
    I am getting error as "Error loading in DLL" when I use msaccess_exporter to create XML file for migrations usind Access 2003 DB. Does anyone know about this? If yes, could you please let me know how to resolve it?
    Thanks,
    Kartik

    Hi Daniel,
    I believe you are seeing the message "Table'_OracletblDatabase' already exists" because you are attempting to export an MDB file that you previously attempted to export, but that initial export process may not have run to completion. I recommend opening your .MDB file, and delete any "_Oracletbl..." table objects that exist under the list of Table objects. Close the MDB file and carry out the export process again. You should now be able to use the 2000 mde file.
    I hope this helps.
    Regards,
    Hilary

  • How to create xml file through SDK?

    Hi,
    I need help in creating the xml file using SAP B1 SDK?
    i want to create xml file which is in tally xml format.
    Warm Ragards,
    Mahendra

    Hi Mahendra,
    This is an example to save a form as XML :
    try
                    System.Xml.XmlDocument oXmlDoc = null;
                    string sXmlString = null;
                    oXmlDoc = new System.Xml.XmlDocument();
                    // get the form as an XML string
                    sXmlString = Form.GetAsXML();
                    // load the form's XML string to the
                    // XML document object
                    oXmlDoc.LoadXml(sXmlString);
                    string sPath = null;
                    sPath = System.IO.Directory.GetParent(System.Windows.Forms.Application.StartupPath).ToString();
                    sPath = System.IO.Directory.GetParent(sPath).ToString();
                    // save the XML Document
                    oXmlDoc.Save((sPath + @"\Form" + sType + ".xml"));
                    //oXmlDoc.Save(DIRECTORY_TEMPLATE + "Form" + sType + ".xml");
                catch (Exception ex)
                    SBO_Application.MessageBox("ERROR in 'SaveAsXML()' : " + ex.Message, 1, "Ok", "", "");
    And an example to navigate in the XML file :
    System.Xml.XmlDocument xxml;
                                    System.Xml.XmlNode node;
                                    System.Xml.XmlNodeList nodes;
                                    xxml = new System.Xml.XmlDocument();
                                    xxml.LoadXml(oRecAU.GetAsXML());
                                    nodes = xxml.SelectNodes("BOM/BO/IFC_AU/row");
                                    foreach (System.Xml.XmlNode node in nodes)
                                        oColumn.ValidValues.Add(node.SelectSingleNode("Code").InnerText, node.SelectSingleNode("Name").InnerText);
    I hope it's help you.
    Regards
    Michael

  • Creating XML file Using Call Transformation

    Hello Friends,
          I have searched before posting thread, couldnt find anything.
          I am creating an XML file using Call Transformation. My internal table has 3 date fields and some other fields.  For some records I dont have values for the date fields. In that case my XML file is giving the date value as 0000-00-00 since I declared it as Date type.  This value 0000-00-00  is not accepted by the middle ware as the valid date.  I can not change it as String type as per the suggestion.
    In that case I am advised to skip printing the date field tag if it doesnt have value.
         Is there any way to skip the date field if it is empty. Any Suggestions please ?.
    Thanks
    Lakshmi.

    Hi,
    I had exactly the same problem before. When you call a transformation there is an option called initial_components. According to SAP if you use initial_components = 'SUPRESS' the empty fields should not being generated on the XML.
    Now, this didn't work for me and I have seen some people with the same problem. Here is how I solved this (maybe not the best way but it worked):
    First: My fields are all CHAR in my table
    Second: In the transformation, you can use conditional transformation to not display a tag if field is empty, here a piece of my transformation (I am using simple transformations):
       <tt:root name="ROOT"/>
         <tt:cond s-check="not-initial(ref('ROOT.L1_NM')) or not-initial(ref('ROOT.L2_NM'))">
              <TRNMTR_NM>
                <tt:cond s-check="not-initial(ref('ROOT.L1_NM'))">
                  <l1_nm>
                    <tt:value ref="ROOT.L1_NM"/>
                  </l1_nm>
                </tt:cond>
                <tt:cond s-check="not-initial(ref('ROOT.L2_NM'))">
                  <l2_nm>
                    <tt:value ref="ROOT.L2_NM"/>
                  </l2_nm>
                </tt:cond>
              </TRNMTR_NM>
            </tt:cond>
    As you can see, I first check if the fields have values.
    Hope it helps
    Edited by: carlosrv on Oct 4, 2011 8:22 PM

  • Creating XML File Using xmldom Package

    How can I create an XML file from scratch using the PL/SQL xmldom package?
    I want to create an XML file using the xmldom package instead of building the individual tags as strings of VARCHAR2 character data. There is quite a bit of documentation regarding manipulating input XML files using DOM -- but not for creating XML files from scratch given known "tagnames" (<lastName>) and retrieved database "values" ("Smith").
    <person>
    <lastName>Smith</lastName>
    </person>
    Is there any documentation that you can recommend?
    Thank you.

    Here is an example.
    The create_file procedure creates the file.
    The other procedures are generic procs that can be used with any XML.
    PROCEDURE create_file_with_root(po_xmldoc OUT xmldom.DOMDocument,
    pi_root_tag IN VARCHAR2,
                                            po_root_element OUT xmldom.domelement,
                                            po_root_node OUT xmldom.domnode,
                                            pi_doctype_url IN VARCHAR2) IS
    xmldoc xmldom.DOMDocument;
    root xmldom.domnode;
    root_node xmldom.domnode;
    root_element xmldom.domelement;
    record_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    BEGIN
    xmldoc := xmldom.newDOMDocument;
    xmldom.setVersion(xmldoc, '1.0');
    xmldom.setDoctype(xmldoc, pi_root_tag, pi_doctype_url,'');
    -- Create the root --
    root := xmldom.makeNode(xmldoc);
    -- Create the root element in the file --
    create_element_and_append(xmldoc, pi_root_tag, root, root_element, root_node);
    po_xmldoc := xmldoc;
    po_root_node := root_node;
    po_root_element := root_element;
    END create_file_with_root;
    PROCEDURE create_element_and_append(pi_xmldoc IN OUT xmldom.DOMDocument,
    pi_element_name IN VARCHAR2,
                                            pi_parent_node IN xmldom.domnode,
                                            po_new_element OUT xmldom.domelement,
                                            po_new_node OUT xmldom.domnode) IS
    element xmldom.domelement;
    child_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    BEGIN
    element := xmldom.createElement(pi_xmldoc, pi_element_name);
    child_node := xmldom.makeNode(element);
    -- Append the new node to the parent --
    newelenode := xmldom.appendchild(pi_parent_node, child_node);
    po_new_node := child_node;
    po_new_element := element;
    END create_element_and_append;
    FUNCTION create_text_element(pio_xmldoc IN OUT xmldom.DOMDocument, pi_element_name IN VARCHAR2,
    pi_element_data IN VARCHAR2, pi_parent_node IN xmldom.domnode) RETURN xmldom.domnode IS
    parent_node xmldom.domnode;                                   
    child_node xmldom.domnode;
    child_element xmldom.domelement;
    newelenode xmldom.DOMNode;
    textele xmldom.DOMText;
    compnode xmldom.DOMNode;
    BEGIN
    create_element_and_append(pio_xmldoc, pi_element_name, pi_parent_node, child_element, child_node);
    parent_node := child_node;
    -- Create a text node --
    textele := xmldom.createTextNode(pio_xmldoc, pi_element_data);
    child_node := xmldom.makeNode(textele);
    -- Link the text node to the new node --
    compnode := xmldom.appendChild(parent_node, child_node);
    RETURN newelenode;
    END create_text_element;
    PROCEDURE create_file IS
    xmldoc xmldom.DOMDocument;
    root_node xmldom.domnode;
    xml_doctype xmldom.DOMDocumentType;
    root_element xmldom.domelement;
    record_element xmldom.domelement;
    record_node xmldom.domnode;
    parent_node xmldom.domnode;
    child_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    textele xmldom.DOMText;
    compnode xmldom.DOMNode;
    BEGIN
    xmldoc := xmldom.newDOMDocument;
    xmldom.setVersion(xmldoc, '1.0');
    create_file_with_root(xmldoc, 'root', root_element, root_node, 'test.dtd');
    xmldom.setAttribute(root_element, 'interface_type', 'EXCHANGE_RATES');
    -- Create the record element in the file --
    create_element_and_append(xmldoc, 'record', root_node, record_element, record_node);
    parent_node := create_text_element(xmldoc, 'title', 'Mr', record_node);
    parent_node := create_text_element(xmldoc, 'name', 'Joe', record_node);
    parent_node := create_text_element(xmldoc,'surname', 'Blogs', record_node);
    -- Create the record element in the file --
    create_element_and_append(xmldoc, 'record', root_node, record_element, record_node);
    parent_node := create_text_element(xmldoc, 'title', 'Mrs', record_node);
    parent_node := create_text_element(xmldoc, 'name', 'A', record_node);
    parent_node := create_text_element(xmldoc, 'surname', 'B', record_node);
    -- write the newly created dom document into the buffer assuming it is less than 32K
    xmldom.writeTofile(xmldoc, 'c:\laiki\willow_data\test.xml');
    EXCEPTION
    WHEN xmldom.INDEX_SIZE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Index Size error');
    WHEN xmldom.DOMSTRING_SIZE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'String Size error');
    WHEN xmldom.HIERARCHY_REQUEST_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Hierarchy request error');
    WHEN xmldom.WRONG_DOCUMENT_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Wrong doc error');
    WHEN xmldom.INVALID_CHARACTER_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Invalid Char error');
    WHEN xmldom.NO_DATA_ALLOWED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Nod data allowed error');
    WHEN xmldom.NO_MODIFICATION_ALLOWED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'No mod allowed error');
    WHEN xmldom.NOT_FOUND_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Not found error');
    WHEN xmldom.NOT_SUPPORTED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Not supported error');
    WHEN xmldom.INUSE_ATTRIBUTE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'In use attr error');
    WHEN OTHERS THEN
    dbms_output.put_line('exception occured' || SQLCODE || SUBSTR(SQLERRM, 1, 100));
    END create_file;

  • Create XML File

    I have inherited a Java application that I need to modify. This application has the option to create an XML file. In a view we have the attributes listed of each column and set the XML_ELEMENT property to set the tag name. This all works great.
    I have been tasked with modifying the export of information into the XML file to set the same information into different tag names.
    The Database information would look like this:
    WIRENBR 12345
    FROMITEM LeftEngine
    FROMPIN A
    TOITEM RightEngine
    TOPIN B
    The XML currently looks like this:
    <hooktbl>
    <hkrow>
    <from>LeftEngine</from>
    <frompin>A</frompin>
    <wirenbr>12345</wirenbr>
    <toitem>RightEngine</toitem>
    <topin>B</topin>
    </hkrow>
    </hooktbl>
    I need to the XML to look like this:
    <hooktbl>
    <hkrow>
    <from>LeftEngine</from>
    <frompin>A</frompin>
    <wirenbr>12345</wirenbr>
    <toitem>RightEngine</toitem>
    <topin>B</topin>
    </hkrow>
    <hkrow>
    <from>RightEngine</from>
    <frompin>B</frompin>
    <wirenbr>12345</wirenbr>
    <toitem>LeftEngine</toitem>
    <topin>A</topin>
    </hkrow>
    </hooktbl>
    I'm very new to Java and J Developer so if anyone can point me in the right direction I would greatly appreciate it.
    Thank you

    User,
    It's not at all clear how you are generating the XML file. If you are using Oracle XSQL (i.e., generating the XML via a SQL query), you'd probably be better off asking in the DB or XML forums. If not, please explain how the file is being generated.
    John

  • Create XML file by using servlet

    Hi, Is there anyone who sucessfully create XML file by taking parameters from a web form? If so, hope you could share the code with me. I moved the code from the example to servlet. it keeps returning null pointer exception on the root node.
    java.lang.NullPointerException: at oracle.xml.classgen.CGDocument.(CGDocument.java:62)
    null

    Hi everybody,<br /><br />the code works good now. so it should be available for everybody who needs it:<br /><br />---------------- my code --------------------------------------<br /><br />var container = "";<br /><br />container = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";<br />container = container + "<all>\n";<br />container = container + "<header>\n";<br />container = container + "<author>author name</author>\n";<br />container = container + "<authorMail>[email protected]</authorMail>\n";<br />container = container + "</header>\n";<br />container = container + "<body>\n";<br />container = container + "<name>" + value + "</name>\n";<br />container = container + "<adresse>" + value + "</adresse>\n";<br />container = container + "<ort>" + value + "</ort>\n";<br />container = container + "<staat>" + value + "</staat>\n";<br />container = container + "<plz>" + value + "</plz>\n";<br />container = container + "<land>" + value + "</land>\n";<br />container = container + "</body>\n";<br />container = container + "</all>\n";<br /><br />var myDoc = event.target;<br />myDoc.createDataObject("export.xml", container);<br />myDoc.exportDataObject("export.xml");<br /><br />app.mailMsg(false, "mail-address1; mail-address2", "", "",<br />"mail subject", "mail body");<br /><br />---------------- end of my code ------------------------------- <br /><br />now i'm looking for a solution to automatically attach the file to this mail and directls sent it without to call up the mail client.<br />if anybody has got an hint, you're welcome ;-)

  • Create XML file on application server (unix directory) from internal table

    Hallo everybody,
    I have got the following problem:
    I am working with <u><b>release 4.6C</b></u> and have got to create XML files from HR master data and organizational data respectively.
    This takes place in 3 steps:
    1.     Collect the data in an internal table
    2.     Convert the data to XML format using the function module 'SAP_CONVERT_TO_XML_FORMAT'
    3.     Download the data
    If I download the converted data, which are in an internal table, to the presentation server via the function module ‘WS_DOWNLOAD’ and open it with the Internet Explorer, everything is ok.
    If I download the converted data to the application server, i.e. into a unix directory via
    ‘open dataset’, ‘loop at internal table, ‘transfer working area to file’, ‘close dataset’
    and then try to open it, this is not possible, because after the last tag some unreadable characters, e.g. a square, appear that aren’t supposed to be there. That’s what my colleagues told me, for I haven’t got access to the server.
    I have no idea where these characters come from and how I can get rid of them. I guess that either I have to modify (how?) the table with the converted data before the download or I have to use another way to convert the data. For the second way I would probably have to work with an XML class or an XML interface. Unfortunately I’I am not an expert in working with classes so sample coding would have to be rather detailed.
    Here’s some more information about how I work with the conversion function module:
      call function 'SAP_CONVERT_TO_XML_FORMAT'
           exporting
                i_field_seperator    = lv_field_seperator
               i_line_header        = lv_line_header
               i_filename           = lv_xml_file
               i_appl_keep          = ' '
                i_xml_doc_name       = lv_xml_doc_name
           importing
                pe_bin_filesize      = lv_result
           tables
                i_tab_sap_data       = gt_data
           changing
                i_tab_converted_data = lt_tab_converted_data
           exceptions
                conversion_failed    = 1
                others               = 2.
    lv_field_seperator = ‘X’.
    lv_xml_doc_name = ‘Personalstammdaten Publikation’
    lv_result: type i
    gt_data: fields: PERNR, PERSG, PERSK etc.
      types:
      begin of truxs_xml_line,
        data(256) type x,
      end of truxs_xml_line.
      types:
      truxs_xml_table type table of truxs_xml_line.
    data:
    lv_tab_converted_data type truxs_xml_line,
    lt_tab_converted_data type truxs_xml_table
    open dataset lv_xml_file for output in binary mode.
    loop at lt_tab_converted_data into lv_tab_converted_data.
      transfer lv_tab_converted_data to lv_xml_file.
    endloop.
    close dataset lv_xml_file
    lv_xml_file: /usr/users/.../.../Personendaten_2004-11-02.xml
    Hope the information is detailed enough! Otherwise let me know. Thank you in advance.
    Message was edited by: Johannes Schwehm

    Hi Raja,
    tried the "TEXT" mode, but that didn't help.
    There are still characters after the last tag, that are not supposed to be there including a date that is not
    the creation date of the file.
    Thank you for your help.
    Regards
    Johannes

  • Create xml file with values from context

    Hi experts!
    I am trying to implement a WD application that will have some input fields, the value of those input fields will be used to create an xml file with a certain format and then sent to a certain application.
    Apart from this i want to read an xml file back from the application and then fill some other context nodes with values from the xml file.
    Is there any standard used code to do this??
    If not how can i do this???
    Thanx in advance!!!
    P.S. Points will be rewarded to all usefull answers.
    Edited by: Armin Reichert on Jun 30, 2008 6:12 PM
    Please stop this P.S. nonsense!

    Hi,
    you need to create three util class for that:-
    XMLHandler
    XMLParser
    XMLBuilder
    for example in my XML two tag item will be there e.g. Title and Organizer,and from ur WebDynpro view you need to pass value for the XML tag.
    And u need to call buildXML()function of builder class to generate XML, in that i have passed bean object to get the values of tags. you need to set the value in bean from the view ui context.
    Code for XMLBuilder:-
    Created on Apr 4, 2006
    Author-Anish
    This class is to created for having function for to build XML
    and to get EncodedXML
      and to get formated date
    package com.idb.events.util;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import com.idb.events.Event;
    public class XMLBuilder {
    This attribute represents the XML version
         private static final double VERSION_NUMBER = 1.0;
    This attribute represents the encoding
         private static final String ENCODING_TYPE = "UTF-16";
         /*Begin of Function to buildXML
    return: String
    input: Event
         public String buildXML(Event event) {
              StringBuffer xmlBuilder = new StringBuffer("<?xml version=\"");
              xmlBuilder.append(VERSION_NUMBER);
              xmlBuilder.append("\" encoding=\"");
              xmlBuilder.append(ENCODING_TYPE);
              xmlBuilder.append("\" ?>");
              xmlBuilder.append("<event>");
              xmlBuilder.append(getEncodedXML(event.getTitle(), "title"));
              xmlBuilder.append(getEncodedXML(event.getOrganizer(), "organizer"));
              xmlBuilder.append("</event>");
              return xmlBuilder.toString();
         /End of Function to buildXML/
         /*Begin of Function to get EncodedXML
    return: String
    input: String,String
         public String getEncodedXML(String xmlString, String tag) {
              StringBuffer begin = new StringBuffer("");
              if ((tag != null) || (!tag.equalsIgnoreCase("null"))) {
                   begin.append("<").append(tag).append(">");
                   begin.append("<![CDATA[");
                   begin.append(xmlString).append("]]>").append("</").append(
                        tag).append(
                        ">");
              return begin.toString();
         /End of Function to get EncodedXML/
         /*Begin of Function to get formated date
    return: String
    input: Date
         private final String formatDate(Date inputDateStr) {
              String date;
              try {
                   SimpleDateFormat simpleDateFormat =
                        new SimpleDateFormat("yyyy-MM-dd");
                   date = simpleDateFormat.format(inputDateStr);
              } catch (Exception e) {
                   return "";
              return date;
         /End of Function to get formated date/
    Code for XMLParser:-
    Created on Apr 12, 2006
    Author-Anish
    This is a parser class
    package com.idb.events.util;
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.XMLReader;
    import com.idb.events.Event;
    import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;
    public class XMLParser {
    Enables namespace functionality in parser
         private final boolean isNameSpaceAware = true;
    Enables validation in parser
         private final boolean isValidating = true;
    The SAX parser used to parse the xml
         private SAXParser parser;
    The XML reader used by the SAX parser
         private XMLReader reader;
    This method creates the parser to parse the user details xml.
         private void createParser()
              throws SAXException, ParserConfigurationException {
              // Create a JAXP SAXParserFactory and configure it
              SAXParserFactory saxFactory = SAXParserFactory.newInstance();
              saxFactory.setNamespaceAware(isNameSpaceAware);
              saxFactory.setValidating(isValidating);
              // Create a JAXP SAXParser
              parser = saxFactory.newSAXParser();
              // Get the encapsulated SAX XMLReader
              reader = parser.getXMLReader();
              // Set the ErrorHandler
    This method is used to collect the user details.
         public Event getEvent(
              String newsXML,
              XMLHandler xmlHandler,
              IWDMessageManager mgr)
              throws SAXException, ParserConfigurationException, IOException {
              //create the parser, if not already done
              if (parser == null) {
                   this.createParser();
              //set the parser handler to extract the
              reader.setErrorHandler(xmlHandler);
              reader.setContentHandler(xmlHandler);
              InputSource source =
                   new InputSource(new ByteArrayInputStream(newsXML.getBytes()));
              reader.parse(source);
              //return the results of the parse           
              return xmlHandler.getEvent(mgr);
    Code for XMLHandler:-
    Created on Apr 12, 2006
    Author-Anish
    This is a parser class
    package com.idb.events.util;
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.XMLReader;
    import com.idb.events.Event;
    Created on Apr 12, 2006
    Author-Anish
    *This handler class is created to have constant value for variables and function for get events,
        character values for bean variable,
        parsing thr date ......etc
    package com.idb.events.util;
    import java.sql.Timestamp;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Locale;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    import java.util.*;
    import com.idb.events.Event;
    import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;
    public class XMLHandler extends DefaultHandler {
         private static final String TITLE = "title";
         private static final String ORGANIZER = "organizer";
         IWDMessageManager manager;
         private Event events;
         private String tagName;
         public void setManager(IWDMessageManager mgr) {
              manager = mgr;
    This function is created to get events
         public Event getEvent(IWDMessageManager mgr) {
              manager = mgr;
              return this.events;
    This function is created to get character for setting values through event's bean setter method
         public void characters(char[] charArray, int startVal, int length)
              throws SAXException {
              String tagValue = new String(charArray, startVal, length);
              if (TITLE.equals(this.tagName)) {
                   this.events.setTitle(tagValue);
              if (ORGANIZER.equals(this.tagName)) {
                   String orgName = tagValue;
                   try {
                        orgName = getOrgName(orgName);
                   } catch (Exception ex) {
                   this.events.setOrganizer(orgName);
    This function is created to parse boolean.
         private final boolean parseBoolean(String inputBooleanStr) {
              boolean b;
              if (inputBooleanStr.equals("true")) {
                   b = true;
              } else {
                   b = false;
              return b;
    This function is used to call the super constructor.
         public void endElement(String uri, String localName, String qName)
              throws SAXException {
              super.endElement(uri, localName, qName);
         /* (non-Javadoc)
    @see org.xml.sax.ErrorHandler#fatalError(org.xml.sax.SAXParseException)
    This function is used to call the super constructor.
         public void fatalError(SAXParseException e) throws SAXException {
              super.fatalError(e);
    This function is created to set the elements base on the tag name.
         public void startElement(
              String uri,
              String localName,
              String qName,
              Attributes attributes)
              throws SAXException {
              this.tagName = localName;
              if (ROOT.equals(tagName)) {
                   this.events = new Event();
         public static void main(String a[]) {
              String cntry = "Nigeria";
              XMLHandler xml = new XMLHandler();
              ArrayList engList = new ArrayList();
              engList = xml.getCountries();
              ArrayList arList = xml.getArabicCountries();
              int engIndex = engList.indexOf(cntry);
              System.out.println("engIndex  :: " + engIndex);
              String arCntryName = (String) arList.get(engIndex);
              System.out.println(
                   ">>>>>>>>>>>>>>>>>>>>" + xml.getArabicCountryName(cntry));
    Hope that may help you.
    If need any help , you are most welcome.
    Regards,
    Deepak

  • Create XML File from a specified XSD file

    Hi,
    I'd like to create an XML document with java. BUT How can we "bind" this creation with a XSD file. Hence, the creation may fail if the XSD binded file is not respected.
    So I know how to create XML file but not bind to this creation my proper XSD file (XML schema). With which tool can I do this ?
    Thanks.

    Hi,
    I'd like to create an XML document with java. BUT How can we "bind" this creation with a XSD file. Hence, the creation may fail if the XSD binded file is not respected.
    So I know how to create XML file but not bind to this creation my proper XSD file (XML schema). With which tool can I do this ?
    Thanks.

  • Create .xml file from a java file

    I wanted to know how can we create a .xml file through java with the given data.
    For example: book saler.
    data given through java are
    1)Sl no
    2)Book name
    3Book type
    4)Book price
    i want a xml file generated through the java code
    can anyone help me out?

    i have done like this..
    but the problem with this is i want to add more than one book details. i am able to add only one book detais..
    package name:createxml
    main class:GenerateOrderXml.java
    CreateXml.java and order.java
    package createxml;
    import java.util.Vector;
    public class GenerateOrderXml {
         public static void main(String[] args) {
              try{
              Order order= new Order();
              CreateXml xml=new CreateXml();
              Vector orders=new Vector();
              order.setBookName("Java_for_beginers");
              order.setAuthorName("Balaguruswamy");
              order.setISBN("a123");
              order.setNo_of_copies("3");
              order.setprice("350");
              order.setPublisher("Deepak publishers");
              orders.add(0,order);
              order.setBookName("Java");
              order.setAuthorName("Bala");
              order.setISBN("a123");
              order.setNo_of_copies("3");
              order.setprice("350");
              order.setPublisher("Deepak ");
              orders.add(1,order);
              xml.creatxml(orders);
              catch(ArrayIndexOutOfBoundsException e)
                   e.printStackTrace();
    package createxml;
    import org.jdom.*;
    import org.jdom.output.XMLOutputter;
    import java.io.IOException;
    import java.util.Vector;
    * @author divyashree
    * To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Generation - Code and Comments
    public class CreateXml {
         public void creatxml(Vector orders)
         try
                   Element root = new Element("BookSaler");          
                   Order order= new Order();          
                   order=(Order)orders.elementAt(0);
                   Element BName = new Element("Bookname1");
                   BName.setText(order.getBookName());
                   root.addContent(BName);
                   Element AName = new Element("Authorname");
                   AName.setText(order.getAuthorName());
                   BName.addContent(AName);
                   Element isbn = new Element("ISBN");
                   isbn.setText(order.getISBN());
                   BName.addContent(isbn);
                   Element price = new Element("Price");
                   price.setText(order.getprice());
                   BName.addContent(price);
                   Element publisher= new Element("Publisher");
                   publisher.setText(order.getPublisher());
                   BName.addContent(publisher);
                   order=(Order)orders.elementAt(1);
                   Element BName1 = new Element("Bookname2");
              BName1.setText(order.getBookName());
              root.addContent(BName1);
              Element AName1 = new Element("Authorname");
              BName1.addContent(AName);
              Element isbn1 = new Element("ISBN");
              isbn.setText(order.getISBN());
              Element price1 = new Element("Price");
              BName1.addContent(price);
              Element publisher1= new Element("Publisher");
              BName1.addContent(publisher);
              Document doc = new Document(root);
              try {
                   XMLOutputter serializer = new XMLOutputter();
                   serializer.setIndent(" ");
                   serializer.setNewlines(true);
                   serializer.output(doc, System.out);
              catch (IOException e)
                   System.err.println(e);
         }catch(ClassCastException e)
              e.printStackTrace();
    package createxml;
    import java.util.Vector;
    public class Order {
         protected String ISBN="";
         protected String BookName="";
         protected String AuthorName="";
         protected String No_of_copies;
         protected String price;
         protected String Publisher="";
         public String getISBN()
              return this.ISBN;
         public String getBookName()
              return BookName;
         public String getAuthorName()
              return AuthorName;
         public String getNo_of_copies()
              return No_of_copies;
         public String getprice()
              return price;
         public String getPublisher()
              return Publisher;
         public void setISBN(String isbn)
              Vector vec_isbn= new Vector();
              ISBN=isbn;
         public void setBookName(String bookname)
              BookName=bookname;
         public void setAuthorName(String authorname)
              AuthorName=authorname;
         public void setNo_of_copies(String no_of_copies)
              No_of_copies=no_of_copies;
         public void setprice(String Price)
              price=Price;
         public void setPublisher(String publisher)
              Publisher=publisher;
    /***************************************************************************/

  • Sample abap program to create XML files

    Hi friends,
    IS there is a sample abap program to create an XML file.
    regards
    kaushik

    Hope the below code is helpfull.....
    *& Report  ZSAN_XML                                                    *
    REPORT  ZSAN_XML                                .
    * 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.
    * 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.
    * FORM DESCARGA_XML *

Maybe you are looking for

  • External Speaker Problem

    My external speaker has stopped working, not sure if I did something or if it can be reset

  • Help canceled itune backup disc drive wont open??

    Why wont my disc drive open to remove disc? I canceled the stupid itunes offer to back up my music and because said it'd take hours (Im an idiot I guess I didnt know it would take that long). Now my disc drive wont open I tried ejecting it by my comp

  • This one is a doosey.  Man.  Eternally grateful for all words of wisdom.

    Ok everyone this is my first post on here and I'm in a bit of a jam. I've got a major project we just finished shooting(training film for one of the nation's biggest orgs) and I've been thrown into the ring as the one to do the authoring. I'll try to

  • Export my slideshow from Aperture (with music) to a CD

    I'm having problems with exporting my slideshow from Aperture. I'm also new to the mac and aperture, so this could be part of the learning curve! I would like to export the slideshow (with music) to be played on a non-apple computer via a CD. I see t

  • Z10 won't boot

    My Boss came up to me last week with a bricked Z10 saying he has all his passwords saved on his PasswordKeeper app ( Ofcourse there are no known backups....) When you plug in the phone (USB or outlet charger) and hold the power button for 10 seconds