TV Schedule Day export to XML

Dear All,
I a newby to XML and I have some questions, please (Oracle 10.2.0.1.0 on Windows 2003 32bit) :
1. I need to export an XML of the follow format having CRLF at the end of each record, but somehow I get only CR - where am I wrong? Here is a part of my code:
PROCEDURE my_xml
IS
doc dbms_xmldom.DOMDocument;
xdata XMLTYPE;
CURSOR xml_cur IS
SELECT xmlelement("ScheduleDay", .....
BEGIN
OPEN xml_cur;
FETCH xml_cur INTO xdata;
CLOSE xml_cur;
doc := dbms_xmldom.newDOMDocument(xdata);
dbms_xmldom.writeToFile(doc, 'UTL_XML/test.xml');
END;
2. I don't get <?xml version="1.0" > at the beginning of the XML result.
Thanks to all in advance!
The result example:
<?xml version="1.0" >
<ScheduleDay ScheduleDate="01-07-2008" SiteId="2">
<Computer ComputerId="1">
<Monitor MonitorId="1">
<Zone ZoneId="50">
<ObjectId>
<LocalTime>06:00:00.000</LocalTime>
<ScheduledDuration>00:00:19.000</ScheduledDuration>
<CommercialKey>BBH-FLBR306-030.MPG</CommercialKey>
<CommercialLink>http://xxx.xxx.xxx.xxx/zeev/E94C8B4D0D1BDEB6781B16156EFDE51F</CommercialLink>
<CommercialSize>23482372</CommercialSize>
</ObjectId>
<ObjectId>
<LocalTime>06:00:19.000</LocalTime>
<ScheduledDuration>00:00:19.000</ScheduledDuration>
<CommercialKey>BBH-VAMB001-030.MPG</CommercialKey>
<CommercialLink>http://xxx.xxx.xxx.xxx/zeev/231C30CE600A31F6EA66A07F76D75080</CommercialLink>
<CommercialSize>23482372</CommercialSize>
</ObjectId>
</Zone>
</Monitor>
</Computer>
</ScheduleDay>
Message was edited by:
kdwolf

I'm wondering if you are hitting a bug that mdrake mentions but does not name in this thread (which also shows a work-around you may have to use). If you can, you may want to open a SR with Oracle to confirm the bug and see if there is a patch for your version.
XMLAGG cannot work in PL/SQL in UTL_FILE

Similar Messages

  • Export to XML is grayed out.

    Hello.  I am trying to export an XML from FCPX for an editor to use in Avid.  My problem is that I highlight all the clips in the timeline and then I go to the top menu and try choose File  / Export XML and Export XML is grayed out, so I may not choose it.
    Is there any reason why this feature may be grayed out.  I am using the trial version of FCPX but nowhere does it say there are any limitations.
    Thank you very much for your time.
    _Deyson Oriz

    Thank Tom, I was hoping for 1 step procedure.  I hope an app comes out soon to make it easier.
    Have an awesome day!

  • Structure inDesign document and export as XML for use in the web

    Hello everyone,
    I just recently started using inDesign and I am fascinated by its possibilities! I use it for a project where a finished inDesign layout that is used for a printed publication is now supposed to be transformed for implementing it on a web site. My job is to export the inDesign document as an XML file. After massive reading the last weeks I'm quite familiar with the structuring and tagging in inDesign. Though there's some issues I do not understand. Your precious advice would be of highest meaning to me
    The programmer who will later use my XML output for the web-transformation needs the document structured in different levels like "Root > Chapter > Subchapter > Text passage / table". I already structured the document with tags like title, text passage, table, infobox,... but the structure is just linear, putting one item following to another.
    How can I structure the document with reoccuring tags that enable me to identify the exact position of an item in the document's structure? So that I can say for example "text passage X" is located in chapter 4, subchapter 1. This has to be done because the document is supposed to be updated later on. So maybe a chapter gets modified and has to be replaced, but this replacement is supposed to be displayed.
    I hope my problem becomes clear! That's my biggest issue for now. So for any help I'd be very thankful!

    Our print publications are created in InDesign CS5 for Mac then the text is exported to RTF files then sent to an outside company to be converted to our XML specifications for use by our website developers.  I would like to create a workflow in which our XML tags are included in the InDesign layouts and then export the XML from the layouts.
    Some more detail about what kind of formatting is necessary might be helpful.
    I know that IDML files contain the entire layout in XML format.  Is it a good idea to extract what we need from IDML, using the already-assigned tags?
    Well, if you want to export the whole document, it's the only reasonable approach.
    We use a workflow system such that each story is a seperate InCopy document, stored in ICML format (Basically a subset of IDML). Our web automation uses XSLT to convert each story into HTML for use on our web site; it also matches it up with external metadata so it knows what is a headline and what is not, etc.. It is not exactly hassle free, and every once in a while someone uses a new InDesign feature that breaks things (e.g., our XSLT has no support for paragraph numbering, so numbered paragraphs show up without their numbers).
    You could do the same thing with with IDML, you'd just have to pick out each story, but that's small potatoes compared to all the XSL work you're going to have to do.
    On the other hand, there may be better approaches if you're not going to export the whole document. For instance,  you could use scripting to export each story as an RTF file, and then you could convert the RTF files into HTML using other tools.

  • Crystal Reports Server - Scheduling Report Exports

    Dear Experts,
    We are using Crystal Reports Server XI Edition and we would like to schedule report exports. Crystal Reports Server configuration console allows us to automate report exports but apparently we could not find a way to pass report parameters and formulas from any export management tab. Naturally, each report needs to take different parameters but to our knowledge CRS management console does not have a screen that prompts us to key in or to read dynamic report parameters and formula. It simply uses the default report parameters. Can you confirm this please?
    To overcome this limitation, we are thinking of developing something like a script that directly interacts with CRS. The script would pass the name of the report, the report parameters and other relevant details like CMS username/ password.Do you think this is possible and if yes can you please point us to the key APIs required for scheduling report exports?
    My sincere thanks for your assistance.
    Kind Regards,
    Joseph.

    You are able to change the parameters for the report within the Central Management Console under the processing tab before scheduling. 
    Here is some sample applications that you can refer to in regards to doing this using the api:
    [http://www.businessobjects.com/global/doc/dev_zone/Java_SApps_q405.zip|http://www.businessobjects.com/global/doc/dev_zone/Java_SApps_q405.zip]

  • PBDOM : Exporting to XML file gives a single line

    I've been starting developing with PowerBuilder 12.5 a few weeks ago. I had to write some XML files, so I got familiar with the PBDOM library.
    I can build a lot of different things, it's very nice, but one thing still bothers me :
    In the output file, the whole XML is written on a single line.
    I use the SaveDocument function.
    For example, here is some code :
    PBDOM_Document doc
    PBDOM_Element noderoot, node1, node11, node12
    doc = CREATE PBDOM_Document
    doc.NewDocument("NodeRoot")
    noderoot = doc.GetRootElement()
    node1 = CREATE PBDOM_Element
    node1.SetName("Node1")
    noderoot.AddContent(node1)
    node1.SetAttribute("Attr", "AttrValue")
    node11 = CREATE PBDOM_Element
    node11.SetName("Node11")
    node11.AddContent("Here is a value")
    node1.AddContent(node11)
    node12 = CREATE PBDOM_ELEMENT
    node12.SetName("Node12")
    node12.AddContent("Here is another value")
    node1.AddContent(node12)
    doc.SaveDocument("myDoc.xml")
    Here is the result when I open it with notepad++
    <NodeRoot><Node1 Attr="AttrValue"><Node11>Here is a value</Node11><Node12>Here is another value</Node12></Node1></NodeRoot>
    Whereas I wanted :
    <NodeRoot> <Node1 Attr="AttrValue"> <Node11>Here is a value</Node11> <Node12>Here is another value</Node12> </Node1> </NodeRoot>
    With the notepad++ XML tools plugin, I can use the "pretty print" function to get this nice representation. But I would like my file to be formatted this way from the beginning. I noticed that the "line ending" was set to UNIX format (indicator on bottom right of the window), but I'm working on Windows. When I use the menu to convert it to Windows format (CR+LF), it changes this indicator, but the code stays on one single line.
    Is there a way to tell PBDOM to export the XML file with a nice output ?
    Thank you !
    Notes :
    - Opening the XML file with Internet Explorer or Google Chrome gives me a nice vizualisation, with indentation, line breaks...
    - Adding a <?xml version="1.0" encoding="ISO-8859-1" ?> does not help (I've been doing it while exporting some more complex files, but I still get the output on one line...)

    Here is a very simple powerbuilder example. It uses MSXML instead of PBDOM. See my comments for hints how to use it with PBDOM.
    oleobject lole_dom, lole_root, lole_element1, lole_element11, lole_element12
    oleobject lole_Writer, lole_saxreader
    string ls_result
    // build DOM (you don't need this if you use PBDOM)
    lole_dom = create oleobject
    lole_dom.ConnectToNewObject ("Msxml2.DOMDocument")
    lole_root = lole_dom.CreateElement ("NodeRoot")
    lole_dom.documentElement = lole_root
    lole_element1 = lole_dom.CreateElement("Node1")
    lole_root.AppendChild(lole_element1)
    lole_element1.SetAttribute("Attr", "AttrValue")
    lole_element11 = lole_dom.CreateElement("Node11")
    lole_element11.AppendChild (lole_dom.CreateTextNode("Here is a value"))
    lole_element1.AppendChild(lole_element11)
    lole_element12 = lole_dom.CreateElement("Node12")
    lole_element12.AppendChild (lole_dom.CreateTextNode("Here is another value"))
    lole_element1.AppendChild(lole_element12)
    // this saves the DOM without formatting
    //lole_dom.save ("d:\testxml.xml")
    // this part is for formating
    lole_Writer = create oleobject
    lole_saxreader = create oleobject
    lole_Writer.ConnectToNewObject ("MSXML2.MXXMLWriter")
    lole_saxreader.ConnectToNewObject ("MSXML2.SAXXMLReader")
    lole_Writer.omitXMLDeclaration = True
    lole_Writer.indent = True
    lole_saxreader.contentHandler = lole_Writer
    // instead of DOM you can also put a XML string to parser: lole_saxreader.parse ("<node>...</node>")
    // so you can also use the PBDOM output directly
    lole_saxreader.parse (lole_dom)
    // here is your formatted output
    ls_Result = lole_Writer.output
    MessageBox ("", ls_result)
    lole_writer.Disconnectobject( )
    lole_saxreader.Disconnectobject( )
    lole_dom.Disconnectobject( )
    DESTROY lole_writer
    DESTROY lole_saxreader
    DESTROY lole_dom

  • Scheduler for Export Table utility using PL/SQL developer Tool

    Hi,
    Is there any way by which i can schedule manually export tables from a user using PL/SQL developer tool 'Export Tables' utility.
    As i have lot many schema a for each i have to manually exporting all tables using this utility.
    Please suggest.
    Thanks,

    Hello,
    do you mean PL/SQL developer from Allroundautomation? Then this is the wrong forum.
    Do you mean the export feature from SQL Developer, that you can invoke on right click in a result pane? You cannot automate it.
    But if you tell us more about your requirements we might be able to find a good solution for you. Yet this is a question for the {forum:id=75} forum. There is a FAQ {message:id=9360007}. This combined with dbms_scheduler or a scheduled job on your computer might solve the problem.
    Regards
    Marcus

  • Export to xml error

    hi,
    I am getting the following error while exporting to xml
    please can neone help
    thanks in advance     
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error

    There is an error because a character is trying to be converted to a number?
    Check your inserts and data types are correct.

  • How to export an eloqua report to a (ftp) server and schedule this export

    I would like to export an eloqua report to a (ftp) server and schedule this export. I want to pick this report up by another tool like Qlikview.
    Liesbeth

    if it is something to do with having report admin rights is there a way to still export report data without these admin rights? is it possible to just export report data as activity data in the normal import/export section within the setup menu? is there a problem using filezilla client and oracle eloqua together for this?

  • Need help for Export to XML Functionality

    Hi All ,
    I have developed a report in Apex2.2 to export the data into XML format .
    I have used "export to XML" functionality and "HTF.escape_sc" function to escape special characters.The query is as follows..
    select
    HTF.escape_sc(replace (e.EVENT_NAME,'''','&'||'apos;')) AS EVENT_NAME ,
    HTF.escape_sc(replace (e.VENUE_NAME,'''','&'||'apos;')) AS VENUE_NAME ,
    HTF.escape_sc(replace (e.VENUE_ADDR,'''','&'||'apos;')) AS VENUE_ADDR ,
    HTF.escape_sc(replace (e.DESCRIPTION,'''','&'||'apos;')) AS DESCRIPTION ,
    HTF.escape_sc(replace (e.TRACKING_URL,'''','&'||'apos;')) AS TRACKING_URL ,
    HTF.escape_sc(replace (d.primary_product,'''','&'||'apos;')) AS primary_product
    from events e ,d_01 d
    where
    d.event_id = to_char(e.event_id)
    and e.publish = 'external'
    and e.searchable = 'Y'
    The output result in XML in APEX2.2 is absolutely fine , but when i moved the application to apex.oracle.com the XML report instead of '&' it is displaying "%26amp" .
    Is there any problem with APEX3.3 .
    Appreciate your quick response.
    Thanks
    Jyoti

    Jyoti,
    Replacing special characters from where? Report? Replacing by what?
    The code for the package is open. You may use the part in the package body:
    FOR i IN 1 .. CEIL (v_xml_l / 4000)
          LOOP
             v_xml_cut := SUBSTR (v_xml, v_count, 4000);
             HTP.prn (v_xml_cut);
             v_count := v_count + 4000;
          END LOOP;
    ...and do something like
    HTP.prn (REPLACE(v_xml_cut, '&amp;', '&amp;lt;'));
    ...Denes Kubicek

  • Table-Export to XML

    Hi all!
    I'm a Newbie in BC4J, but I have to create an apllication with this technology.
    My problem is, that one table should be exported to XML. I know that the standard Apllication, created by a wizard got this feature, but I didn't found the sourcecode.
    Is there anybody, who knows how to implement an XML-Export?
    Thanx
    Peter Zerwes

    Get the ViewObject reference that you want to export, e.g, in an AM say there's Dept/Emp VOs setup as masterdetail,
    you may then get the DeptVO and call one of the writeXML() apis on it.
    See javadoc for oracle.jbo.ViewObject and oracle.jbo.XMLInterface.writeXML().

  • Automatically Exporting to XML when open a file

    Hello,
    I'm trying to set up my new machine to export the XML of a file when I open it by dragging the files onto the Ps icon (Mac). It used to automoatically happen on my old work machine, and it's super helpful. I'm pulling my hair out trying to find the setting for something like this. Does anyone know what I'm talking about? Thanks in advance.

    Thanks!
    Sorry, I'm sort of a dummy with this stuff and have never used bridge. how do I do that?
    I'm specifically opening .png files and using the xml code to get the coordinates of the images for placement after I trim them.

  • Export large xml file in PL/SQL

    How to export large or big xml (XMLTYPE) into file system.
    I have tried with...
    1. UTL_FILE.PUT -- it has a limitation of 32767 chars
    2. DBMS_XSLPROCESSOR.CLOB2FILE supports little more than UTL_FILE but not in MB's
    i'm looking for options to export a xml file which is more than 5mb
    any suggestions?

    user12020576 wrote:
    I have tried with...
    1. UTL_FILE.PUT -- it has a limitation of 32767 chars
    It might have but this is not a problem, if you programmatically break it up in pieces.
    Have a look at https://forums.oracle.com/message/9748097#9748097
    The method demonstrates how to dump/write a CSV in binary format to disk.
    I used it to dump/write files way bigger than 10++ MB in size...

  • Framemaker 9.0p196 crashes while exporting to xml

    Hello,
    This occurs both with XP Pro SP3 and Win7 iSP 1 . On a XP Pro SP3 without domain connection  the crash does not occur. According to the event log caused  ntdll.dll the crash.
    Addendum: The XML is created correctly. this happens to all book projects, new and old. Does anyone have an idea?

    You could try checking your version of ntdll.dll (a Windows protected system file) for corruption using the "sfc /scannow" command. This replaces corrupted protected system files with the correct MS ones. Also, you could then check if there are any issues with the DirectX graphics (the drivers could be affecting the FM behaviourr) on your system using the DXDIAG utility.
    However, as it seems to happen on two systems, the corruption doesn't seem that likely of a culprit. Are you using FM with the structure or unstructured interface, i.e. is your workflow creating the XML using the Save As XML from unstrucured files or are you exporting the XML from a structured application?

  • Why can't merged clips be exported to XML?

    I merged my files from a double system shoot (with a Red camera and separate audio) - only to find that you can't then color correct outside of Premiere. I will grant I should have read the bottom of the merged file page which clearly states that you can't export an XML file with merged files but WHY?????????????? How do merged files benefit you if in the end you can't export to DaVinci for color correction? And from what I have found there are no work arounds. I tried to replace with original source video but the timecode of the merged file no longer matches that of the original source audio so I can't without resyncing and re-editing the whole thing - and our sound mixer has already done a significant amount of work on an OMF of the current project. And of course once I import that OMF and sync it to the video - I can't change the video because then I could have significant issues with the audio. I currently work in CS5.5 and would happily pay for an upgrade to Cloud if it solved this problem but from everything I have read it does not... it seems like a huge issue. I would rather not have the merged files function than have it lead me astray in this fashion.
    If anyone has found a solution let me know. Otherwise I was going to have the original source files color corrected by our colorist and link those to the project (luckily there aren't really internal clip issues and it's a short so it's only 28 clips total)?
    Any solutions greatly appreciated
    ===============================
    Title changed by moderator to make it descriptive of the issue/question--but mostly eliminate the all-caps. Shouting doesn't help

    Ah yes -- well very holistic approach I suppose... but considering my question "how to export a project with merged clips to an XML file?" - this doesn't actually answer that question. It is a work around. But one that requires me to find and hire another colorist (and let's be honest a large portion of the post-production community works with Resolve) and I don't think I am being unreasonable for expecting Adobe to have considered the possibility of this work flow (editing a project in Premiere and then moving to a commonly used platform such as Davinci Resolve to color correct). Or yes I could learn SpeedGrade but if I had the time to color correct the project myself we wouldn't be hiring someone else to get the project completed in a timely manner... so yeah it's a work around that doesn't really work. I am hoping having the original source video color corrected will make it all work - and I will NEVER used the Merged Clip feature in Premiere ever again. And wish there was some way for me to warn others against falling victim to its charms as well.

  • Export an XML or EDL which will keep the clip's full name

    Greetings,
    I've been working with R3d (RED EPIC format) footages in premiere cs6 and i need to export an XML or EDL which will keep the clip's full name, in order to use it for further post production (davinci).
    How do i do it?

    i know that edl is an old format but i wonder if there is another format like avid's cmx 640.
    I've already exported xml and it doesn't keep the clip's full name.
    I'm more interested in exporting xml.
    Is there a way to import the R3D so it keeps the clip's full name in the metadata?

Maybe you are looking for

  • ORA-02041: client database did not begin a transaction

    Hello All, I am making calls from oracle 8i to oracle 9i. First i am inserting values from 8i into a table in 9i. secondly i am calling a procedure to send mail which again is in 9i database. If i run the query ..the mail is sent... if i run it for t

  • CHARACTERS FOR PR RELEASE STRATEGY

    i m craeting one chars for purchase req. i want to use chars purchase group. when i m entering table name ceban and field name ekgrp, message is coming like " delete the allowing value first" what is the solution for this tahnks in advance nitin

  • ADOBE READER X - PERMISSION PROBLEM

    when i try to access adobe reader x, it says that i do not have permission to do so. it takes me to the security tab where nothing can be modified. i have windows 7

  • Adobe update or flash on MAC

    I keep getting an installer error when i try and update or upload the latest flash or adobe software on my MAC.  I have tried using Chrome and Safari and it give me the same error.  I have attached the screen error.  Please assist

  • Loading ITunes files from external to winows 8.

    I had a windows7 laptop crash with 136 G s of music in ITunes. I had it all backed up on an external drive. I now have a windows 8 laptop and want to load those files on the newly downloaded itunes. I put alot of work into rating and building playlis