XML - Oracle Approach

Hi,
I've a client that is in the begining of a Intranet using Oracle
Portal. They are very excited about this new tool, and ask for
more options to develop some custom applications, this new
applications should work in Oracle Portal and be
reusable with most technologies.
So we thing about XML. However we do not understand XML good
enouth.
Inicial approach leave us to see that components XML/XSL do not
work in Oracle Portal as they work in Microsoft Internet Explorer
5.0.
The documentation on Oracle Web sites doesn't help because it's
to techical an have few examples. We do not want to ask Database
API's because this make the application exclusive to oracle
database technology.
Can anyone tell me when could i find some information about using
XML & XSL in Oracle techologie. The XSL is very important in this
case baecause the "end product" should have good looking.
Any comments will be weelcome
Pedro Ribeiro

OTN's XML Home
page is a good place to start. There's a section at the
bottom of the page called, "For Those New to XML."
You might also be interested in the article
[url=http://otn.oracle.com/tech/xml/htdocs/xml_in_oracle_apps.htm
]Using XML in Oracle Database Applications.
Also, because you are interested in Oracle9iAS Portal, you will
probably find helpful information and examples in OTN's
Portal Studio.
Regards,
-rh

Similar Messages

  • Relational and/or XML DB approach

    Hi:
    I have some (lots of!) questions regarding the proper use of and mixing of relational aspects of Oracle 9i/10g and the XML DB part.
    Assume I have a large amount of free text documents (e.g., emails or something) and those documents contain certain data I am able to parse out (names, addresses, emails addreses, etc.).
    I want to store the entire document as a CLOB or something at some level so that I can do an Oracle Text search on any word or phrase and find the documents that contain it. But I also want to be able to make queries like "return address_info where last_name like '%sm%'" or something. What's the best (for search flexibility, maintainability, loading, etc.) way to do this? I have a situation where sometimes I'll just want to search for keywords or phrases where they occur ANYWHERE in the document, and sometimes I'll want to search for a field with a certain value (e.g. LAST_NAME). And for those regular table type queries, I'll of course want to do joins and oother normal DB things.
    Here are some options I see. Any comments on them? Am I missing anything?:
    1) I can store the structured information in separate tables IN ADDITION to the document as a CLOB. But this means storing certain data twice.
    2) I can try and make the document and XML document with the proper "<LAST_NAME>SMITH</LAST_NAME>" type info in it and possibly use Oracle Text with tag searching??
    a) But won't I pretty much lose the ability to EFFICIENTLY do joins and things like that as I could if that information is in a regular table?
    b) Performance-wise, don't I pretty much need to use an XML Schema backed table? That means I can't just put any old XML in the CLOB, it needs to conform to a certain SCHEMA. When that changes, I have to reload all the XML CLOB data :(
    c) If I have different types of documents and put them each in their own XML Schema based tables, then make Oracle Text indexes on each one, can a query that searches multiple Context Indexes be parallelized efficiently by Oracle?
    3) What are the performance issues (i.e., is it OK or "don't even think about it") of storing the docs as XML CLOBS and creating Object/Relational views for the relational queries of names, addresses, etc.?
    3) What are the ramifications in the different approaches if I have a "large" number of new documents to load each day?

    Hi,
    Possibly you can your XML DB related queries in the OTN XMLDB forum at the following URL for speedier response: XML DB
    -Shefali

  • XML - Oracle Aproach

    Hi,
    i've recently try to user the XML Component in Oracle Portal.
    I've done a few examples and i have a couple of questions.
    Can i create a portlet with XML & XSL.
    Where can i find documentation about XSL commands that Oracle
    Portal understands?
    Take a look at this sample. I want to build a report
    with this information, this information should be order by
    "DESCRICAO". Result: Oracle Portal seems to ignore this command.
    I've the same kind of problems with other examples. This examples
    works great using Microsoft ( Internet Explorer 5.5 ).
    Any information is welcome...
    Pedro Ribeiro
    Here is the example code:
    XML
    <?xml version="1.0"?>
    <ORGANIGRAMA>
    <DEPARTAMENTO>
    <ID>1</ID>
    <DESCRICAO>y</DESCRICAO>
    <OUTROS>Departamento 1</OUTROS>
    <PAI>0</PAI>
    </DEPARTAMENTO>
    <DEPARTAMENTO>
    <ID>2</ID>
    <DESCRICAO>b</DESCRICAO>
    <OUTROS>Departamento 2</OUTROS>
    <PAI>1</PAI>
    </DEPARTAMENTO>
    </ORGANIGRAMA>
    XSL
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">     
    <xsl:template match="/">
    <html>
    <body>
    <table border="0" bgcolor="yellow">
    <tr>
    <th>Id</th>
    <th>Descricao</th>
    <th>Outros</th>
    <th>Pai</th>
    </tr>
    <xsl:for-each select="ORGANIGRAMA/DEPARTAMENTO"
         order-by="+ OUTROS">
    <TR><td bgcolor="blue"><xsl:value-of select="ID"/></td>
    <td><xsl:value-of select="DESCRICAO"/></td>
    <td><xsl:value-of select="OUTROS"/></td>
    <td><xsl:value-of select="PAI"/></td>
    </TR>
    </xsl:for-each>
    </table>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>

    Your namespace tag has some problems.
    It should read like the following.
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    Try creating with this namespace tag, and let us know if u encounter any new problems.
    Thanks,
    Balakrishnan.

  • How to create an XML Oracle database schema

    Hello, I would like to generate an XML file that contains the schema of my Oracle database so that I can reference one file for column names and table names. I do not need any data from the tables, just the basic layout: e.g. table names, their respective column names.
    Obviously, I would like the ability to generate this file each time we make changes to our DB, so its generation will be an ongoing process.
    My question is, what is the best tool for this? Or the most widely accepted? Can anyone help with this?

    To get database metadata as XML use Oracle Web RowSet.
    //Import the oracle.jdbc.rowset package classes.
    import oracle.jdbc.rowset.*;
    //Import the RowSetMetaDataImpl class.
    import javax.sql.rowset.RowSetMetaDataImpl;
    //Create a OracleWebRowSet class.
    OracleWebRowSet webRowSet=new OracleWebRowSet();
    /*Set the datasource name to obtain a JDBC connection with the database. The datasource name is configured in the data-sources.xml file. */
    webRowSet.setDataSourceName("jdbc/OracleDataSource");
    //Set the SQL query command for the OracleWebRowSet class object.
    webRowSet.setCommand(selectQuery);
    selectQuery is a SQL command variable which is input from a JSP.
    //Set the username and password to obtain a JDBC connection.
    webRowSet.setUsername("OE");
    webRowSet.setPassword("<password>");
    //Set the read only, fetch size and max rows attributes of the OracleWebRowSet object.
    webRowSet.setReadOnly(false);
    webRowSet.setFetchSize(5);
    webRowSet.setMaxRows(3);
    //Run the SQL command specified in the setCommand() method.
    webRowSet.execute();
    /*A Web RowSet gets created consisting of the data retrieved from the database table with the SQL query.  Generate an XML document from the WebRowSet.*/
    OutputStreamWriter output=new OutputStreamWriter( new
    FileOutputStream(new File("c:/output/output.xml")));
    webRowSet.writeXml(output);

  • JAAS, jazn.xml, & oracle.security.jazn.config

    I have a swing application using LDAP to authenticate users that will typically be launched via Java Web Start, thus the application is deploy using a jar file.
    I can run this application from JDev or from the command-line when the jazn.xml file is located in the root (start-in) directory.
    Unfortunately, when the jazn.xml file is only in the jar file (as it would be when launched via JWS) the application cannot find it and throws an exception:
    oracle.security.jazn.JAZNInitException: d:\path\.\jazn-data.xml (The system cannot find the file specified).
    I found some documentation that indicates that I can specify the path to the jazn.xml file with
    System.setProperty("oracle.security.jazn.config", "path/to/jazn/xml/file");
    If I set it to a relative path without the filename on the end (ex. "./my/path" or "my/path") I get the above exception.
    If I set it to a relative path with the filename (ex. "./my/path/jazn.xml" or "my/path/jazn.xml") it works.
    What I can't figure out is how to tell it that it is in a jar file that is in my classpath. It doesn't find it from the path examples above. I've tried things like "client.jar/jazn.xml", "d:/my/path/client.jar/jazn.xml", and a host of other things with the jazn.xml filename on the end.
    Oddly enough, when I set it to "d:/my/path/client.jar" I get a different exception:
    Caused by: oracle.security.jazn.JAZNInitException: no protocol: "ldap://hostname.com:389">
         at oracle.security.jazn.spi.xml.FSXMLStore.<init>(FSXMLStore.java:128)
         ... 59 more
    Caused by: java.net.MalformedURLException: no protocol: "ldap://hostname.com:389">
         at java.net.URL.<init>(URL.java:537)
         at java.net.URL.<init>(URL.java:434)
         at java.net.URL.<init>(URL.java:383)
    So it seems like it read the file but parsed it incorrectly. Any ideas?

    Thanks for the reply Yvonne. Sorry I haven't updated this after my testing. I think you're close to correct.
    I did some more testing and figured out that any time the protocol is included in a path (protocol://d:/my/path/client.jar) that jazn does not understand. When the referenced file (jazn.xml) is in a jar file, it includes the protocol in the path. For example the path to the jazn.xml file (the value that the java.security.auth.policy property needs to be set to) would be jar:file://my/path/client.jar!/my/path/jazn.xml
    I think the oracle.security.jazn.spi.PolicyProvider (the value of the java.security.auth.policy.provider property) causes the jazn.xml file to be read. That class is, I think, what fails to find that file because it doesn't understand when the protocol (jar:file:) is included in the path to the file. That's my guess anyway.
    I did figure out a work around and it goes like this:
    1. create a new jazn.xml file
    File tmp = new File ("jazn.xml");
    2. and set it to be deleted on exit
    tmp.deleteOnExit();
    3. get a ByteArrayInputStream for the jazn.xml file and read it out of the jar file.
    4. then write the stream to the tmp file
    5. then set the system property
    System.setProperty("java.security.auth.policy", tmp.toURL().getPath());
    It is kind of a pain since I have to check to see if the property I'm setting is "jazn.xml", but it seems to work.
    I think the oracle.security.jazn.spi.PolicyProvider problem is a defect, which I'll report on meta-link.
    tcoker

  • For XML - Oracle Equivalent:

    Hey people,
    I was wondering... SQL server has the 'for xml path' clause; does oracle have its equivalent?
    I wasn't able to find any leads online. Thought the experts here'd know.
    Thanks.
    Edited by: user10175043 on May 23, 2011 11:06 AM

    See this,
    XML parent child records
    G.

  • XML Processing Approaches with Java

    When I want to manipulate and retrieve data from XML file,
    I used to use DOM or SAX, and this is JAXP API from Sun.
    Some people told me I should use XPath instead, since it's easier for coding.
    But we need to use apache's xalan library.
    What do u think? please advise whats the best approaches to
    manipulate XML files. thanks!!

    Yo!
    Please look at my post from Jun 27, 2004 12:49 PM at this page. Maybe that's the answer for your question (hope so!).

  • C# , XMl, Oracle 9i

    I am developing a windows forms application using C#.NET, which reads an XML file and creates four objects based on the content found in the xml file. Each of the four objects relate directly to 4 tables in Oracle. My question is, having the information to populate into each of these tables, what is the best way to go about and accomplish this by making sure that proper update/insert's take place and that all data gets loaded in one shot? Transactions will be used in here, however getting the data from the objects to the tables is something that I am having a hard time figuring out, and to find a best possible solution to do so.
    Any ideas/suggestions are appreciated.
    Cheers

    There's a number of ways you can update/insert in one round trip. You can use anonymous PL/SQL or you can use parameter array binding.
    You'll find an example of anonymous PL/SQL here within the Ref Cursor example:
    https://www.oracleworld2003.com/published/40167/40167_Keh.zip
    You'll find how to use parameter array binding here:
    http://download-west.oracle.com/docs/html/A96160_01/features.htm#1049674

  • XML, Oracle and Namespaces

    Do any of the current XML parsers support namespaces?
    If not how can the idea of external DTD or schema be used
    Will Oracle be supporting schemas
    null

    martin Roberts (guest) wrote:
    : Do any of the current XML parsers support namespaces?
    : If not how can the idea of external DTD or schema be used
    : Will Oracle be supporting schemas
    Our current parsers support namespaces and will support schemas
    once things settle down in that WG.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • XML / Oracle BI / Microsoft Word / Easy solution?

    Hello everyone,
    I'm working for the first time with this, so be gentle on me ;)
    I have a simple XML:
    <TEST>
    <SECTION>A2
    <TEXT> ABCDEFG </TEXT>
    </SECTION>
    <SECTION>A1
    <TEXT> JKLMNOP </TEXT>
    </SECTION>
    </TEST>
    How can i do the condition :
    if SECTION = A1 , show TEXT(in the text element)...
    <?if@column:SECTION!= 'A1'?><?TEXT?><?end if?>
    But this is only showing the text = ABCDEFG .
    Help? :D

    I'd like to add an Oracle BI plug in for Microsoft Word 2007 No worries, just run "OracleBIOffice.exe -AddOracleBIpluginWord"...

  • Xml oracle tool

    Is there any configurable tool that can take XML in, apply business rules and then call PL/SQL procedures at the back end.

    To ways might help:
    You can use the Oracle DB Adapter XML Modeling tools to map between the XSDs and the data model in the Oracle Database (I assume it is a set of relational tabels). In the mapping, you will find if certain field names are inconsistent.
    Or you can generate XML schemas from the data model in the Oracle Database using DBMS_XMLSchema and compare the XSD with your defined XSD using Oracle XDK XML Diff.

  • Building Oracle XML Application Book....

    Has anyone purchased the 'Building Oracle XML Applications' book and do they have any opinions on it? Useful?

    It it currently orderable, and is planned to ship by September 31st/October 1st, just in time for the Oracle OpenWorld conference.
    The full table of contents (which eventually should be put also up on the O'Reilly Site) is:
    Preface
    Audience for This Book
    Which Platform and Version?
    Structure of This Book
    Chapter Summaries
    About the Examples
    About the CD-ROM
    Conventions Used in this Book
    Comments and Questions
    Acknowledgements
    Part 1: XML Basics
    Chapter 1: Introduction to XML
    What Is XML?
    What Can I Do With XML?
    Why Should I Use It?
    What XML Technology Does Oracle Provide?
    Chapter 2: Working with XML
    Creating and Validating XML
    Modularizing XML
    Searching XML with XPath
    Part 2: Oracle XML Fundamentals
    Chapter 3: Combining XML and Oracle
    Hosting the XML FAQ System on Oracle
    Serving XML in Any Format
    Acquiring Web-Based XML Content
    Chapter 4: Using JDeveloper for XML Development
    Working with XML, XSQL, and JSP Files
    Working with Database Objects
    Using JDeveloper with Oracle XDK Components
    Chapter 5: Processing XML with PL/SQL
    Loading External XML Files
    Parsing XML
    Searching XML Documents with XPath
    Working with XML Messages
    Producing and Transforming XML Query Results
    Chapter 6: Processing XML with Java
    Introduction to Oracle8i JServer
    Parsing and Programmatically Constructing XML
    Searching XML Documents in Memory Using XPath
    Working with XML Messages
    Producing and Transforming XML Query Results
    Chapter 7: Transforming XML with XSLT
    XSLT Processing Mechanics
    Single-Template Stylesheets
    Understanding Input and Output Options
    Improving Flexibility with Multiple Templates
    Chapter 8: Publishing Data with XSQL Pages
    Introduction to XSQL Pages
    Transforming XSQL Page Results with XSLT
    Troubleshooting Your XSQL Pages
    Chapter 9: XSLT Beyond the Basics
    Using XSLT Variables
    The Talented Identity Transformation
    Grouping Repeating Data Using SQL
    Sorting and Grouping Repeating Data with XSLT
    Chapter 10: Generating Datagrams with PL/SQL
    Programmatically Generating XML Using PL/SQL
    Automatic XML Generation with DBXML
    Chapter 11: Generating Datagrams With Java
    Generating XML Using Java
    Serving XML Datagrams Over the Web
    Automatic XML from SQL Queries
    Chapter 12: Storing XML Datagrams
    Overview of XML Storage Approaches
    Loading Datagrams with the XML SQL Utility
    Storing Posted XML Using XSQL Servlet
    Inserting Datagrams Using Java
    Chapter 13: Searching XML with interMedia
    Why Use interMedia Text?
    What is interMedia Text?
    The interMedia Text Query Language
    Handling Heterogeneous Doctypes
    Handling Doctype Evolution
    Advanced interMedia Text
    Chapter 14: Advanced XML Loading Techniques
    Storing Datagrams in Multiple Tables
    Building an XMLLoader Utility
    Creating Insert Transformations Automatically
    Part 3: Oracle XML Applications
    Chapter 15: Using XSQL as a Publishing Framework
    Overview of All XSQL Pages Facilities
    Additional XML Delivery Options
    Chapter 16: Extending XSQL and XSLT with Java
    Developing Custom XSQL Actions
    Integrating Custom XML Sources
    XSLT Extension Functions
    Chapter 17: XSLT-Powered Portals and Applications
    XSLT-Powered Web Store
    Personalized News Portal
    Online Discussion Forum
    Part 4: Appendices
    Appendix 1: XML Helper Packages
    Installing the XML Helper Packages
    Source Code for the XML Helper Packages
    Appendix 2: Installing Oracle XSQL Servlet
    Installing
    Appendix 3: Conceptual Map to XML Family
    Appendix 4: Quick References

  • Oracle Open World 2012 - XML DB Presentations and Hands-on Labs

    Hereby following up on a small tradition, I think, I get going since 2006...an agenda overview of all things XMLDB you can do or see during this years Oracle Open World.
    Oracle Open World is the biggest IT conference nowadays in the world with 40.000+ thousand attendees and 1600+ sessions or workshops, so an overview regarding specific topics can be handy.
    If there is an update or something needs correction or added, please post it here.
    Regards
    Marco Gralike
    HOL10055 - Oracle XML DB Hands-On Lab
    ========================================================================================================================
    This hands-on lab provides an introduction to using Oracle XML DB and XQuery to store and manage XML content stored in Oracle Database.
    It introduces the different kinds of XML storage and indexing offered by Oracle XML DB and shows how to optimize XQuery operations on XML
    content by selecting the correct storage and indexing model. The lab also provides an introduction to the XML features available in the latest
    version of Oracle Database, including the new XQuery Update standard. And it shows how to take full advantage of the latest XQuery standards,
    such as XQuery Full-Text, to develop applications that combine the power of Full-Text and XML-based indexes
    BOF9908 - Oracle XML DB BOF
    ========================================================================================================================
    This session provides you with an opportunity to get answers to your questions about Oracle XML DB from the development team, product
    management team, acknowledged independent experts, and fellow Oracle XML DB users. The goal is to have an open and frank discussion
    about how to get the best out of all the features of Oracle XML DB. The session gives you a chance to establish personal contact with the
    people who have firsthand experience with developing and delivering systems that make use of Oracle XML DB
    CON8443 - Simple Content Management with Oracle XML DB and Database Native Web Services
    ========================================================================================================================
    This session demonstrates the power of the Oracle XML DB repository. You will learn how to automate the processing of documents stored
    in the Oracle XML DB repository, using repository events, and how to combine XML, PL/SQL, and database native Web services with Ajax and
    JavaScript to create simple, effective applications that leverage the full power of Oracle XML DB and the Oracle XML DB repository. The session
    focuses on a sample application, called XFiles, and shows how it was created with a combination of XML, XSL, JavaScript Ajax, and PL/SQL
    CON8440 - Managing XML Content with the Latest-Generation Oracle XML DB
    ========================================================================================================================
    This session introduces the latest generation of Oracle XML DB technology. XML standards continue to evolve, and Oracle XML DB continues
    to provide the industry’s leading implementation of those standards. The latest version of Oracle XML DB provides support for two new exciting
    XML standards, XQuery-Update and XQuery-Full Text. You will learn how to use XQuery, XQuery-Update, and XQuery Full-Text to develop
    powerful XML-centric applications. The session also demonstrates how to optimize XQuery Full-Text operations with Oracle’s new XML full-text
    index. The presentation also introduces Oracle’s new midtier XQuery engine and the XQJ API, which enables Java developers to access the full
    power of Oracle’s XML technology
    CON3148 - Integrating XML by Using Oracle SQL Developer 3.1 and Oracle Database 11g Release 2
    ========================================================================================================================
    Frequently during a project lifecycle, new technology is introduced that presents first-time challenges. This session describes a project using
    Oracle XML Database (Oracle XML DB) and discusses why Oracle XML DB was chosen, how it was used, and the technical issues encountered.
    The presentation covers several examples using XMLTYPE, CLOBs, Oracle XML DB methods, XMLAGG, XMLELEMENT, XMLFOREST, and
    dbms_xmldom. You will learn about methods, design considerations, and issues with Oracle XML DB. You will also take home working examples
    that you can copy and paste into your Oracle environment. Benefit from examples that use Oracle Database 11g Release 2 and Oracle SQL
    Developer 3.1.
    CON8442 - Design Guidelines and Performance Tuning for Storing XML in Oracle Database
    ========================================================================================================================
    This session examines techniques that can be used to optimize the performance of XML processing in Oracle XML DB. It looks at the different
    storage and indexing options and provides guidelines on when each should be considered. After establishing a framework for deciding how to
    store XML, the presentation considers the options available for indexing XML to ensure optimal performance of an XML-based application.
    The session also discusses how standard techniques such as partitioning and using parallel data manipulation language (PDML) can be used to
    scale XML processing on extremely large volumes of XML content and how Oracle XML DB can leverage the intelligent storage capabilities of
    Oracle Exadata.
    DEMOGROUNDS (Moscone South)
    XML Application Development: Oracle XML DB, Oracle XML Developer Kit
    ========================================================================================================================
    Oracle XML Database provides a high-performance, native XML storage and retrieval technology. It fully absorbs the W3C XML data model into
    the Oracle Database, and provides new standard access methods for navigating and querying XML. With Oracle XML Database, you get all the
    advantages of relational database technology plus the advantages of XML. Come and learn how to develop applications that take advantage
    of Oracle's XML technology and the Oracle XML DB Repository.
    Oracle XML Database: Structured, Semistructured, and Unstructured XML
    ========================================================================================================================
    Oracle XML Database provides a high-performance, native XML storage and retrieval technology. It fully absorbs the W3C XML data model into
    the Oracle Database, and provides new standard access methods for navigating and querying XML. With Oracle XML Database, you get all the
    advantages of relational database technology plus the advantages of XML. Come and learn how to develop applications that take advantage
    of Oracle's XML technology and the Oracle XML DB Repository.Oracle's OOW 2012 Content Catalog: https://oracleus.activeevents.com/connect/search.ww?event=openworld (use "XML DB" or "XMLDB" as search tag)
    Edited by: user10212268 on Aug 13, 2012 5:10 AM

    Other resources are also on linkedin http://www.linkedin.com/groups/Oracle-XMLDB-3282943 to keep you updated.
    M.

  • How to export an XML file from oracle database?

    plz help me its urgent requirement....could u pls tell me the step by step procedure for following questions...?how to export a data as an XML file from oracle database?
    thanks in advance,
    Bala.
    Edited by: user3523292 on Nov 14, 2008 5:43 AM

    user3523292 wrote:
    plz help me its urgent requirement....could u pls tell me the step by step procedure for following questions...?how to export a data as an XML file from oracle database?
    thanks in advance,
    Bala.
    Edited by: user3523292 on Nov 14, 2008 5:43 AMThis is a forum of volunteers. There is no "urgent" here. Nevertheless, a google search of 'xml oracle export' quickly lead me to this Oracle site:
    otn.oracle.com/sample_code/tech/xml/index.html
    I also see lots of hits when I search the documentation library at tahiti.oracle.com for 'xml'. This one in particular may be what you are looking for:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14252/adx_j_xsu.htm#ADXDK070

  • Oracle java XML API - extract

    I am using XML oracle Java API, I need to extract tge DOC value, its not working for me
    XMLTYPE xml ="
    <PurchaseOrder>
    <Reference>ADAMS-20011127121040988PST</Reference>
    <DOC>SCOTT</DOC>
    <Date>2002-03-31</Date>
    </PurchaseOrder>";
    System.out.println("Testing extract() ...");
    try {
    System.out.println(" length of text in DOC tag " + (xml.extract("/PurchaseOrder/Reference/DOC/text()",null).getStringVal()));
    catch (SQLException e) {
    System.out.println("Thin driver Expected exception: " + e);
    Throwing java.sql.SQLException
    any help please? is there anyother way to extract the value?

    I guess this might help you..
    Use XPATH if you are reading for a single value in xml .
    It will be more cleaner...
    String doc= "//PurchaseOrder/Reference/DOC/text()";
    Call this in your class using some value
    Suppose
    setting_to_some_variable.setWhateverDoc(getNodeValueFromDocUsingXPath(doc));
              address
    private String getNodeValueFromDocUsingXPath(String xpathString) {
              try {
                   XPath xpath = xPathFactory.newXPath();
                   XPathExpression expr = xpath.compile(xpathString);
                   Node aNode = (Node) expr.evaluate(doc, XPathConstants.NODE);
                   if (aNode != null) {
                        return aNode.getNodeValue();
              } catch (XPathExpressionException xpe) {
                   xpe.printStackTrace(System.out);
              return null;
         }

Maybe you are looking for

  • Envelope printing using HP LaserJet CP1525nw color

    I have been trying to print envelopes on our above printer.  My document is in Word and is formatted accordingly for a #10 business envelope. Under HP's help feature, I found the appropriate info on how to set up my document's printing options so it

  • Dock frozen from time to time after Yosemite upgrade???

    powerbook upgrade to Yosemite. Now my computer is slower and my dock freezes from time to time. Any idea how to fix the problem? Thanks

  • Help fixing archive error

    It seemed pretty straight forwarding multiplexing redo and archivelogs... - Guess not:) I hope someone can help me? The db is 11.1.0.7 and the OS is windows 2003. When redo transfers - my DB server gets a dos wiindow which displays: "Waring - the fol

  • Offline form submit

    Hi guys! I'm developing a forms solution with FormsCentral. I need some light in a particular aspect of it. But first, the big picture: It's a form system for teachers to use, to write reports on the classes they give. It's a music school, so the for

  • How long does a reset take?

    How long does a erase all content and reset take to complete on an iPad 2?