How to test a 'leaf' node when parses a DTD?

Hi All:
Suppose I have <!ELEMENT Name (#PCDATA)> in my dtd. What is the correct way to test the node is a 'leaf' node? I am thinking to use ElementDecl.ELEMENTS to eliminate leaves. Is it correct? As far as I see, the type of leaves is ElementDecl.MIXED. Please verify.
Thanks!
Frank

Hello Sai,
I am afraid you have posted your question in the wrong forum. This forum is about Oracle On Track Communication, a next-generation social enterprise collaboration product.
Please re-post your question in an ADF related forum and I am sure someone will be able to answer.
Thank you,
Ernst.

Similar Messages

  • Keeping expended leaf node when reloading page for TreeNodeType

    Hi all,
    My page with context is:
    -TREE (node)
      ---TREENODE (node)
    CHILDNODE (node)
    name (attribute)
    value (attribute)
    I map this context into TREE as below:
    -TREE (element type: TREE; dataSource : TREE)
    ---TNT_NODE (element type: TreeNodeType; dataSource: TREENODE; hasChildren: TRUE )
    ---TNT_CHILDNODE (element type: TreeNodeType; dataSource: CHILDNODE; hasChildren: FALSE)
    Everything is ok, but my issue is:
    How TNT_NODE keep expanded (show child node as TNT_CHILDNODE) when page is reloaded? Now TNT_NODE collapse its leaf node when page reload. I tried using EXPANDED but it expands all nodes that is not my desire.
    Please give me your advice.
    Regards,
    Ken

    my issue is resolved

  • How to know which leaf node i click and how to add a listener to each node?

    hi! hello to all members, i have a problem i know how to create a listener, but i dont know how to add a listener to each leaf node. here is the scenario i want to do, i have a JTree where theres a topic that you can select on each leaf node, so when the user click the specific topic it will open another JFrame,which i dont know how to do it also, that its! the next problem will be how do i know which leaf node i select, so that i can open a right topic before the JFrame will open?please, i am very need this to solve quickly as possible. thanks again to all members.

    What you have to do is to add a mouse listener on your JTree. Try something like this:
    tree.addMouseListener(new java.awt.event.MouseAdapter() {
             public void mouseReleased(MouseEvent e) {
                tree_mouseReleased(e);
    private void tree_mouseReleased(MouseEvent e) {
          TreePath selPath = tree.getSelectionPath();
          // Check If the click is the Right Click
          if (e.isPopupTrigger() == true) {
          // This is your right Click
           else {
                     // This is your Left Click
    }Your other problem: Set the userObject on nodes and on left click compare it with your object, if it matches, display the appropriate file. Alternatively, if your nodes are unique, you can match the names to open the file.
    Hope this Helps
    Regard
    Raheel

  • How to make the leaf node of the APEX tree downloadable

    Hi All,
    I am trying to build a "library" page for my application, with the documents as the leaf nodes of the tree. The documents come from a database table, and each document is a BLOB.
    My question is, how should I write the "link" part of the APEX tree query to make the lead node document downloadable for the end users?
    Thanks,
    Christine

    Hilary helped me out of this by creating a new form page with two new items there corresponding to the PK and BLOB column, then in the tree query use apex_util.get_blob_file_src function as the link. Below is the email from Hilary:
    1. Created Form, page 13, based upon your table storing the documents as BLOBs. The form page has just two associated items: P13_DOC and P13_DOC_ID. The item P13_DOC is of type FILE and contains a source type of DB column, which is the first required parameters of the function get_blob_file_src. NOTE: I could have created a form region on the same page as your tree, but chose to generate a separate page. You may choose to change this yourself.
    2. Updated the Tree query on pg 12 to use the following link for tree nodes of level 4:
    apex_util.get_blob_file_src('P13_DOC',v.attr3)
    ...where P13_DOC is the application page item mentioned in step 1 above, and v.attr3 should hold the unique ID associated with the document. Your tree now allows users to download the listed documents.

  • How to get the leaf node in a hierachy????

    if i get a record that a parent node in a hierachy table ,so how can i get the leaf node of this parent node quicklly?????thank you!

    Hi xuhuanjun ,
    Refer to the below threads which disucss the same.
    Re: how to ensure a hierarchy tree's node is a internal leaf???????
    Re: Retrieve Hierarchy Leaf Node using API.
    Hope it helps.
    Thanks,
    Minaz

  • SAP RM: How can I create a Node when the node is not visible for the user

    Hi,
    Product: SAP records Management for Public Sector
    Version: 7.00
    is it possible to create a instance node when the model not is not visible for the active user?
    I looked in the CL_SRM_XML_REC_MODEL but every methode I used gave me no results with the special user.
    Regards and thanks for every beginning
    Fanninger Thomas

    Hi,
    here an example.
    When I use the method CL_SRM_XML_REC_INSTANCE->IF_SRM_XML_POID~GET_ALL( POID_TAB COUNT_USER_REST COUNT_POID_AUTH ).
    When I used the user with no right for viewing the invisible nodes I get no elements in the tabelle POID_TAB and 38 in the value COUNT_USER_REST.
    So did any one know a solution you can I create a nodes and change the restriction for the new node with the normal user?
    Regards
    Fanninger Thomas
    Edited by: Thomas Fanninger on Feb 5, 2008 8:15 AM

  • Xml in JTree: how to not collpase JTree node, when renaming XML Node.

    Hi.
    I'm writing some kind of XML editor. I want to view my XML document in JTree and make user able to edit contents of XML. I made my own TreeModel for JTree, which straight accesses XML DOM, produced by Xerces. Using DOM Events, I made good-looking JTree updates without collapsing JTree on inserting or removing XML nodes.
    But there is a problem. I need to produce to user some method of renaming nodes. As I know, there is no way to rename node in w3c DOM. So I create new one with new name and copy all children and attributes to it. But in this way I got a new object of XML Node instead of renamed one. And I need to initiate rebuilding (treeStructureChanged event) of JTree structure. Renamed node collapses. If I use treeNodesChanged event (no rebuilding, just changes string view of JTree node), then when I try to operate with renamed node again, exception will be throwed.
    Is there some way to rename nodes in my program without collpasing JTree?
    I'am new to Java. Maybe there is a method in Xerces DOM implementation to rename nodes without recreating?
    Thanks in advance.

    I assume that "rename" means to change the element name? Anyway your question seems to be "When I add a node to a JTree, how do I make sure it is expanded?" This is completely concerned with Swing, so it might have been better to post it in the Swing forum, but if it were me I would do this:
    1. Copy the XML document into a JTree.
    2. Allow the user to edit the document. Don't attempt to keep an XML document or DOM synchronized with the contents of the JTree.
    3. On request of the user, copy the JTree back to a new XML document.
    This way you can "rename" things to the user's heart's content without having the problem you described.

  • Make leaf node as hotspot

    Hi,
    How can i make leaf node as hotspot in list tree.
    plz help me.
    regards,
    venkat.

    It is difficult to make the tree display a different
    structure than the xml. To do this you will need to look into
    creating a custom DataDescriptor.
    I would advise preprocessing the xml to create a dataProvider
    with the data/structure you need for the tree, then using id's on
    the nodes to select the subnodes from the main xml.
    Tracy

  • How to Find the node or leaf node selected in Tree UI element:

    Hi All,
    I have a tree structure with three level design. We have a button, which will perform some operation on the specific node or leaf node on every level.
    When we select any node or leaf node, we have action Onction getting called.  But what we want is that, after we select the node or leaf node,  we press a button below the tree design and perform some operation on the node selected.
    But how to get information that on Application , which node or leaf node has been slected ?
    Thanks
    PG

    Hi,
    Found the solution.
    Juts keep on reading all the nodes, system gives the complete path of the tree by using Lead selection and then we can use this path to peform the update operation on tree structure.
    Thanks alot for the hint.
    Regards
    PG

  • Populate a canvas when a tree-leaf node is clicked

    I'm trying to populate a canvas or a list container with
    images when a tree-leaf node is clicked. I got the tree control
    working alright so far (populated via an external XML) but I'm
    having a hard time figuring out how to populate the adjacent
    container when a leaf node from a tree is clicked by a user. I know
    I'm supposed to code this in the 'change' event but am having a
    difficult time trying to figure out how to do this. I looked at the
    source code in some of the sample apps but I couldn't find anything
    that resemble what I'm trying to do.
    Since each leaf node would be unique, each one of them would
    trigger an external load of images (via http service) ... and so
    the url would be unique as well for each.
    'Appreciate the help from anyone who could help.
    Thanks.

    Thanks for the quick response Tracy ...
    Actually, I don't have mage load part coded yet :) ... I do
    have a somewhat general idea on how it should be coded though (i
    think, hehe). I'm thinking the selected item in the leaf node would
    have the data for the 'url' or 'folder location' of the images that
    would have to be retrieved and displayed in the canvas. I'm just
    not sure how to go about diplaying them in the canvas. Do I have to
    load them in some sort of array first and then datasourced it for
    my canvas? Not really sure how to go about doing it ... 'am totally
    newbie with Flex and just learning it by going through the online
    help and looking at the codes on some of the sample apps.
    Thanks again.
    pixelflip

  • How to get a Tree Node Value when a Tree is Expanded

    My reqiurement is when i Expand a Tree i need the Expanded tree Node Value. For Example Consider Parent as a Root Node of a Tree, and Consider its two Children Child1 and Child2.
    When + Parent Expanded
    I will Get the Output as --Parent
    - Child1
    - Child2
    so As when i expand the Tree i must Get the String Value Parent.

    duplicate
    How to get a Tree Node Value when a Tree is Expanded

  • When passing Node to parse() method get NULL pointer exception.

    All,
    I trying to pass a Node to parse method to get the NodeType object back and getting
    null pointer exception.
    Example
    xml
    <root>
    <Test>
    <someData>ABC</someData>
    </Test>
    </root>
    if pass the Test node to get Test object back I am getting null pointer exception.
    Thanks for all ur help
    Shoeb

    file 2
    ~~~~
    import javax.swing.*;
    public class ExtendedPage extends BasePage
    private JTextField objJTextField = null;
    private JButton objJButtonBrowse = null;
    Change the line in bold to
    private JTextField objJTextField;
    And everything works.

  • ADF TreeTable - How to hide Disclose/Expand icon for leaf node

    We are using ADF Tree Table in our application.
    Whenever a node is expanded - all the child nodes have the disclose/expand icon along with it.
    But, we don't want to show the disclose/expand icon if it is a leaf node.
    How can this be done?
    JDeveloper Version: JDeveloper 11.1.1.3
    Thanks,
    Navaneeth

    I have a hierarchical tree based on single POJO based class exposed as data control.
    (i.e) a node can have many levels.
    Can you specify how we can use the folder icon for this - Can you please provide some detailed information?
    Thanks in advance,
    Navaneeth

  • Hierarchical query - Stop at specific leaf nodes - How to in Oracle 9i ?

    Table H -- Master table to build Hierarchical tree
    C -- Child
    P -- Parent
    Table RN -- Table defining Root Nodes
    N -- Node
    Table LN -- Table defining Leaf Nodes
    N -- Node
    The following Query can generate trees starting with the nodes specified in the Table:RN
    SELECT LEVEL L, C, P, SYS_CONNECT_BY_PATH(C,'/') SCBP
    FROM H
    START WITH C IN ( SELECT N FROM RN )
    CONNECT BY PRIOR C = P
    How do I limit the tree to the nodes specified in the LN table ?
    "CONNECT BY" does not support "IN" clause
    i.e
    CONNECT BY PRIOR C = P AND P NOT IN (SELECT N FROM LN)
    Say we have 2 trees
    1-2-3-4-5
    A-B-C-D-E
    RN : 2,B
    LN : 5,D
    Result:
    2,3,4 (5 is excluded)
    B,C (D is excluded)
    Any help is appreciated...

    What about:
    select level l, c, p, sys_connect_by_path(c,'/') scbp
      from (select * from h
             where c not in (select n from ln))  -- filter via an inline view
    start with c in ( select n from rn )
    connect by prior c = p;

  • TechTool 4 Volume test and "invalid leaf node"

    Just a "heads up". I just installed TechTool 4 and ran the usual diagnostics as a level-set. I was surprised to discover that I had two volumes with invalid leaf nodes. To make a long story short, the discussion with TT support revealed that there's apparently nothing wrong with my drives. They've both been re-formatted, surface scanned, repaired, etc. I've never had any errors from either of them. One is a Seagate 250GB and the other is a WD 160GB. TT support asked to borrow one of my drives for a couple weeks(!) because they think it's a bug and can't reproduce it. Disk Utility says there's nothing wrong. Take Volume Scan leaf node errors reported by TT4 with about a pound of salt, since the bug is still there (and will be, since I can't live without the drive for weeks and they won't buy it). I'm reporting it here, because they suppressed the majority of our discussion on their forum and I don't particularly approve of them hiding a known bug from customers. I have the TT logs and anyone who wants to see them can just ask, BTW. This isn't a vendetta against them so much as an attempt to spare others the 2 days of lost work I experienced while running various things for TT support, all to find out that I'm not the one with the problem.
    Mac Pro   Mac OS X (10.4.9)   3GHz, 4GB

    Oh Yeah, that I know. I run two intermediate backups and a full clone daily. The awkward thing is that one of the drives is my "snapshot backup" drive, naturally. They swear that they've only had one other report of this and it went away with a reformat. Mine did not. You'd think that a reformat and surface scan would reveal a hard, repeatable, drive error - which TT4 implies I have. What are the odds that I have two drives with a totally unique problem (such as they described it), made by different manufacturers, with hard and repeatable errors that only their program can detect? SMART says they're OK, Disk Utility says they're OK, no errors are logged, their temperatures are the same. If this error is so rare, how is it that I just happen to have it on 50% of my drives? It's been a Royal Pain to re-jigger my drives so that the backups go to a drive that doesn't have the "error", just in case.

Maybe you are looking for

  • How do you use time machine with two macs?

    I have an external hard drive hooked up to one of my macs. How do I get it to back up both macs?

  • To make a field in non editable mode

    hi all, I have a requirement. In which i want a field to be in display mode. i want the user to select the data into the field only from the f4 option and not to entre manually. How can i code this. this is a report and not a module pool program. whe

  • Turning off CMD + SCROLL zooming with Apple Magic Mouse?

    Scrolling with Apple's Magic Mouse is extremely sensitive in Fireworks, so sometimes when I use a keyboard shortcut that involves the command key and I accidentally leave it pressed for just a split second after I perform the shortcut and I scroll at

  • Compress after searching in finder

    I went into finder and did a 'search' for PDF documents, I selected several of them and then did a right click but there was no Compress option in the drop down menu. Compress appears for selected files if I am not acting on a search list in Finder,

  • HT201412 I have an iPad mini that won't even go into Recovery Mode

    iPad mini won't power on.  (It belongs to a young lady in my Bible study group so I don't know what OS it has installed.)  I've tried all of the advised restore & recovery tips.  It will not boot into Recovery Mode at all.  I've held down the Sleep/W