Navigate in XML tree

Hi
I use oracle 10g.
what is the best tool to navigate in XML tree and to analize it.when I dont no the exact structure of the xml.
for example
I need to do some action like DFS search and to set whiget to each tag
is dbms_xmldom is the only option or there is some more simple component?
Kfir

What do you mean by "navigate"? Anyway currently there are 4 products that come to mind...
1) SQL Developer 1.1 (freeware) you can find it here: http://sueharper.blogspot.com/2006/11/oracle-sql-developer-11-evaluation.html
2) JDeveloper: download it via otn.oracle.com
2) Latest version of TOAD (use google to find it)
3) XMLSpy from Altova (use google to find it)

Similar Messages

  • XML-tree in memory after closing XmlResults

    Hi,
    is there a way to have a parsed xml-tree in memory which represents XmlValue objects after I close corresponding XmlResults. I want to have smth like nu.xom.Document (or any analogues).
    The closest solution I've found so far is getting node handle, and then reconstruct XmlResults out of it by calling XmlContainer.getNode(java.lang.String). But it's not exactly what I want to have. I might not have an access to the container object, or it might be closed already. The another poor-man solution is to get a string by XmlValue.asString() and feed it into e.g. XOM's Builder.build(). But it's tremendously inefficient.
    Does anybody have smth better in his mind?
    P.S. I still want to retrieve documents lazily, but in case of a necessity get an XML-tree into memory.
    Thanks,
    Vyacheslav

    Thanks, George! I'm eager to have the new release :-) When is it approximately going to appear?
    Maybe XmlDocument.fetchAllData() can serve as a temporary solution for the current release?
    P.S. I was thinking about that integration with XOM (or something like this would be great).
    Vyacheslav
    Edited by: detonator413 on Feb 27, 2009 7:12 AM

  • Deleting Nodes from XML Tree (JTree)

    I have created a XML Tree(extended from JTree) using XNodes ( extended from DefaultMutableTreeNode)
    After some insertions, i need to delete certain nodes from the XML Tree.. but after deletion, XNode will be null.
    subroutine is as follows...
    appreciates any advice
    Thanx
    private XNode RemoveExtraNode( XNode xNode ){
    int child;
    String nodeType;
    XNode childNode=null;
    if ( (child=xNode.getChildCount() ) > 0){
    for(int i=0;i<child;i++){
    childNode=(XNode)xNode.getChildAt(i);          
         nodeType = childNode.getType();
         if(nodeType.equals("DTD") )
         childNode.removeFromParent();
    }//end for (int i=1;i<child;i++)
    }//endif((child=xNode.getChildCount())!=0)
    return xNode;     
    }//RemoveExtraNode

    Hi IKEDA
    Thanx for the reply.
    I have tried xNode.remove(childNode) b4 and it still return a null JTree.
    Anyway fyi i discover i can delete last child of xNode and return the correct java tree. therefore to delete a node of my choice i simply insert its next sibling nodes in its place and delete that particular node when it becomes the last child.

  • Java.io.NotSerializableException: com.sun.xml.tree.XmlDocument

    Hi,
    I got this error when my servlet is trying to parse a xml document:
    RuntimeRemoteException( java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.xml.tree.XmlDocument )
    And my application runs ok when Tomcat is used as servlet container, but it runs into problem when iPlanet is used.
    Any idea?
    Thanks in advance!

    Thanks for your reply.
    The EJBs in the application are all stateless beans. The error happens at the servlet side, not the EJB side. When the servlet tries to parse the returned XML document using xalan 1.0, the error happened. However, I can not reproduce the error when I use Tomcat as servlet container.
    here is how I coded:
    XSLTProcessor processor = XSLTProcessorFactory.getProcessor(new org.apache.xalan.xpath.xdom.XercesLiaison());
    XSLTInputSource xmlSource = new XSLTInputSource(doc);
    XSLTInputSource xslSheet = new XSLTInputSource("file:"+xslFile);
    Writer out = new StringWriter();
    XSLTResultTarget xmlResult= new XSLTResultTarget(out);
    processor.process(xmlSource,xslSheet,xmlResult);

  • Com.sun.xml.tree

    Hi all,
    I am new to JAVA's XML related capabilities. I am trying to compile a program which imports com.sun.xml.tree for some reason. But I am not able to find which jar file it actually needs for this package and where to get it from. Can somebody please help?
    Thanks alot,
    Ritesh Maheshwari

    This is a common problem that is a result of improper use of the JAXP libraries.
    The com.sun.xml.tree package is an implementation package that was part of the JAXP 1.1 (I culd be wrong about the number) but is not part of the new versions that come with 1.4.
    The person whoe wrote the code should never have used that package directly. In fact if you look at the Java docs for that package is specifically states not to use the classes directly.
    Most likely the code uses the conm.sun.xml.tree.XmlDocument class to write a DOM document to a file.
    If that is the case I can provide replacement code that will work in 1.4

  • Where to get  om.sun.xml.tree.XmlDocument library

    Can some one help me on the following problem?
    I am using a DOM paser and I need to print out the modified xml file. So I want to use the write funcition defined in the com.sun.xml.tree.XmlDocument library. But this package is NOT included in JAXP package. Where shall I get this om.sun.xml.tree.XmlDocument library?
    Any help is greatly appreciated.

    Let me guess, you want to write a DOM document
    to text. right?Wow, I'm a real mind reader considering you said as much in your post :{                                                                                                                                                                                                                                                                                       

  • XML TREE calling external .swf

    Thanks to some research and the help from you guys, I am
    getting the hand of
    this XML tree business for Flash 8.
    Now, my question to you is this:
    How can I create a clickable link for (let's say) my nome
    Fornecedor 1.
    I would like to click on this link and call an external .swf,
    which I would
    load into an empty MC.
    Thanks again!
    <node label="Comercio e Servicos">
    <node label="Materiais Basicos">
    <node label="areia">
    <node label="SP">
    <node label="Fina">
    <node label="Fornecedor 1" /> //
    THIS WOULD BE THE CLICKABLE ITEM to call an external swf.
    <node label="Fornecedor 2" />
    </node>
    <node label="Media">
    <node label="Fornecedor 1" />
    <node label="Fornecedor 2" />
    </node>
    <node label="Grossa">
    <node label="Fornecedor 1" />
    <node label="Fornecedor 2" />
    </node>
    </node>

    To sum up:
    Clicking on a <node label> to call an external .swf
    "Sergiomon" <[email protected]> escreveu na
    mensagem
    news:eli0tj$aqd$[email protected]..
    > Thanks to some research and the help from you guys, I am
    getting the hand
    > of this XML tree business for Flash 8.
    >
    > Now, my question to you is this:
    >
    > How can I create a clickable link for (let's say) my
    nome Fornecedor 1.
    > I would like to click on this link and call an external
    .swf, which I
    > would load into an empty MC.
    >
    > Thanks again!
    >
    >
    >
    > <node label="Comercio e Servicos">
    > <node label="Materiais Basicos">
    > <node label="areia">
    > <node label="SP">
    > <node label="Fina">
    > <node label="Fornecedor 1" /> //
    > THIS WOULD BE THE CLICKABLE ITEM to call an external
    swf.
    > <node label="Fornecedor 2" />
    > </node>
    > <node label="Media">
    > <node label="Fornecedor 1" />
    > <node label="Fornecedor 2" />
    > </node>
    > <node label="Grossa">
    > <node label="Fornecedor 1" />
    > <node label="Fornecedor 2" />
    > </node>
    > </node>
    >

  • XML Tree Overview

    Hi,
    Is there a XML Tree Overview out there?
    Like to see all the parameters I can add in my XML tree when I build my XML (.srf) Form.
    Edited by: Rune Brattas on May 5, 2008 2:43 PM

    Hi Rune,
    as much as i know there's no XML tree description.
    create yourself one with the screenpainter.
    place every item type on the screen and save it.
    i know its not sexy or really helpful ...
    good night & regards
    David

  • Where is com.sum.xml.tree.XmlDocument

    Is there somebody who can tel me where to find
    class com.sun.xml.tree.XmlDocument. I have some samples which i want to compile but i get a message that the XmlDocument class is not found. In my Jaxp classes is no class with that name.
    So if there is somebody who knows that please answer
    With greetings in previous M.Grosser

    The new implementation of JAXP does not use com.sum.xml.tree.XmlDocument. I would also avoid using any of the implementation classes in any DOM package. My ex-coworker used this com.sum.xml.tree.XmlDocument and now we have to rewrite that code because our the new version or our application server automatically comes with the new version of JAXP and we get class cast exceptions. Even if you look at the API for any DOM implementation class you should see a warning saying that the classes could change without warning. Don't use them.

  • Looking for com.sun.xml.tree package

    Hi,
    I�m looking for a jar which contains the XmlDocument class to download.
    I found the package, (it�s com.sun.xml.tree) but I cannot find where the package/jar is to download it.
    Your help will be much appreciated.
    Thank you,
    Chris

    I have all latest jars (jaxp, xerces, xalan, jdom, dom4j and any related jars). I have w3c DOM and i have been trying to convert it to JDOM and dom4j using relevant APIs. i keep getting following error.
    Exception in thread "main" java.lang.AbstractMethodError: com.sun.xml.tree.Eleme
    ntNode.getNamespaceURI()Ljava/lang/String;
    at org.dom4j.io.DOMReader.readElement(DOMReader.java:181)
    at org.dom4j.io.DOMReader.readTree(DOMReader.java:106)
    at org.dom4j.io.DOMReader.read(DOMReader.java:88)
    Can you advise what could be the reason and how to resolve this?
    FYI : my w3c DOM has been created with com.sun.xml.tree.XmlDocumentBuilder class and other methods of the package. I need to resolve this error at earliest to move forward.
    I would apprecaite early response at [email protected]
    Thanks,

  • Where is com.sun.xml.tree.XmlDocument ???

    Where can I get this package (com.sun.xml.tree.*) ???
    Where where where can iiiii get ?????????
    Please, where?

    Hey guys,
    I've got the same problem.
    please help me to [email protected]
    Thanks.
    Basically, i am running a program which needs to import "com.sun.xml.tree.XmlDocument", but the system can't find it!!
    I've downloaded J2SE 5.0 already, was thinking JAXP already included, but still not working. Can somebody tell me why please?
    Big thanks again
    ^__^

  • Import  com.sun.xml.tree.XmlDocument

    Hello! Can some one help me on the following problem?
    I am writing a DOM parser and I need to print out the modified xml file. So I want to use the write funcition defined in the com.sun.xml.tree.XmlDocument library. But this package is NOT included in JAXP package. Where shall I get this com.sun.xml.tree.XmlDocument library?
    Any help is greatly appreciated.

    You are WRITING an XML parser? Hopefully you meant that you were USING an XML parser. If you are using JAXP (which does include an XML parser) then you don't need that package to output XML. The example you got that idea from is obsolete.
    If your question is "How to use JAXP to write XML from a Document object?" then this is a FAQ here. Perhaps the search function is working and you could find the answer in this forum; I recall that it involves creating a Transformer whose input is the Document and whose output is wherever you wanted the XML to go to.

  • Where can I find com.sun.xml.tree?

    Recently I was using java to achieve the transformation process from XML document to HTML document. The XML processor is Xalan-J. Of course, I also used Java API for XML(JAXP). During the process, I would use XMLDocument object, which need the help of com.sun.xml.tree, but I cannot find this package.
    Could you please tell me where I can find it?
    SDK's version:1.4.1
    Xalan-J's version:2.5
    JAXP's version:1.2

    To DevMentee: Thanks for your codes.
    I also coded pieces of programme to achieve my goal avoiding that package:
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.StreamSource;
    public class SimpleTransform
    public static void main(String[] args)
    throws TransformerException, TransformerConfigurationException,
    FileNotFoundException, IOException
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer(new StreamSource("transform.xsl"));
    transformer.transform(new StreamSource("myfile.xml"), new StreamResult(new FileOutputStream("myfile.html")));
    System.out.println("*** The result is myfile.html ***");

  • Looping through XML tree

    Hi All,
    I need help in retrieving the values of nodes in a XML tree
    If I have a xml document like
    <form>
    <item>
    <form_seq_no>1</form_inst_seq_no>
    <patientid>21</patientid>
    <facilityid>23</facilityid>
    </item>
    <item>
    <form_seq_no>2</form_inst_seq_no>
    <patientid>212</patientid>
    <facilityid>233</facilityid>
    </item>
    <item>
    <form_seq_no>3</form_inst_seq_no>
    <patientid>213</patientid>
    <facilityid>234</facilityid>
    </item>
    How can I get the values of form_Seq_no node?
    I want to loop for all the nodes so that I can update a table for every form_seq_no....
    Thanks....

    Why did you open a new thread where the problem seems to be exactly the same as the one from your Re: Looping through XML Items?
    In particular what is wrong with the solution given Re: Looping through XML Items?

  • Create xml tree

    Hi, I am trying do small application for showing tree structure of XML documents.
    And how can I create tree of xml document with bad structure?
    I can do it, when the xml file is correct. But I cannot make xml tree when the document has wrong tags:
    <rt>
         <aaa>
              text
              <bbb>
              <ccc />
              <ddd>text</aaa></ddd>
    </rt>I know, it is bad xml document, but is there any way how to create tree? Samething like this:
    rt
         +aaa : ERROR
         -bbb : ERROR
         -ccc
         +ddd
              -aaa : ERRORI use these metods and at first build xml:
         public void buildXML(String fileName) {
              try {
                   SAXBuilder builder = new SAXBuilder();
                   builder.setValidation(false);
                   doc = builder.build(fileName);
              } catch (JDOMException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
              root = doc.getRootElement();
         }then I get xml tree:
         private DefaultMutableTreeNode tNode = new DefaultMutableTreeNode();
         public DefaultMutableTreeNode getTreeNode() {
              tNode.removeAllChildren();
              makeTree(root, tNode);
              return tNode;
         private void makeTree(Element el, DefaultMutableTreeNode tn) {
              DefaultMutableTreeNode tn_2 = new DefaultMutableTreeNode(el.getName());
              tn.add(tn_2);
              Attribute attr;
              for (int i = 0; i < el.getChildren().size(); i++) {
                   Element el2 = (Element)el.getChildren().get(i);
                   if (el2 instanceof Element) {
                        makeTree((Element)el2, tn_2);
         }can anybody help me, please?

    The question makes no sense. You display something that isn't tree-structured data and ask if there is any way to display it in a tree structure. Well, no, there isn't.
    And also, no XML parser will complete parsing of a malformed XML document. It's against the rules.

Maybe you are looking for

  • Pedido de Compra com Item Category = D

    Olá Pessoal, Alguém sabe me informar qual é o tratamento que a solução SAP SPED Fiscal apresenta quando usamos mestre de serviço e o pedido de compra fica com código do material (EKPO-MATNR) branco. Faço esta pergunta porque a partir do SPED todos os

  • Movie does not appear in Media Browser

    I attempted to share a large movie file via Media Browser. It's about two hours of photos, movies and music. My iMac spent about 8 hours rendering (not sure if that's the correct word) overnight. All appeared well this morning, but in the Med Browser

  • Rotate a circle based on UITouch

    Ok. I'm racking my brain on this one. Onscreen I have an object (UIImageView) that I want to be able to rotate with my finger. Basically touch it and move my finger around and have it rotate on it's center to follow my finger. Rotating the image is n

  • Viewing flash web content on N97

    I've just got myself the new N97 (love it, btw). The web browsing is far better than what it was on the N95. (personal opinion). The only problem: I can't view flash web content. I can find the Flash player, but I'm talking about embedded flash video

  • Doubt on update

    I have 3 tables. Those are shops, salepoint and storagepoint. Salepoint and storagepoint both the tables contain doorNumber and village. Based on the salepoint’s doorNumber and village I have selected the record for update. The following is the query