Dbms_xmlgen: write emp content to xml file

Hi.
I have the following procedure to write the content of the emp table in xml to a file:
CREATE OR REPLACE PROCEDURE BSP_DBMSXMLGEN IS
v_ctx DBMS_XMLGen.ctxHandle;
v_file Utl_File.File_Type;
v_xml CLOB;
v_more BOOLEAN := TRUE;
l_exception varchar2(2000);
BEGIN
-- XML context erzeugen
v_ctx := DBMS_XMLGen.newContext('SELECT * from emp_big');
-- Root Element und Zeilentag setzen
DBMS_XMLGen.setRowsetTag(v_ctx, 'Emp');
DBMS_XMLGen.setRowTag(v_ctx, 'Zeile');
-- XML Dokument erzeugen
v_xml := DBMS_XMLGen.GetXML(v_ctx);
DBMS_XMLGen.closeContext(v_ctx);
-- Ausgabedatei erzeugen
v_file := Utl_File.FOpen('XML_DIR', 'BSP_DBMSXMLGEN.xml', 'w');
-- In Datei schreiben
WHILE v_more LOOP
Utl_File.Put(v_file, Substr(v_xml, 1, 32767));
IF Length(v_xml) > 32767 THEN
v_xml := Substr(v_xml, 32768);
ELSE
v_more := FALSE;
END IF;
END LOOP;
Utl_File.FClose(v_file);
EXCEPTION
when OTHERS then
l_exception := sqlerrm;
dbms_output.put_line('Error: ' || l_exception);
END;
The procedure works well with 14 emp rows. But after duplicating the rows a few times the procedure stops working...
insert into emp_big select * from emp_big;
commit;
select count(*) from emp_big;
COUNT(*)
960
exec bsp_dbmsxmlgen;
The file content:
<?xml version="1.0"?>
<Emp>
<Zeile>
<EMPNO>7369</EMPNO>
<ENAME>SMITH</ENAME>
<JOB>CLERK</JOB>
<MGR>7902</MGR>
<HIREDATE>17.12.80</HIREDATE>
<SAL>800</SAL>
<DEPTNO>20</DEPTNO>
</Zeile>
<Zeile>
<EMPNO>7499</EMPNO>
<E
The procedure stops writing to file in the middle of a table row...
Any ideas?
Thanks
Markus

Thanks, Marco, but I think I need to be more clear. The original XML data in the XMLType field looks like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<metadata>
</metadata>where "metadata" is the root node of the entire file. What happens is when I run the script listed above, the name of the field being queried gets added as a root node, which I don't want. I did figure out how to omit the "ROW" and ROWSET" nodes from being placed in the resulting XML flat file. Using the same script, I replaced:
-- Root Element und Zeilentag setzen
DBMS_XMLGen.setRowsetTag( v_ctx, 'Emp' );
DBMS_XMLGen.setRowTag( v_ctx, 'Zeile' );with
-- Root Elements
DBMS_XMLGen.setRowsetTag( v_ctx, '' );
DBMS_XMLGen.setRowTag( v_ctx, '' );I simply removed "Emp" and "Zeile." By doing this, those nodes are omitted. I still can't figure out how to omit the "XML_DATA" node.

Similar Messages

  • How to read the contents of XML file from my java code

    All,
    I created an rtf report for one of my EBS reports. Now I want to email this report to several people. Using Tim's blog I implemented the email part. I am sending emails to myself based on the USERID logic.
    However I want to email to different people other then me. My email addresses are in the XML file.
    From the java program which sends the email, how can I read the fields from XML file. If any one has done this, Please point me to the right examples.
    Please let me know if there are any exmaples/BLOG's which explain how to do this(basically read the contents of XML file in the Java program).
    Thank You,
    Padma

    Ike,
    Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
    Please help me.
    Thank you for your posting.
    Padma.

  • How to parse contents from XML file in Java

    Hi All,
    I have a scenario like this . I have one xml file with key value pairs of ( name , URL ) . I have retrieved contents from XML file , now I want to parse these contents and store in a bean object.
    How to parse Contents of XML file??
    Thanks in advance,
    Rajendra.

    Hi All,
    I have a scenario like this . I have one xml file with key value pairs of ( name , URL ) . I have retrieved contents from XML file , now I want to parse these contents and store in a bean object.
    How to parse Contents of XML file??
    Thanks in advance,
    Rajendra.

  • How to export table contents in xml file format through SQL queries

    hi,
    i need to export the table data in to xml file format. i got it through the GUI what they given.
    i'm using Oracle 10g XE.
    but i need to send the table name from Java programs. so, how to call the export commands from programming languages through. is there any sql commands to export the table contents in xml format.
    and one more problem is i created each transaction in two tables. for example if we have a transaction 'sales' , that will be saved in db as
    sales1 table and sales2 table. here i maintained and ID field in sales1 as PK. and id as FK in sales2.
    i get the combined data with this query,
    select * from sales1 s1, sales2 s2 where s1.id=s2.id order by s1.id;
    it given all the records, but i'm getting two ID fields (one from each table). how to avoid this. here i dont know how many fields will be there in each table. that will be known at runtime only.
    the static information is sales1 have one ID field with PK and sales2 will have one ID filed with FK.
    i need ur valuable suggestions.
    regards
    pavan.

    You can use DBMS_XMLGEN.getXML('your Query') for generating data in tables to XML format and you can use DBMS_XMLGEN.SETROWSETTAG to change the parent element name other wise it will give rowset as well as DBMS_XMLGEN.SETROWTAG for row name.
    Check this otherwise XMLELEMENT and XMLFOREST function are also there to convert data in XML format.

  • Write data to local xml file

    Does anyone know if there is a way to write data to a local xml file using the Connection refresh Button??

    Hi there Glenn,
    That's tricky...
    Are you using SP1?  You need to have at least SP1.
    The XLFs were generated with an internal build newer than SP1, but they should still work in earlier builds.
    If you changed the HTML file, that might be the cause.  The SWF references in the HTML file must be exact. 
    Also, the range names must match as defined in the XLF/SWF.  The bolded lines following should match.  It's easiest if they all use the SWF name.
    else if (hasRequestedVersion) {
    // if we've detected an acceptable version
    // embed the Flash Content SWF when all tests are passed
    AC_FL_RunContent(
    "src", "consumer",
    "width", "380",
    "height", "308",
    "align", "middle",
    "id", "consumer",
    "quality", "high",
    "bgcolor", "#ffffff",
    "name", "consumer",
    +"flashvars",'historyUrl=history.htm%3F&lconid=' + lc_id + '',+
    "allowScriptAccess","always",
    "type", "application/x-shockwave-flash",
    "pluginspage", "http://www.adobe.com/go/getflashplayer"
    } else {  // flash is too old or we can't detect the plugin
    var alternateContent = 'Alternate HTML content should be placed here. '
    'This content requires the Adobe Flash Player. '
    '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
    document.write(alternateContent);  // insert non-flash content
    // -->
    </script>
    <noscript>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    id="consumer" width="380" height="308"
    codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
    <param name="movie" value="consumer.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="allowScriptAccess" value="always" />
    <embed src="consumer.swf" quality="high" bgcolor="#ffffff"
    width="380" height="308" name="consumer" align="middle"
    play="true"
    loop="false"
    quality="high"
    allowScriptAccess="always"
    type="application/x-shockwave-flash"
    pluginspage="http://www.adobe.com/go/getflashplayer">
    </embed>

  • Using cfhttp to read a page and write its contents to a file.

    Hi,
    I am trying to get a feed of my ebay store listings to load
    into froogle. Unfortunately, ebay provides the feed as a website
    not a file and froogle (via GoogleBase) needs the file to be
    submitted as an XML file.
    Is there a way to use something like cfhttp to load up the
    page where the feed is located, scan the page and write it's
    contents into an XML file that I can then load up to GoogleBase???
    thanks for the help.

    ignore me now.... I answered my own question a short while
    ago.
    for anyone who cares....
    I used CFHTTP to get the page and then used a cffile to write
    the #cfhttp.filecontent# into the new file!

  • View then modify content of xml file.

    I am new in Java world and my background is database admin. What I am trying to achieve here is write a small java scripts code which would open connections.xml allow user to update connection definition.
    So here is what I do using java scripts, I load the connections.xml:
    xmlDoc.load("connections.xml");
    Then I disply the current conection def:
    var x=xmlDoc.getElementsByTagName("StringRefAddr");
    for (var i=0;i<x.length;i++)
    document.write("<tr>");
    document.write("<td>");
    document.write(x.getElementsByTagName("Contents")[0].childNodes[0].nodeValue);
    document.write("</td>");
    document.write("</table>");
    But this only displays the content of connections.xml.
    What is the code to allow user to actually modify what he or she is seeing displayed?
    If java scripts is not the appropriate way to do this then please advise on how to do this the simplest way possible.
    Please advise.
    Thanks.
    Bobby.

    So you're reading in this XML document and extracting some bits to display to the user? And then when the user changes those bits and says OK you are going to write out a modified XML document?
    Actually, never mind. Figure out what you are going to do and start doing it. Then when you run into a problem, post a specific question about that problem. It appears your question is actually "I don't know what I should do" and it isn't possible to answer that on a forum.

  • How to write from database to XML file using JAVA and back..

    Hi....
    I am strugling for a code to write from database to xml output instead of what i have written in flat file....could anyone please help me out...to do this and again read the same back to the database using java...

    Hi,
    In java world, there is a tutorial on what you are looking for :
    http://www.javaworld.com/javaworld/jw-01-2000/jw-01-dbxml_p.html
    It uses SAX/DOM parsers to translate XML data into the appropriate fields of the database and visa-versa.
    Hope it helps.

  • How to write data to an XML file present under application server

    frnds: can ne one tell me, how to write data in to a file, which is present under a application server
    Ex: i want to write a string data in to a file test.txt which is present under "http://localhost:8080/<some_webapp>/test.txt"
    Note:i have deploted a service<some_webapp> under Tomcat/webapps dir

    Very simple. A servlet can writes to that file if it has the good rights.
    In the servlet get (or post) method, use a code like this:
    import java.io.*;
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
    try {
    String filePath = this.getServletContext().getRealPath("/text.txt");//See http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
             PrintWriter writer = new PrintWriter (filePath);
            //or BufferedWriter out = new BufferedWriter(new FileWriter(filePath));
            writer .println("aString");
           writer.flush();
            writer .close();
        } catch (Exception e) {
           e.printStackTrace();
    }Hope That Helps

  • Place contents of xml file to 2D array

    i have a xml file like
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE map SYSTEM "map.dtd">
    <map width="5" height="5" goal="6" name="Hallways of Dooom">
         <random-item type='lantern' amount='5' />
         <random-item type='health' amount='10' />
         <tile x="1" y="0" type="floor">
              <renderhint>floor:wood</renderhint>
         </tile>
         <tile x="0" y="1" type="wall" />
         <tile x="1" y="1" type="floor" startlocation="1" />
         <tile x="3" y="1" type="floor">
              <item type="treasure">Bar of Silver</item>
              <renderhint>floor:stone,blood</renderhint>
         </tile>
    </map>i was asked to creat a 5*5 2D array from it. each tile represents a position on the point. If the type of tile is wall, it is represented by number 2; if it is floor, it is represented by number 1.
    i have written my code as following:
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.*;
    import org.xml.sax.SAXException;
    import java.io.*;
    public class parsexml
        public void parseXML()
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         factory.setValidating(true);
         factory.setIgnoringElementContentWhitespace(true);
         try {
             DocumentBuilder parser = factory.newDocumentBuilder();
             Document doc = parser.parse(new File("hallways.xml"));
             System.out.println("XML file parsed.");
             processTree(doc);
         } catch (ParserConfigurationException e) {
             e.printStackTrace();
         } catch (SAXException e) {
             e.printStackTrace();
         } catch (IOException e) {
             e.printStackTrace();
        public void processTree(Document doc)
         int column = 0;
         int row = 0;
         int hori = 0;
         int vert = 0;
         String Type = "";
         Node element = doc.getDocumentElement();
         NamedNodeMap attrs = element.getAttributes();
         for (int i = 0; i < attrs.getLength(); i++) {
             Node attr = attrs.item(i);
             String attrName = attr.getNodeName();
             if (attrName == "width") {
              column = Integer.parseInt(attr.getNodeValue());
             if (attrName == "height") {
              row = Integer.parseInt(attr.getNodeValue());
         int[][] map = new int[row][column];
         NodeList children = element.getChildNodes();
         for (int i = 0; i < children.getLength(); i++) {
             Node child = children.item(i);
             String nodeName = child.getNodeName();
             if (nodeName == "tile") {
              NamedNodeMap attributes = child.getAttributes();
              for (int a = 0; a < attributes.getLength(); a++) {
                  Node attribute = attributes.item(a);
                  String attributeName = attribute.getNodeName();
                  if (attributeName == "x") {
                   hori = Integer.parseInt(attribute.getNodeValue());
                  if (attributeName == "y") {
                   vert = Integer.parseInt(attribute.getNodeValue());
                  if (attributeName == "type") {
                   Type = attribute.getNodeValue();
             if (Type == "floor") {
              map[hori][vert] = 1;
             } else if (Type == "wall") {
              map[hori][vert] = 2;
         print(map);
        public void print(int[][] map)
         for (int r = 0; r < map.length; r++) {
             for (int c = 0; c < map[r].length; c++) {
              System.out.print(map[r][c]);
             System.out.println();
        public static void main(String[] args)
         parsexml xml = new parsexml();
         xml.parseXML();
    }When i run the program, i found it doesn't fills the spcified position on the array. all I get is a 5*5 grid of 0s.
    Can anyone tells me why? thank you in advance.

    Unless someone is willing to put in the time to do your job for you, you'll have to debug it yourself. Put in some debugging statements. In their simplest form this is just a bunch of System.out.println("your message here") calls where you put in messages describing the current point of execution (like what method you just started or are about to finish) and the values of relevant data (such as method parameters, loop indices, whatever you feel is important).
    Then run the program and see what it tells you.

  • Importing content of XML file to table(s)

    I am looking for a way to import updates passed via XML file to a three tables.
    In IBM Domino it was facilitated while using DOMParser class.
    Does JDeveloper have a class or method for updating tables from XML file?

    To import a XML document to a dataabse table:
    1. Add <Oracle10g>/jdbc/lib/ojdbc14.jar, <Oracle10g>/jdbc/lib/servlet.jar, <XDK>/lib/xmlparserv2.jar, <XDK>/lib/xdb.jar and classes12dms.jar to Classpath.
    2. Create a table in Oracle database 10g, which includes columns for each of the element tags in the XML document.
    3. Create a connection with the database.
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@<host>:<port>:<SID>",
    "<user>","<password>");
    4. Create a OracleXMLSave class object.
    OracleXMLSave oracleXMLSave =new OracleXMLSave(conn, "<table>");
    “<table>” is the database table.
    5. Set the tag for the row enclosing element.
    oracleXMLSave.setRowTag("<row-tag>");
    Each <row-tag> tag in the example XML document corresponds to a database column.
    6. Import the XML document to database:
    oracleXMLSave.insertXML(oracleXMLSave.getURL("file://c:/input.xml"));
    7. If the XML document has attributes apply an XSLT to convert the attributes to elements.

  • Dynamically building web content using XML file(s)

    Hello All!
    I was recently tasked with a project to design a monitoring web application for our "in-house" built web applications. There is a certain set of modules and parameters that we need to monitor: GSLB --> Web Tier --> App Tier --> Database.
    Almost all (80%) of our applications share the same parameters that need to be monitored, but there are about a hundred of them. So here is what I'm thinking of doing....
    1. Create an XML document for each application (An example layout is included at the end of this post) and save it in the Applications directory.
    2. Setup a Spring Framework project, and create code to dynamically go through the Applications directory and kick-off the monitoring logic for each <application/> item. Basically, the code will just traverse through all of the xml files (I might even create just 1 xml file with all of the <application/> items in it), read the "metadata" for each application, and start the backend processing, as well as display the data in a dynamically-generated web GUI (based on the XML structure and data).
    Again, most of our applications (80%) have the same modules/parameters, therefore adding an application would only require us adding another <application/> element to the already-existing xml document (or adding an additional XML document). The code would do the rest...In regards to the rest 20% of applications, I would create a customize XML document with additional metadata (the code, in that case, would be able to handle the additional metadata).
    So here are my questions:
    1. What do you think of the idea itself? I'm sure that I'm not the only one who's thought of this, so are there any best-practices in this regard?
    2. The reason I thought of using Spring is that it is XML-based (there are many reasons for me using Spring actually -- Security, ORM integration, etc), and it might facilitate my efforts. I'm thinking that even if reading through the Applications directory isn't such a good idea, I can somehow utilize Spring's dependency injection & AOS to create the appropriate solution. Have anybody tried this before and willing to share ideas, implementation approach, etc?
    3. Other than Spring, what might help me accomplish this task?
    4. Is this feasible (from a time and effort stand-point), or should I just do it the old-fashioned way?
    Thanks in advance!
    Vladimir
    I am including a sample (very rough-draft) XML file of what the input might look like:
         <applications>
              <application name="Remote Application">
                   <vip>somethingUNIQUE.mycompany.com</vip>
                   <sys-level>LAB</sys-level>
                   <lb-type>GTM</lb-type>
                   <farms>
                        <farm name="Farm 1" id="1">
                             <member-name>sslname.mycompany</member-name>
                             <ip-address>34.34.24.242</ip-address>
                             <application-servers>
                                  <application-server name="Some Name1">
                                       <ip-address>
                                            34.983.238.32
                                       </ip-address>
                                  </application-server>
                                  <application-server name="Some Name 2222">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </application-server>
                                  <application-server name="Some Name 3425">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </application-server>
                             </application-servers>
                             <web-servers>
                                  <web-server name="Some Name1">
                                       <ip-address>
                                            34.983.238.32
                                       </ip-address>
                                  </web-server>
                                  <web-server name="Some Name 2222">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </web-server>
                                  <web-server name="Some Name 3425">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </web-server>
                             </web-servers>
                        </farm>
                        <farm name="Farm 2" id="2">
                             <member-name>sslvpn01.downingtown</member-name>
                             <ip-address>34.34.24.250</ip-address>
                             <application-servers>
                                  <application-server name="Some Name 3425">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </application-server>
                             </application-servers>
                             <web-servers>
                                  <web-server name="Some Name1">
                                       <ip-address>
                                            34.983.238.32
                                       </ip-address>
                                  </web-server>
                                  <web-server name="Some Name 3425">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </web-server>
                             </web-servers>
                        </farm>
                   </farms>
              </application>
              <application name="Tech Tools">
                   <vip>technicalUNIQUE.tools.mycompany.com</vip>
                   <sys-level>LAB</sys-level>
                   <lb-type>GTM</lb-type>
                   <farms>
                        <farm name="Farm 1" id="1">
                             <member-name>tools.tech</member-name>
                             <ip-address>34.34.24.214</ip-address>
                             <application-servers>
                                  <application-server name="Some Name 2222">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </application-server>
                                  <application-server name="Some Name 3425">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </application-server>
                             </application-servers>
                             <web-servers>
                                  <web-server name="Some Name1">
                                       <ip-address>
                                            34.983.238.32
                                       </ip-address>
                                  </web-server>
                                  <web-server name="Some Name 2222">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </web-server>
                             </web-servers>
                        </farm>
                        <farm name="Farm 2" id="2">
                             <member-name>tools.tech222</member-name>
                             <ip-address>34.34.24.415</ip-address>
                             <application-servers>
                                  <application-server name="Some Name1">
                                       <ip-address>
                                            34.983.238.32
                                       </ip-address>
                                  </application-server>
                                  <application-server name="Some Name 2222">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </application-server>
                                  <application-server name="Some Name 3425">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </application-server>
                             </application-servers>
                             <web-servers>
                                  <web-server name="Some Name1">
                                       <ip-address>
                                            34.983.238.32
                                       </ip-address>
                                  </web-server>
                                  <web-server name="Some Name 2222">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </web-server>
                                  <web-server name="Some Name 3425">
                                       <ip-address>
                                            34.343.248.32
                                       </ip-address>
                                  </web-server>
                             </web-servers>
                        </farm>
                   </farms>
              </application>
         </applications>

    Hello jschell!
    Again, the question was more about the overall architecture and design rather than monitoring implementation.
    So here is what I have now:
    1. A spring application that will do the following:
    Read in the "architecture.xml" file (a portion is shown below). This file will dictate not only the type of monitoring but also the layout (explained later).
    The architecture.xml is marshalled to entity objects -- Model (s), with nested Model "children"
    This array of Model(s) is what the server-side application will use to populate the monitoring parameters.
    When the Impl gets a hold of the Model(s), it traverses through all of these entities and does whatever processing it needs to do (Health check, routing check, etc), and produces Item(s) objects, which are similar in structure to the Model(s) entities, but have actual values that need to be displayed on the front-end. Each item might have an array of other, children, Item(s)
    2. A GWT application asks for the Items array, and displays them on the front-end.
    What I did already:
    *1. Created a base Spring project that accepts GWT requests and returns a set of Item(s) (statically-generated, since I don't have the proper Impl yet).*
    *2. Created the GWT project and the layout. GWT communicates with the Spring app (which runs on tomcat for now) and upon retrieving the Item(s) it recursively renders them into displayable items, with different background, borders colors, width, etc (based on the populated values and their nested children, if any) . The last code snippet is the definition of the Item class.*
    Basically, the architecture is setup and the next step is the actual implementation of the monitoring and routing logic -- which wasn't the point of this post, since I already did most of it for a different project :)
    Thanks for the replies though....
    Vladimir
    <serviceView name="YYYYYYYY XXXX">
         <item layout="vertical">
              <!-- The top level application name -->
              <item name="Routing XXXXXXX  (RX)"/>
              <!-- The GSLB name and Active Farms printout -- Work in Progress-->
              <item  name="RX GSLB - xxxxxxx.xx.xxxxxxxx.com" layout="vertical">
                   <dynamicText type="gslb_farms">
                        <param name="vip" value="xxxxxxxx.xx.xxxxxxxxx.com"/>
                   </dynamicText>
              </item>
              <!-- The farms Row -->
              <item layout="horizontal">
                   <!-- The 1st Farm -->
                   <item name="Farm 1" layout="vertical">
                        <operationalState name="xxxxxxx.xx.yyyyyyy.com" type="gslb_farm">
                             <param name="vip" value="activate.g.comcast.com"/>
                             <param name="farmName" value="RX.WT.F1.VIP">
                        </operationalState>
                        <hc name="RX.WT.F1.VIP" type="poller"/>
                        <!-- DataCenter name -->
                        <item name="PDX" value="PDX"/>
                        <!-- Web Tier -->
                        <item layout="horizontal">     
                             <item name="WEB1" description="WEB1" detailedView="someservice_level_xmlname.xml">
                                  <hc name="RE.WT.F1.rdw01" type="poller"/>
                             </item>
                             <item  name="WEB2">
                                  <hc name="RE.WT.F1.rdw02" type="poller"/>
                             </item>
                        </item>
    public class Item implements Serializable{
         private static final long serialVersionUID = 1L;
         public final static String _ROUTING_STATUS_ENABLED = "_ROUTING_STATUS_ENABLED";
         public final static String _ROUTING_STATUS_DISABLED = "_ROUTING_STATUS_DISABLED";
         public final static String _ROUTING_STATUS_UNKNOWN = "_ROUTING_STATUS_UNKNOWN";
         public final static String _HEALTH_STATUS_GOOD = "_HEALTH_STATUS_GOOD";
         public final static String _HEALTH_STATUS_BAD = "_HEALTH_STATUS_BAD";
         public final static String _HEALTH_STATUS_UNKNOWN = "_HEALTH_STATUS_UNKNOWN";
         // This is what will be printed out -- the static text
         private String name = null;
         // If detailedView is not empty, then a link for this item shows up
         // that opens up a Dialogue Box
         private String detailedView = null;
         // If detailedView is not empty, then a link for this item shows up
         // that opens up a completely new Service View
         private String serviceView = null;
         // Layout Information
         private boolean verticalLayout = true; // VERTICAL or HORIZONTAL
         // Coloring Information
         private String routingStatus = _ROUTING_STATUS_UNKNOWN; // ENABLED, DISABLED, UNKNOWN
         private String healthStatus = _HEALTH_STATUS_UNKNOWN; // HEALTHY or NOT-HEALTHY
         // Children
         private Item children[] = null;

  • WebDAV Write Unreliability - Large non-XML Files

    I am unable to get Oracle's WebDAV implementation on Windows XP to reliably store large (1 Megabyte +) files that are not XML, without unexplained errors occurring, which result in only part files being transferred.
    For testing I started using the repository folders created by the XDB Basic Demo, using Windows Explorer WebDAV as the client to insert files of varying sizes. Files in excess of 1 megabyte files fail more often than succeed, but I have occasionally succeeded in storing files of many megabytes. Because they were handy I mainly used ZIP files to insert into the Oracle XML DB repository. When the files were renamed to extension, .xml, they always succeeded.
    To eliminate client error, I have also used DavExplorer with the same symptoms observed. No problems were experienced retrieving large files from the Oracle XML DB Repository. My tests were performed using Oracle 9.2.0.5 and 10.1.0.2. The same problem did not occur when using Oracle's FTP interface, and when using the "native" Apache 1.3 and Apache WebDAV implementations.
    This failure is a major problem for our application, which would otherwise fit very well with Oracle XML DB features. Our application provides an authoring environment for a large collection of small XML files, but also has to allow storage of some related GIF, PDF and Microsoft Offices files. Our customers are large corporates, who would prefer to use Oracle for this requirement and for related data processing requirements.
    In case, it is relevant, we are not restricted to running Oracle on XP, with Unix platforms being a more likely option for our customers.
    I could not find details of the error logged by the Oracle software, using either database version. The only information I have gathered about the failure was provided by adding the following line to sqlnet.ora:
    TRACE_LEVEL_SERVER=4
    The trace output for a failure is as follows:
    [19-MAY-2004 13:46:59:735] nsopen: opening transport...
    [19-MAY-2004 13:46:59:735] nsopen: transport is open
    [19-MAY-2004 13:46:59:735] nsopen: global context check-in (to slot 1) complete
    [19-MAY-2004 13:46:59:735] nsanswer: deferring connect attempt; at stage 1064
    [19-MAY-2004 13:46:59:735] nsc2addr: (ADDRESS=(PROTOCOL=tcp)(DEV=340)(HOST=132.223.134.163)(PORT=8080))
    [19-MAY-2004 13:46:59:735] nttgetport: port resolved to 8080
    [19-MAY-2004 13:46:59:735] nttbnd2addr: using host IP address: 132.223.134.163
    [19-MAY-2004 13:46:59:735] nstimarmed: no timer allocated
    [19-MAY-2004 13:46:59:735] nsclose: global context check-out (from slot 1) complete
    [19-MAY-2004 13:46:59:735] nttcnp: Validnode Table IN use; err 0x0
    [19-MAY-2004 13:46:59:735] nsopen: opening transport...
    [19-MAY-2004 13:46:59:735] nttcnp: Validnode Table IN use; err 0x0
    [19-MAY-2004 13:46:59:735] nttcnp: Validnode Table IN use; err 0x0
    [19-MAY-2004 13:46:59:735] nttcnp: getting sockname
    [19-MAY-2004 13:46:59:735] nttcnp: getting peername
    [19-MAY-2004 13:46:59:735] nttcon: set TCP_NODELAY on 296
    [19-MAY-2004 13:46:59:745] nsopen: transport is open
    [19-MAY-2004 13:46:59:745] nsopen: global context check-in (to slot 1) complete
    [19-MAY-2004 13:46:59:745] nstoControlATO: ATO disabled for ctx=0x055D6FC4
    [19-MAY-2004 13:46:59:745] nsevdansw: exit
    [19-MAY-2004 13:46:59:745] ntt2err: soc 296 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:46:59:745] ntt2err: soc 296 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:46:59:745] ntt2err: soc 296 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:46:59:745] nstoControlATO: ATO disabled for ctx=0x055D3548
    [19-MAY-2004 13:46:59:745] ntt2err: soc 296 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:46:59:745] nstoControlATO: ATO disabled for ctx=0x055D3548
    [19-MAY-2004 13:46:59:745] snttcallback: op = 5, bytes = 232, err = 0
    [19-MAY-2004 13:46:59:745] ntt2err: soc 296 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:46:59:745] nstoControlATO: ATO disabled for ctx=0x055D3548
    [19-MAY-2004 13:46:59:755] snttcallback: op = 5, bytes = 296, err = 0
    [19-MAY-2004 13:46:59:755] ntt2err: soc 296 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:46:59:755] nstoControlATO: ATO disabled for ctx=0x055D3548
    [19-MAY-2004 13:46:59:755] snttcallback: op = 5, bytes = 0, err = 0
    [19-MAY-2004 13:46:59:755] ntt2err: Read unexpected EOF ERROR on 296
    [19-MAY-2004 13:46:59:755] snttcallback: op = 5, bytes = 0, err = 0
    [19-MAY-2004 13:46:59:755] ntt2err: Read unexpected EOF ERROR on 296
    [19-MAY-2004 13:46:59:755] snttcallback: op = 5, bytes = 0, err = 0
    [19-MAY-2004 13:46:59:755] ntt2err: Read unexpected EOF ERROR on 296
    [19-MAY-2004 13:46:59:755] snttcallback: op = 5, bytes = 0, err = 0
    [19-MAY-2004 13:46:59:755] ntt2err: Read unexpected EOF ERROR on 296
    [19-MAY-2004 13:46:59:755] nsdo: transport read error
    [19-MAY-2004 13:46:59:755] nserror: nsres: id=1, op=68, ns=12537, ns2=12560; nt[0]=507, nt[1]=0, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
    [19-MAY-2004 13:46:59:755] nstimarmed: no timer allocated
    [19-MAY-2004 13:46:59:765] nsclose: closing transport
    [19-MAY-2004 13:46:59:765] nsclose: global context check-out (from slot 1) complete
    [19-MAY-2004 13:46:59:765] nsopen: opening transport...
    [19-MAY-2004 13:46:59:765] nsopen: transport is open
    [19-MAY-2004 13:46:59:765] nsopen: global context check-in (to slot 1) complete
    [19-MAY-2004 13:46:59:765] nsanswer: deferring connect attempt; at stage 1064
    [19-MAY-2004 13:46:59:765] nsc2addr: (ADDRESS=(PROTOCOL=tcp)(DEV=340)(HOST=132.223.134.163)(PORT=8080))
    [19-MAY-2004 13:46:59:765] nttgetport: port resolved to 8080
    [19-MAY-2004 13:46:59:765] nttbnd2addr: using host IP address: 132.223.134.163
    [19-MAY-2004 13:46:59:765] nstimarmed: no timer allocated
    [19-MAY-2004 13:46:59:765] nsclose: global context check-out (from slot 1) complete
    [19-MAY-2004 13:46:59:765] nttcnp: Validnode Table IN use; err 0x0
    [19-MAY-2004 13:46:59:765] nsopen: opening transport...
    [19-MAY-2004 13:46:59:765] nttcnp: Validnode Table IN use; err 0x0
    [19-MAY-2004 13:46:59:765] nttcnp: Validnode Table IN use; err 0x0
    [19-MAY-2004 13:46:59:765] nttcnp: getting sockname
    [19-MAY-2004 13:46:59:765] nttcnp: getting peername
    [19-MAY-2004 13:46:59:765] nttcon: set TCP_NODELAY on 296
    [19-MAY-2004 13:46:59:765] nsopen: transport is open
    [19-MAY-2004 13:46:59:765] nsopen: global context check-in (to slot 1) complete
    [19-MAY-2004 13:46:59:765] nstoControlATO: ATO disabled for ctx=0x055D6FC4
    [19-MAY-2004 13:46:59:765] nsevdansw: exit
    [19-MAY-2004 13:46:59:765] ntt2err: soc 296 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:46:59:765] ntt2err: soc 296 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:46:59:765] ntt2err: soc 296 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:46:59:765] ntt2err: soc 296 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:46:59:765] nstoControlATO: ATO disabled for ctx=0x055D3548
    [19-MAY-2004 13:46:59:765] snttcallback: op = 5, bytes = 302, err = 0
    [19-MAY-2004 13:46:59:765] ntt2err: soc 296 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:46:59:775] snttcallback: op = 5, bytes = 8192, err = 0
    [19-MAY-2004 13:46:59:775] snttcallback: op = 5, bytes = 8192, err = 0
    [19-MAY-2004 13:46:59:775] snttcallback: op = 5, bytes = 8192, err = 0
    [19-MAY-2004 13:46:59:775] snttcallback: op = 5, bytes = 8192, err = 0
    [19-MAY-2004 13:47:00:246] nstoControlATO: ATO disabled for ctx=0x055D3548
    [19-MAY-2004 13:47:00:246] nstimarmed: no timer allocated
    [19-MAY-2004 13:47:00:246] nsclose: closing transport
    [19-MAY-2004 13:47:00:366] nsclose: global context check-out (from slot 1) complete
    The trace for a successful transfer is as follows:
    [19-MAY-2004 13:57:28:249] nsopen: opening transport...
    [19-MAY-2004 13:57:28:249] nsopen: transport is open
    [19-MAY-2004 13:57:28:249] nsopen: global context check-in (to slot 1) complete
    [19-MAY-2004 13:57:28:249] nsanswer: deferring connect attempt; at stage 1064
    [19-MAY-2004 13:57:28:249] nsc2addr: (ADDRESS=(PROTOCOL=tcp)(DEV=352)(HOST=132.223.134.163)(PORT=8080))
    [19-MAY-2004 13:57:28:249] nttgetport: port resolved to 8080
    [19-MAY-2004 13:57:28:249] nttbnd2addr: using host IP address: 132.223.134.163
    [19-MAY-2004 13:57:28:249] nstimarmed: no timer allocated
    [19-MAY-2004 13:57:28:249] nsclose: global context check-out (from slot 1) complete
    [19-MAY-2004 13:57:28:249] nttcnp: Validnode Table IN use; err 0x0
    [19-MAY-2004 13:57:28:249] nsopen: opening transport...
    [19-MAY-2004 13:57:28:249] nttcnp: Validnode Table IN use; err 0x0
    [19-MAY-2004 13:57:28:249] nttcnp: Validnode Table IN use; err 0x0
    [19-MAY-2004 13:57:28:249] nttcnp: getting sockname
    [19-MAY-2004 13:57:28:249] nttcnp: getting peername
    [19-MAY-2004 13:57:28:249] nttcon: set TCP_NODELAY on 1420
    [19-MAY-2004 13:57:28:249] nsopen: transport is open
    [19-MAY-2004 13:57:28:249] nsopen: global context check-in (to slot 1) complete
    [19-MAY-2004 13:57:28:249] nstoControlATO: ATO disabled for ctx=0x055D6FC4
    [19-MAY-2004 13:57:28:249] nsevdansw: exit
    [19-MAY-2004 13:57:28:249] nstoControlATO: ATO disabled for ctx=0x055D3548
    [19-MAY-2004 13:57:28:249] ntt2err: soc 1420 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:57:28:249] ntt2err: soc 1420 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:57:28:269] ntt2err: soc 1420 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:57:28:269] ntt2err: soc 1420 error - operation=5, ntresnt[0]=524, ntresnt[1]=997, ntresnt[2]=0
    [19-MAY-2004 13:57:28:369] nstoControlATO: ATO disabled for ctx=0x055D3548
    [19-MAY-2004 13:57:31:374] nstimarmed: no timer allocated
    [19-MAY-2004 13:57:31:384] snttcallback: op = 5, bytes = 0, err = 995
    [19-MAY-2004 13:57:31:384] ntt2err: soc 1420 error - operation=5, ntresnt[0]=530, ntresnt[1]=995, ntresnt[2]=0
    [19-MAY-2004 13:57:31:384] snttcallback: op = 5, bytes = 0, err = 995
    [19-MAY-2004 13:57:31:384] ntt2err: soc 1420 error - operation=5, ntresnt[0]=530, ntresnt[1]=995, ntresnt[2]=0
    [19-MAY-2004 13:57:31:384] snttcallback: op = 5, bytes = 0, err = 995
    [19-MAY-2004 13:57:31:384] ntt2err: soc 1420 error - operation=5, ntresnt[0]=530, ntresnt[1]=995, ntresnt[2]=0
    [19-MAY-2004 13:57:31:384] snttcallback: op = 5, bytes = 0, err = 995
    [19-MAY-2004 13:57:31:384] ntt2err: soc 1420 error - operation=5, ntresnt[0]=530, ntresnt[1]=995, ntresnt[2]=0
    [19-MAY-2004 13:57:31:384] nsclose: closing transport
    [19-MAY-2004 13:57:31:484] nsclose: global context check-out (from slot 1) complete

    Thanks Mark.
    Unfortunately I'm not currently in a position to test on Unix, but understand that I need to do so. It may be a couple of weeks before I can test on Linux, as "IT Support" will need to install an OS version officially supported by Oracle. If we win the work we'll have the required hardware, but we have to demonstrate it working first.
    Note, in my test circumstance transfers work fine using FTP, and only fail using WebDAV when the file extension is not .xml.

  • How to write multiple ejb-jar.xml file in an ejb module

    i am developing an ejb project. I hav a number of entity beans and session beans and their mapping in ejb-jar.xml. As the number of beans increases the entry of beans and mapping is also increasing. So i want to ask u that is there any mechanism so that i can divide the ejb-jar.xml file so that it will be easy to maintain it.

    ejb-jar is the smallest composable unit for related EJB components. Your best bet is to create multiple ejb-jars and package them within the same enterprise application (.ear).

  • Read rtf contents from xml file and print them in pdf using documaker

    I am using Documaker 11.2.
    Input file is XML and for a particular tag, rtf contents is passed like
    {\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial Narrow;}} \viewkind4\uc1\pard\b\f0\fs20 My\b0 name is Schoo.....
    I want to read this data excluding the RTF abstract and print the text alone in pdf along with format like paragraph,bold....
    The output file generated is PDF.
    Kindly let me know how can i achieve this in Documaker.

    There is no direct support for importing RTF from an XML extract. Perhaps feature 1514 "Mapping formatted XML data into multiline field" will be of some use. This was released in 11.0, I believe.
    Essentially you can establish paragraph and certain text formatting like bold and underline when you include the proper token information in the data. I believe this is similar to simple HTML tokens.
    Example: &lt;FIELD>&lt;P>First paragraph of data.&lt;/P>&lt;P>New paragraph with &lt;B>&lt;U>bold and underline text&lt;/U>&lt;/B>. Rest of paragraph normal.&lt;/P>&lt;/FIELD>
    The result is something like this:
    <P>First paragraph of data.</P><P>New paragraph with <B><U>bold and underline text</U></B>. Rest of paragraph normal.</P>

Maybe you are looking for

  • How do I save a video project in Photoshop?

    I am working through a short video . I wanted to resume the project at a later time, how do I return to the project? thanks in advance

  • UDF is not updating in journal Entry rows

    Hi Experts, I have created an UDF in journal entry and trying to insert the values in it based on the transactions. But the UDF is not getting updated through coding where as same query if i run in the SQL database it is getting executed properly and

  • High netbook operating temperature

    good day... is 70-75 degrees celcius normal temperature for netbook? i think it is very high operating temperature.   my unit is HP mini 210-1099ee.

  • Annoying Mail problem I've had for so long, please help!

    Hi everyone, Since as long as I can remember, whenever I attach a JPG, or EPS in Mail to a message for instance, if I send the email to a PC user, they always tell me that there wasn't an image attached??! Now I always have 'save windows friendly att

  • How to avoid seriously bad behaviour in 11g ODBC reading TIMESTAMP fields?

    Hi everyone. I thought that we'd got past all the TIMESTAMP related problems in the ODBC driver, but here is another one! I have a problem which I'd like to share, hoping that someone has an idea why this happens... I have an expensive workaround, bu