Printing a Node

Hello everyone:
I am parsing an XML instance using xerces/w3cDOM, how do I print out a Node? I've looked around the API and only found a way of printing the whole document using getDocumentOwner and serializing it
tempNode is a Node
OutputFormat format = new OutputFormat( tempNode.getOwnerDocument(), "UTF-8", true ); /** Serialize DOM **/
StringWriter stringOut = new StringWriter(); /** Writer will be a String **/
XMLSerializer serial = new XMLSerializer( stringOut, format );
try {
serial.asDOMSerializer(); /** As a DOM Serializer **/
serial.serialize( (tempNode.getOwnerDocument()).getDocumentElement());
} catch (Exception exc){}
System.out.println("Tree is:\n"+stringOut.toString());
The above code prints out the whole document. How do I print tempNode?
Thanks
VP

You can use a transformer.
first import javax.xml.transform, set up an output stream (outStream) then:
    Transformer trans;
    TransformerFactory = transfac = TransformerFactory.newInstance();
    try{
      trans = transfac.newTransformer();
    catch(TransformerConfigurationException t){
      //do something
    catch(IllegalArgumentException i){
      //do something
    try{
      trans.transform(new DOMSource(tempNode), new StreamResult(outStream));
    catch(TransformerException t){
      //do something
    }If you want to print the Node to the screen just use System.out as your output stream. You can also store the text input in an array if you use a ByteArrayOutputStream.

Similar Messages

  • Print empty nodes in a Huffman binary Tree

    Hi,
    I have constructed a binary huffman tree, and I need to print the empty nodes as a character '-'. As I am using the array structure to build the huffman tree, I am very confused how I can go about it. This is my code. Any help will be appreciated:
    import java.util.*;
    import java.io.*;
    import java.lang.*;
    public class Huffman
        static char letters;
        static int frequency;
        static char frequency1;
        static int alphabet;
        static char frqtable [][];
        static char treetable[][];
        static TreeNode myTree[];
        static int i = 0;
        static int j = 0;
        static Scanner in = new Scanner(System.in);
        static int index = 0;
        static Vector temp = new Vector();
        static String finalarray[];
        public static void main (String args[])throws IOException{
            setFrequencyTable();
            treetable = frqtable;
            sortArray(treetable);
            buildHuffmanTree(treetable, alphabet);
           // printGeneralTree();
         public static void setFrequencyTable() throws IOException{
            System.out.println ("Please enter number of distinct alphabet");
            alphabet = in.nextInt();
            frqtable = new char[alphabet][2];
           for (int count = 0; count<alphabet; count++){
                System.out.println ("Enter the character");
                letters = (char) System.in.read();
                frqtable[i][j] = letters;
                System.out.println ("Enter frequency");
                frequency = in.nextInt();
                frequency1 = Integer.toString(frequency).charAt(0); ;
                frqtable[i][j+1] = frequency1;
                i = i+1;
                j = 0;
        public static void sortArray (char[][]treetable){
            char templetter;
            char tempfrq;
          for (int j=0; j < frqtable.length; j++) {
            for (int i=0; i < frqtable.length-1; i++) {
                  if((treetable[1]) < (treetable[i+1][1])){
    tempfrq = (treetable[i][1]);
    templetter = (treetable[i][0]);
    (treetable[i][1]) = (treetable[i+1][1]);
    (treetable[i][0]) = (treetable[i+1][0]);
    (treetable[i+1][1]) = tempfrq;
    (treetable[i+1][0]) =templetter;
    public static void levelorderTraversal(TreeNode root) {
    levelorderHelper( root);
    System.out.println();
    private static void levelorderHelper( TreeNode node ) {
    if( node == null )
    return;
    queue( node ); // queues root
    qLeftqRight( index ); // queues Left/Right node of the node at 'index'
    printIt(); // prints contents of queue
    private static boolean queue( TreeNode n ) {
    if( n != null ){ // if child exists, queue it
    temp.addElement( n );
    return true;
    }else{
    return false;
    private static void qLeftqRight( int i ) { // for each queued node, queue its children
    while( i < temp.size() ) {
    TreeNode tmp = (TreeNode) temp.elementAt( i );
    if (tmp.leaf == false){
    queue( tmp.left );
    queue( tmp.right );
    i++;
    private static void printIt() {
    finalarray = new String[temp.size()];
    for( int x = 0; x < temp.size(); x++ ) {
    TreeNode t = (TreeNode) temp.elementAt( x );
    if(t.ch == '\0'){
    finalarray[x] = Integer.toString(t.count);
    }else{
    finalarray[x]=Character.toString(t.ch);
    public static void buildHuffmanTree(char [][] treetable, int alphabet){
    myTree = new TreeNode [alphabet];
    TreeNode leftNode, rightNode;
    TreeNode newNode = null;
    for ( int i = 0; i < alphabet; i++ ){
    myTree[i] = new TreeNode (treetable[i][0], Character.getNumericValue(treetable[i][1]));
    for (int j =((myTree.length)-1); j>0; j--){
    newNode = new TreeNode(myTree[j], myTree[j-1]);
    myTree[j] = null;
    myTree[j-1] =null;
    if(j!=1){
    for(int c = 0; c<(j-1); c++){
    if(myTree[c].count <= newNode.count){
    for(int x = alphabet-1; x>c; x--){
    myTree[x] = myTree[x-1];
    myTree[c] = newNode;
    c= j-1;
    }else{
    myTree[0] = newNode;
    levelorderTraversal(myTree[0]);
    for(int i = 0; i < finalarray.length; i++){
    System.out.println(finalarray[i]);
    public class TreeNode{ 
    final boolean leaf;
    int count;
    final char ch;
    final TreeNode left,
    right;
    public TreeNode ( char ch, int count )
    {  this.leaf  = true;
    this.count = count;
    this.ch = ch;
    this.left = null;
    this.right = null;
    public char getChar(){
    return ch;
    public TreeNode ( TreeNode left, TreeNode right)
    {  this.leaf  = false;
    this.count = left.count + right.count;
    this.left = left;
    this.right = right;
    this.ch ='\0';

    doobybug wrote:
    The finalarray actually prints the array.No, finalarray IS and array. It doesn't print anything.
    The problem I think is with the TreeNode class where a leaf states the left and right nodes as null, but if I instantiate them to '-' they will continue to assign empty nodes until the program runs out of memory!!I don't know what you're saying here, but it sounds like you think that you have to set the Node to '-' in order to be able to print '-'. Really all you have to do is
    for each node {
      if the node is empty {
        print -
      else {
        print whatever you print for non-empty nodes
    }Or if an "empty" node is still a Node object, just with certain attribute values, then just create a toString method in the Node class that returns "-" when the Node is empty.
    Really, if you know how to iterate over your nodes, and you know how to determine whether a node is empty, then your problem is solved, there's nothing else to it.

  • Printing Address Node in International Format

    Hi,
    I am working on Adobe Form. Could some one provide me a best solution for the following question ?
    How could i display an Address Node with Internationalized country specific format instead of the default local format ?
    Cases:
    1. Sending Country is US then the Address Node should print in English.
    2. Sending Country is JP then the Address Node should print in Japanese.
    For Instance,
    The following are the Address Node parameters that is passed through interface
    Address Type      -> Organization, Company
    Address Number  -> A variable that holds a specific Address Number
    Sending Country  -> A variable that holds a specific Sending Country
    Note:
    1. By default the address Node itself picks up the local format. ( I don't find a property that specifys to pick Internationalized format)
    2. For single Address number there are multiple languages maintained in the Address table.
    Thanx in Advance.

    Hi,
    Can you check with the Different Recipient Language field in the addree node details.
    Regards,
    sasi

  • Printing a node tree

    I have create a node tree with CREATE OBJECT G_TREE and i have show it in the screen, but now i have to print it and i don´t have the standard functionality and i can´t see any method in the class CL_GUI_LIST_TREE that is the principal class that i have used for creating the nodes, is there any way of doing it or is there any transaction in Sap where i can see how to do it?.
    Thank you very much in advance

    Hi Carl,
    I dont think you can print a tree. It might be worthwhile to look at ALV Tree. I have used this and you can print this tree. The class is cl_gui_alv_tree. You can build hierarchical tree using this. Check the example BCALV_TREE_01.
    Regards,
    Vani

  • Error 0 occured at printing invoke node blb bla bla..., if I try to change the Postscript printing to bitmap printing using Options-printing menu.

    Who might comment why I can not change the printing type without Error message in LV8.0.1. LV6.0 worked OK. Info: It is Russian locale system.
    BR Vladi

    Anyone?

  • How to print a org.w3c.dom.Document/Node to a browser

    Hi,
    I have a program which builds an XML object inmemory, i am presently writing it to a flat file at the end of program execution. How do i write it to the browser..?(would it treat it as an XML or HTML, i mean the hierarchy display of XMLfile on a browser).
    I tried opening a printwriter & send the xml object as parameter, but it doesnt actually print an xml file rather it prints 'org.apache.crimson.tree.XmlDocument@22a3fe '
    Any suggestions..?

    ok figured out myself,
    set the content type: res.setContentType("text/xml");
    print a node(not the document):out.println(root);

  • Need to print in image with good quality in multiple pages

    rinting of the image display area is to small to read on some large displays
    Need to restrict the image resizing in generating the print output to a minimum size (to allow it to be readable) and allow the printed output to flow into a multiple pages wide by multiple pages in length if necessary. Currently it is restricted to one page.
    below is the code
    public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException {
    if (pageIndex != 0)
    return NO_SUCH_PAGE;
    Graphics2D g2d = (Graphics2D) g;
    Rectangle2D.Double printBounds = new Rectangle2D.Double(
    pageFormat.getImageableX(),
    pageFormat.getImageableY(),
    pageFormat.getImageableWidth(),
    pageFormat.getImageableHeight()
    // Print the header and reduce the height for printing
    float headerHeight = printHeader(printBounds, g2d);
    printBounds.y += headerHeight;
    printBounds.height -= headerHeight;
    // Carve off the amount of space needed for the footer
    printBounds.height -= getFooterHeight(g2d);
    // Print the nodes and edges
    printDisplay( printBounds, g2d, 0 );
    if (footer != null) {
    printBounds.y += (printBounds.height + 15);
    printFooter(printBounds, g2d);
    return PAGE_EXISTS;
    =================================
    protected void printDisplay( Rectangle2D.Double printBounds, Graphics2D g2d, double margin ) {
    // Get a rectangle that represents the bounds of all of the DisplayEntities
    Rectangle r = null;
    for (Enumeration e=displayManager.getEntitySet().getEntityEnumerati on();e.hasMoreElements();) {
    DisplayEntity de = (DisplayEntity)e.nextElement();
    if (r == null)
    r = de.getBounds();
    else
    r = r.union(de.getBounds());
    // Get that as doubles, rather than ints, and expand by half the margin
    // height in all directions
    Rectangle2D.Double entityBounds = new Rectangle2D.Double(r.x,r.y,r.width,r.height);
    entityBounds.x -= margin/2;
    entityBounds.y -= margin/2;
    entityBounds.width += margin;
    entityBounds.height += margin;
    // See if height and/or width was specified
    Unit specifiedSize = configuration.getHeight();
    double printHeight = (specifiedSize != null) ?
    specifiedSize.getValueAsPixels((int)printBounds.he ight) :
    printBounds.height;
    specifiedSize = configuration.getWidth();
    double printWidth = (specifiedSize != null) ?
    specifiedSize.getValueAsPixels((int)printBounds.wi dth) :
    printBounds.width;
    // Figure out the ratio of print-bounds to the entities' bounds
    double scaleX = 1;
    double scaleY = 1;
    // See if we need to scale
    boolean canExpand = configuration.expandToFit();
    boolean canShrink = configuration.shrinkToFit();
    if (canExpand == false && canShrink == false) {
    scaleX = scaleY = configuration.getScale();
    else {
    if ((canShrink && canExpand) ||
    (canShrink &&
    (entityBounds.width > printWidth ||
    entityBounds.height > printHeight)) ||
    (canExpand &&
    (entityBounds.width < printWidth ||
    entityBounds.height < printHeight))) {
    scaleX = printWidth / entityBounds.width;
    scaleY = printHeight / entityBounds.height;
    if (configuration.maintainAspectRatio()) { // Scale the same
    if (scaleX > scaleY)
    scaleX = scaleY;
    else
    scaleY = scaleX;
    above methods am using for printing image. but in large display i cant able to read letters.
    Thanks in advance
    Srini

    Your renderer is wrong.... try this (untested):
       class myCellRenderer extends DefaultTableCellRenderer {
         public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col) {
            if (value!=null) {
              ImageIcon icon = new ImageIcon(image);     // assuming image is defined elsewhere and is accessible
              setIcon(icon);
              setText(value.toString());
            } else {
              setIcon(null);
              setText("");
            return this;
       };o)
    V.V.

  • How to Print a File in JSFF

    Hi All,
    Anyone tried printing file through printer in JSC2.????????
    Expecting some Suggestions!!!!!!!!!!!!!!!!!!!!!!!!!!
    regards,
    Josh Machine

    If your question is how to call print from a button in the form:
    Go to the jsp page, and add to the print button attribute
    onClick="window.print()"
    <ui:button binding="#{Page1.button1}" id="button1" style="position: absolute; left: 288px; top: 120px" text="Button" onClick="window.print()"/>
    you can also do this by seelcting the button, and in the properties window, under javascript set the onClick property to window.print
    If you are question is how to print a file through the Creator IDE, you can use the File -> Print.
    To access the IDE's general print properties, choose Tools > Options > Advanced radio button, and then choose IDE Configuration > System > Print Settings. Expand the Print Settings node to select an individual editor.
    hope this helps
    Radhika
    http://blogs.sun.com/Radhika

  • Unable to start Manager server using Node Manager

    Hi,
    I have deployed Admin server in one of my unix machine(machine1) and i able to start my Admin server using node manager, and when i try to start my Managed server in another machine(machine2) using the node manager(that machine node manager) its throwing error;
    Note: am able to start Managed server using Adminurl and able to connect to Managed server node manager successfully,
    but not able to start Managed server using node manager
    its giving exception as below;
    error:- wls:/nm/webdomain> nmStart('ms1')
    Starting server ms1 ...
    Error Starting server ms1: weblogic.nodemanager.NMException: Exception while starting server 'ms1'
    Managed server log: -
    <Dec 13, 2011 3:40:17 PM> <INFO> <NodeManager> <Working directory is '/root/Oracle/Middleware/user_projects/domains/webdomain'>
    [root@LinuxVM ~]# cat /root/Oracle/Middleware/user_projects/domains/webdomain/servers/ms1/logs/ms1.out00071
    <Dec 13, 2011 3:40:17 PM> <INFO> <NodeManager> <Starting WebLogic server with command line: /root/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/bin/java -Dweblogic.Name=ms1 -Dbea.home=/root/Oracle/Middleware -Djava.security.policy=/root/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy -Djava.library.path="/root/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/lib/i386/jrockit:/root/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/lib/i386:/root/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/../lib/i386:/root/Oracle/Middleware/patch_wls1035/profiles/default/native:/root/Oracle/Middleware/patch_ocp360/profiles/default/native:/root/Oracle/Middleware/wlserver_10.3/server/native/linux/i686:/root/Oracle/Middleware/wlserver_10.3/server/native/linux/i686/oci920_8" -Djava.class.path=/root/Oracle/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/root/Oracle/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/root/Oracle/Middleware/jrockit_160_24_D1.1.2-4/lib/tools.jar:/root/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/root/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/root/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/root/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/root/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/root/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/root/Oracle/Middleware -Dweblogic.system.BootIdentityFile=/root/Oracle/Middleware/user_projects/domains/webdomain/servers/ms1/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true weblogic.Server >
    <Dec 13, 2011 3:40:17 PM> <INFO> <NodeManager> <Working directory is '/root/Oracle/Middleware/user_projects/domains/webdomain'>
    Nodemanager log:
    <Dec 13, 2011 3:40:17 PM> <INFO> <webdomain> <ms1> <Rotated server output log to "/root/Oracle/Middleware/user_projects/domains/webdomain/servers/ms1/logs/ms1.out00070">
    <Dec 13, 2011 3:40:17 PM> <INFO> <webdomain> <ms1> <Server error log also redirected to server log>
    <Dec 13, 2011 3:40:17 PM> <INFO> <webdomain> <ms1> <Starting WebLogic server with command line: /root/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/bin/java -Dweblogic.Name=ms1 -Dbea.home=/root/Oracle/Middleware -Djava.security.policy=/root/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy -Djava.library.path="/root/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/lib/i386/jrockit:/root/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/lib/i386:/root/Oracle/Middleware/jrockit_160_24_D1.1.2-4/jre/../lib/i386:/root/Oracle/Middleware/patch_wls1035/profiles/default/native:/root/Oracle/Middleware/patch_ocp360/profiles/default/native:/root/Oracle/Middleware/wlserver_10.3/server/native/linux/i686:/root/Oracle/Middleware/wlserver_10.3/server/native/linux/i686/oci920_8" -Djava.class.path=/root/Oracle/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/root/Oracle/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/root/Oracle/Middleware/jrockit_160_24_D1.1.2-4/lib/tools.jar:/root/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/root/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/root/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/root/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/root/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/root/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/root/Oracle/Middleware -Dweblogic.system.BootIdentityFile=/root/Oracle/Middleware/user_projects/domains/webdomain/servers/ms1/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true weblogic.Server >
    <Dec 13, 2011 3:40:17 PM> <INFO> <webdomain> <ms1> <Working directory is '/root/Oracle/Middleware/user_projects/domains/webdomain'>
    <Dec 13, 2011 3:40:17 PM> <INFO> <webdomain> <ms1> <Rotated server output log to "/root/Oracle/Middleware/user_projects/domains/webdomain/servers/ms1/logs/ms1.out00071">
    <Dec 13, 2011 3:40:17 PM> <INFO> <webdomain> <ms1> <Server error log also redirected to server log>
    <Dec 13, 2011 3:40:17 PM> <INFO> <webdomain> <ms1> <Server output log file is '/root/Oracle/Middleware/user_projects/domains/webdomain/servers/ms1/logs/ms1.out'>
    <Dec 13, 2011 3:40:26 PM> <INFO> <webdomain> <ms1> <Server failed during startup so will not be restarted>
    <Dec 13, 2011 3:40:26 PM> <WARNING> <Exception while starting server 'ms1'>
    java.io.IOException: Server failed to start up. See server output log for more details.
    at weblogic.nodemanager.server.AbstractServerManager.start(AbstractServerManager.java:200)
    at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:23)
    at weblogic.nodemanager.server.Handler.handleStart(Handler.java:604)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:119)
    at weblogic.nodemanager.server.Handler.run(Handler.java:71)
    at java.lang.Thread.run(Thread.java:662)

    You can start a managed server as follows:
    print 'START NODE MANAGER';
    startNodeManager(verbose='true', NodeManagerHome=nodemanagerhomelocation, ListenPort='5556', ListenAddress='localhost');
    print 'CONNECT TO NODE MANAGER';
    nmConnect(adminusername, adminpassword, 'localhost', '5556', domainname, domainlocation, 'ssl');
    print 'START ADMIN SERVER';
    nmStart('AdminServer');
    nmServerStatus('AdminServer');
    print 'CONNECT TO ADMIN SERVER';
    connect(adminusername, adminpassword);
    print 'START MANAGED SERVER';
    start('VideotheekWebServer','Server');
    nmServerStatus('VideotheekWebServer');
    print 'START CLUSTER';
    start('VideotheekCluster','Cluster');
    nmServerStatus('VideotheekServer1');
    nmServerStatus('VideotheekServer2');JVM properties are set using the admin console and edit the startup properties of your managed server (configuration, server start).
    The properties file (startup.properties) is saved in the directory <domain-home>/servers/<server-name>/data/nodemanager.

  • Adjusting ordered Print quantity based on total ordered (for production setup extras)

    Hi, We have orders that are placed online in an XMPie uStore and sent hands off to different printers. What production has asked for is to automatically adjust the quantities based on binding and total number ordered. So for example and order of 175 spiral books require an extra 2 copies for setup and another order for 725 copies requires 4 for setup. Production would like the files to arrive at the machine already programmed for 177 and 729. I can see that I can setup a Routing Process based on quantity. Is there anyway that I can modify the quantity at the final print stage node after routing them? Without affecting other parts of the Job ticket such as sides printed, exception pages and so on?

    FreeFlow Core would typically use the job ticket as submitted. We do adjust ticketing based on workflow processing. However, that does not include arbitrary adjustments (adjustments based on things that are outside of the FFCore job processing) such as the one below. That said, the External component will execute anything that can be invoked from the CLI.As such, you could write a small script to adjust the print ticket per your requirements just before printing (the $FFxpf$ variable is the URI for the internal job ticket). You can reuse the external node configuration in all your workflows.

  • Start node manager using WLST

    I am trying to start node manager using WLST with following command
    wls:/offline> nmConnect('weblogic','weblogic123','localhost','5556','FirstDomain','C:\Oracle\Middleware\user_projects\domains\FirstDomain','plain')but getting below exception
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 123, in nmConnect
    File "<iostream>", line 618, in raiseWLSTException
    WLSTException: Error occured while performing nmConnect : Cannot connect to Node
    Manager. : Connection refused: connect. Could not connect to NodeManager. Check
    that it is running at localhost:5,556.
    Use dumpStack() to view the full stacktrace
    wls:/offline>
    I am using weblogic 11g.
    Can anybody let me know how to fix this issue.

    You can use something like this:
    beahome = '/home/oracle/soasuite';
    pathseparator = '/';
    adminusername = 'weblogic';
    adminpassword = 'magic11g';
    domainname = 'base_domain';
    domainlocation = beahome + pathseparator + 'user_projects' + pathseparator + 'domains' + pathseparator + domainname;
    nodemanagerhomelocation = beahome + pathseparator + 'wlserver_10.3' + pathseparator + 'common' + pathseparator + 'nodemanager';
    print 'START NODE MANAGER';
    startNodeManager(verbose='true', NodeManagerHome=nodemanagerhomelocation, ListenPort='5556', ListenAddress='localhost');
    print 'CONNECT TO NODE MANAGER';
    nmConnect(adminusername, adminpassword, 'localhost', '5556', domainname, domainlocation, 'ssl');
    print 'START ADMIN SERVER';
    nmStart('AdminServer');
    nmServerStatus('AdminServer');More information can be found here: http://middlewaremagic.com/weblogic/?p=6040
    in particular the "Starting the SOA environment" section

  • Skipping Tree Nodes

    I have a tree which seems
    to be skipping nodes.
    When I click on one node
    it expands the following one.
    I put in some printlines to see
    what's going on and when I click
    on node 'a' it prints that node 'b'
    was clicked. First I thought that it
    was just skipping nodes that did
    not have children but I see that it
    is also skipping nodes with children.
    Then I thought maybe the index got
    out of order but when I go back to
    higher nodes it still performs correctly.
    Do you know what
    would cause this?

    HashMap acct_hm = new HashMap();
         * Returns the number of children of <code>node</code>.
        public int getChildCount(Object node) {
            Collection children = getChildren(node);
            if (children != null)
                    CoreUtil.printDebugMessage("Children "+children.size());
            else { CoreUtil.printDebugMessage("children = null"); }
            return (children == null) ? 0 : children.size();
         * Returns the child of <code>node</code> at index <code>i</code>.
        public Object getChild(Object node, int i) {
            CoreUtil.printDebugMessage("i = "+i+" "+getChildren(node).toArray());
    return getChildren(node).toArray()[i];
    protected Collection getChildren(Object node) {
    String acct = (String)node;
    CoreUtil.printDebugMessage("acct = "+acct);
    return (Collection)acct_hm.get(acct);
    Do you see anything from here?

  • Print all documents in Transaction CC04 at once

    In Transaction CC04, Under each document, There are sub ordinate documents included with it. User needs a way to print all the documents at once that have status as RL( Released). Is there a way to Print all documents with out drilling down in to each document and print. Please tell me a way to figure out this.
    Thank you

    Hi,
    The print functions are generic ALV functions.
    The 'print hierarchy' prints all nodes which have been expanded before even if they are not visible in the tree (collapsed).
    That's the difference to the 'print view' option.
    It depends on the application design which nodes are expanded.
    In transaction CC04 'product structure browser' the product structure will never be completely expanded by design because the whole PLM environment could be part of such a product structure, means depending on the filter settings millions of objects have to be expanded.
    In SAP Standard it is not planned to change the existing behaviour in transaction CC04.
    Material BOMs can be printed via transaction CS11 or CSMB (in this transaction a context menu function 'EXPAND ALL' exists which can be used before printing).
    regards
    Waman

  • Print all documents in CC04 at once

    In Transaction CC04, Under each document, There are sub ordinate documents included with it. User needs a way to print all the documents at once that have status as RL( Released). Is there a way to Print all documents with out drilling down in to each document and print. Please tell me a way to figure out this.
    Thank you

    Hi,
    The print functions are generic ALV functions.
    The 'print hierarchy' prints all nodes which have been expanded before even if they are not visible in the tree (collapsed).
    That's the difference to the 'print view' option.
    It depends on the application design which nodes are expanded.
    In transaction CC04 'product structure browser' the product structure will never be completely expanded by design because the whole PLM environment could be part of such a product structure, means depending on the filter settings millions of objects have to be expanded.
    In SAP Standard it is not planned to change the existing behaviour in transaction CC04.
    Material BOMs can be printed via transaction CS11 or CSMB (in this transaction a context menu function 'EXPAND ALL' exists which can be used before printing).
    regards
    Waman

  • HELP: Cannot See Child Node Values.

    I'm trying to print out child node values from following code, I can print child node name but cannot see child node values. Can somebody help me t o figure out this problem
    FOR childelement in 0..lengthchild-1
    LOOP
    IF childelement = 0 THEN
    kounter := kounter + 1; END IF;
    chnode := xmldom.item(childnodelist,childelement);
    v_childnode := xmldom.getNodeName(chNode);
    dbms_output.put_line('Child Node Name : '&#0124; &#0124;v_childnode);
    IF (v_childnode) is not null THEN
    chnodevalue := xmldom.getNodeValue(chnode);
    dbms_output.put_line('Child Value Is :'&#0124; &#0124;chnodevalue);
    ELSE
    dbms_output.put_line('Child Value Is NULL');
    chnodevalue:= null;
    END IF;
    End Loop;

    if you don't see any of the key values..
    and you know exactly what you are doing..
    you can create the registry keys and values.
    But make sure you know exactly what you are doing; adding and changing registry keys, might end up with a corrupt operating system.
    Please try the settings on a virtual environment, before applying to the production.
    If anything mess up with changing the registry you got your back covered, but if you're brave enough do it on the production server without doing the test on a VM. 
    Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.

Maybe you are looking for