Walk XML Beans Generically

Im working on a project with xmlBeans. I want to be able to walk what I call the bean tree or in other terms the current instantiated bean hiearchy. With xmlBeans, the DOM object used to walk the tree but I want to not use the DOM object because I want to not rely on XML specific objects in the event that the project could move to a database.
Does anyone know of a project that could take a path in the form of something like "/Building/Floors/Cubes/...." and be able to return the appropriate BeanObject reference

I am looking for the similar implementation. Did u find any solution?

Similar Messages

  • XML Beans and Weblogic Server 8.1

    Hi,
    Does anyone know if XML beans is shipped with Weblogic 8.x (or is it only part
    of the Weblogic Workshop) ?
    Thanks,
    Arun

    Greg,
    The classes required for running these command line tools are all there, but
    we have not put the script files in the version bundled with WebLogic
    server. Its very likely to be part of the next service pack release.
    Meanwhile, you can always run the classes from the command line, or write
    your own script. For instance, the dumpxsb.cmd has the following:
    set cp=
    set cp=%cp%;%XMLBEANDIR%\xbean.jar
    java -classpath %cp% com.bea.xbean.tool.XsbDumper %*
    So you can always write this on your own, or just run the concerned class
    from the command line.
    Let me know if you have any further queries.
    Regards,
    Anurag
    "Greg" <[email protected]> wrote in message news:1061965730.933286@ns1...
    Hi,
    Is it possible to use the version of xmlbeans bundled with workshop in a
    standalone sense? Are all the command line tools there? If so can yougive
    a pointer to where abouts in the Workshop download to look for this.
    The reason I ask is noting the following I saw -:
    Note: XQuery is currently only available with the version of XMLBeans
    included with WebLogic Platform. We hope to add these capabilities to the
    stand-alone version soon.
    Greg
    "Raj Alagumalai" <[email protected]> wrote in message
    news:[email protected]..
    Arun,
    WebLogic Platform 8.1 GA which includes Workshop does contain an
    xmlbeans
    implementation.
    We also have a stand alone implementation which is available on dev2dev.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Arun" <[email protected]> wrote in message
    news:3f38da48$[email protected]..
    Thanks. But what we have found out from BEA is that it does not shipwith Weblogic
    Server. You have to download it separately.
    "Dmitri Colebatch" <[email protected]> wrote:
    Does anyone know if XML beans is shipped with Weblogic 8.x (or is it
    only part of the Weblogic Workshop) ?yes, it is shipped in Platform 8.1 (I'm pretty sure its shipping in
    Server
    8.1
    too). Although the version is slightly older than the version
    available
    on the
    dev2dev site.
    cheers
    dim

  • Query on XML Beans replacing Castor Java -XML Bindings

    Hello,
    We use Castor XML Framework for today Java - XML bindings and were looking for XML Beans replacement.
    One of the key problems we face in using XML (maybe a flawed design) is we create XSD for our applications and run Castor to generate Java Classes as Libraries (XMLFramework.jar).
    Applications are compiled with these Java libraries and Castor is used to Marshal the Java Object as XML Document when invoking a remote API and at the receiving side it is used to unmarshal back the XML document to Java Object.
    Major issues we have seen is that if any XSD (that defines application ICD) changes, we need to re-generate Castor Java classes (new XMLFramework.jar) and re-compile applications that were using these classes with new JAR files..... Thus for small XSD changes the impact is in lot of applications (where an application is an EAR deployed on WLS)
    Does XMLBeans help here that I can change XSD without changing all the end-points that use Classes generated out of these XSDs (when additing mandatory or optinal elements) ?
    Or there is a flaw in which we have used the Java-XML binding framework like Castor and XMLBeans do not help much ?

    Can someone please suggest on how I can go about
    converting an XML file into word format using Java
    ?How about POI?

  • NullpointerException while returning XML bean from JDBC Control

    Hi,
    I have a simple jdbc control method which returns multiple rows of a table. i am trying to get the data in XML bean format and followed the instruction provided in the help documentation.
    None of the columns in table has null values.
    The exception I am getting is
    Exception in getActiveAlertList
    java.lang.NullPointerException
    at org.apache.beehive.controls.system.jdbc.RowToXmlObjectMapper.mapRowToReturnType(RowToXmlObjectMapper.java:102)
    at org.apache.beehive.controls.system.jdbc.DefaultXmlObjectResultSetMapper.mapToResultType(DefaultXmlObjectResultSetMapper.java:59)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.execPreparedStatement(JdbcControlImpl.java:365)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.invoke(JdbcControlImpl.java:223)
    Any help is appreciated.

    Hi!
    I?m facing this same problem.
    Have you found a solution?
    I also tried to migrate an WL 8 application, that works with a DB Control, but got the error anyway.
    If you, or someone else, found the solution, please share. I?d appreciate.
    Thanks.
    Gustavo

  • Encrypt xml bean object

    Hi Folks,
    can we encrypt and decrypt a xml bean object .
    i have a xml bean encoded file which contains all questions and now user need to take a exam ,problem here is user can see that xml file in text editor in readble format.
    Now how can i encrypt xml file and decrypt it back when application starts.
    Thanks in Advance

    lakshmiindia wrote:
    Hi Folks,
    can we encrypt and decrypt a xml bean object .
    i have a xml bean encoded file which contains all questions and now user need to take a exam ,problem here is user can see that xml file in text editor in readble format.
    Now how can i encrypt xml file and decrypt it back when application starts.
    You can't do this securely since any decryption key needed by the application must be available to the application and therefore easy to get at by a knowledgeable attacker. On this basis and since you have a fairly big learning curve to implement any encryption, why not simple Base64 encode the whole file. Easy for anyone in the know to decode but it might be good enough for a school/college/university project.

  • XML Beans in Workshop 8.1

    I'm using workshop 8.1 beta... when I import schemas into a project the interfaces
    seem to generate fine. I do not see any of the "x" methods (xensureXXX, xgetXXX...
    etc...) available though... what am I missing in the implementation of XML beans
    in 8.1 beta?

    Mike,
    XMlbeans would provide with functionality to do what you are trying to do.
    Please refer to the SchemaChoice.jws sample which is shipped with Workshop.
    This sample shows how the document can be validated against a schema.
    Please refer to the following document for more information on this
    http://workshop.bea.com/xmlbeans/docindex.html
    Hope this helps.
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Michael Wong" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi,
    I am new to Workshop. I have little experience with SAX or DOM. I foundthem
    very confusing.
    I am hoping Workshop 8.1 will provide a more user friendly solution. Fora web
    application, on
    the client side, can Workshop validate an XML document, which is createdfrom
    user entries on
    a browser form (Inquiry phase), against a predefined schema? Uponsucessful validation,
    the
    client invokes the web service which returns the result of the inquiry.Upon
    receiving the result,
    can the client augment the result with additional information from anexternal
    schema before
    displaying the result on the browser?
    Thanks
    Mike

  • XML-Beans or JAXB?

    Folks,
    I'm maintaining a map building webapp which is a few years old now.
    The user navigates up to a dozen HTML forms which build up a "profile" of the required map. The webapp sends the complete "profile" to a "mapping" tuxedo service, which builds a PDF document of the map and returns it through the webapp to the client, which displays it in Adobe reader.
    I've taken "issue" with the volume of code we have around building the XML "profile" from the various request parameters. I'm thinking about replacing it with an XML binder, but which one?
    I've been reading up on XML Beans and JAXB, and both look good to me. We're using weblogic 8.1 server, which I believe supports XML beans annotations... very cute.
    I had a bit of a google and turned up a couple of old threads, and some product announcements, but no nice meaty white papers, and nothing really since 2004... I presume things have changed in three years.
    Thanx in advance. Keith.

    george,
    We're allready using xalan & xerces (both in Java and C++) which extend XMLBeans capabilities, and weblogic has support for XMLBeans built into it.
    We're not currently using any XML-binder in this application, so it's about 5,000 lines bigger than it needs to be... but I've just discovered that we are using XML beans in another (newer) web-application which is maintained by our "sister team"... so I'll get their guru's to talk to our guru's, and hopefully I won't have to make an airtight case for change all by myself... just a watertight one, with a little help from some elevated friends.
    So... I think I'll try an XMLBeans prototype and see how it goes.
    thanx. keith.

  • XML Beans

    I have generated a XML Schema for my DB Control, I copied and stored it as .XSC file under the Schema Folder in Workshop, The tutorial says "When the XSD file is compiled, XMLBean types are generated that can be returned by the methods in the database control. The XMLBean classes appear in the Schema project's XML Bean Classes folder" , But i am not able to see these classes in the XML Beans Classes folder under Schema project,
    I appreciate if any one can help me out on this that would be really greatful,
    Thanks
    PM

    I think u need to drop your XSD in the schema folder. Not sure what a XSC is ?
    Kunal

  • Servicegen XML beans

    Is there any good example of using Weblogic web services with XML beans, but without
    using BEA's workshoop ? I've seen that the workshoop is able to handle web service
    + xml beans, but I haven't found the way to do it outside it.
    another question: is there a way to load a XML file from a string/file with the
    autogenerated classes from the autotype task ?
    Any help appreciated.
    Thanks

    Hi Rafael,
    The tenuous answer is yes there is an example, however we ask that you
    contact the fine folks in our support group [1] and reference CR124167.
    Hope this helps,
    Bruce
    [1]
    http://support.bea.com
    [email protected]
    Rafael Borges wrote:
    >
    Is there any good example of using Weblogic web services with XML beans, but without
    using BEA's workshoop ? I've seen that the workshoop is able to handle web service
    + xml beans, but I haven't found the way to do it outside it.
    another question: is there a way to load a XML file from a string/file with the
    autogenerated classes from the autotype task ?
    Any help appreciated.
    Thanks

  • Getiing error while genetrating jar file with xml beans with scomp command

    Hi ,
    I am using XmlBeans version 2.4.0-r670094 with jdk1.5 ,
    i am trying to generate java classes with given xsd's command is ----scomp -out emplo.jar any.xsd
    but getting below error
    Time to build schema type system: 1.953 seconds
    Time to generate code: 0.125 seconds
    java.io.IOException: Cannot run program "C:\\javac": CreateProcess error=2, The system cannot find the file specified
    java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    java.io.IOException: Cannot run program "C:\\javac": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:231)
    at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1154)
    at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:373)
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 6 more
    BUILD FAILED
    any solution for this

    Hi ,
    i have done all those things , please check below my environment variables path
    PATH=C:\oracle\product\10.2.0\db_3\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS
    \System32\Wbem;C:\Program Files\ActivIdentity\ActivClient;C:\Program Files\Java\
    jdk1.5.0_16\bin;C:\Program Files\Java\jdk1.5.0_16\lib;C:\xmlbeans-2.4.0\bin;C:\j
    devstudio10133\ant\bin;C:\xmlbeans-2.4.0\lib;
    i am using xml beans version - xmlbeans-2.4.0
    if i am running scomp.cmd -out CIDnotification2.jar CIDnotification2.xsd -compiler "C:\Program Files\Java\jdk1.5.0_16\bin"
    or
    scomp.cmd -out CIDnotification2.jar CIDnotification2.xsd
    i am getting below error
    Time to build schema type system: 0.797 seconds
    Time to generate code: 0.156 seconds
    java.io.IOException: CreateProcess: "C:\Program Files\Java\jdk1.5.0_16\bin" @C:\
    DOCUME~1\RAMAKR~1\LOCALS~1\Temp\javac9915 error=5
    null
    java.io.IOException: CreateProcess: "C:\Program Files\Java\jdk1.5.0_16\bin" @C:\
    DOCUME~1\RAMAKR~1\LOCALS~1\Temp\javac9915 error=5
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil
    .java:231)
    at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
    ava:1154)
    at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
    :373)
    BUILD FAILED
    Please let me know if something else required

  • Using an XML Bean in a WS Client app

    We're experience problems trying to use a XML Bean returned to a Java application from a WebLogic Workshop Web Service. As a test case we decided to write a Java application that would use the CustomerDB_XMLBeanClient Web Service supported in the SamplesApp application. This Web Service supports a getAllCustomerNames method which returns an XCustomerDocument object generated from an XML Bean. Invoking this method from the WS test page returns three (3) names. We then created a Java Proxy for this WS to import into our client application. This proxy has different method signatures than the WS. The equivalent getAllCustomerNames method returns an XCustomer object. The return object only has one name, the last one. The java proxy jar file does not have any of the XML Bean classes associated with this Web Service, nor can we find any methods that allow us to iterate through the multiple rows returned in an XCustomer object. So far all of the Java client examples that we've looked at utilize an XML Bean's Document Factory class to instantiate an XML Bean. Do we need to import the XML Bean classes in addition to the Java proxy jar? Can anyone provide us with a working example of a Java client application that receives an XML Bean return object from a Web Service? Thanks.

    The answer:
    emoticons.put("<3", ClassLoader.getSystemClassLoader().getResource("images"+File.separator+"heart.gif").toString());// <3The above solution worked for me when i put the images folder in the default package.
    And to present the file in an image on JEditorPane:
    if(msg.contains("<3")){ // alternately iterate key elements in map
         msg.replaceAll("<3","<img src=\""+emoticons.get("<3")+"\">");
    }This was the only problem I had and it has now been solved!
    If you have any problems with the same thing, post a message and we'll figure it out.

  • XML Beans and Weblogic 7

    Hi - I am interested to use the XML Beans development kit - but I only have a
    WebLogic 7 app server to work with. Is there a way to get around the requirement
    for xqrl.jar to run the examples such as the easypo example? I found myself getting
    compilation errors for the src files that were generated by the schema compiler
    complaining about not being able to find some com.bea.xquery classes which I am
    assuming reside in this jar (xqrl.jar). Is it required that I download the whole
    WLS 8.1 platform just to get this jar? Thanks for any advice.

    Greg,
    The classes required for running these command line tools are all there, but
    we have not put the script files in the version bundled with WebLogic
    server. Its very likely to be part of the next service pack release.
    Meanwhile, you can always run the classes from the command line, or write
    your own script. For instance, the dumpxsb.cmd has the following:
    set cp=
    set cp=%cp%;%XMLBEANDIR%\xbean.jar
    java -classpath %cp% com.bea.xbean.tool.XsbDumper %*
    So you can always write this on your own, or just run the concerned class
    from the command line.
    Let me know if you have any further queries.
    Regards,
    Anurag
    "Greg" <[email protected]> wrote in message news:1061965730.933286@ns1...
    Hi,
    Is it possible to use the version of xmlbeans bundled with workshop in a
    standalone sense? Are all the command line tools there? If so can yougive
    a pointer to where abouts in the Workshop download to look for this.
    The reason I ask is noting the following I saw -:
    Note: XQuery is currently only available with the version of XMLBeans
    included with WebLogic Platform. We hope to add these capabilities to the
    stand-alone version soon.
    Greg
    "Raj Alagumalai" <[email protected]> wrote in message
    news:[email protected]..
    Arun,
    WebLogic Platform 8.1 GA which includes Workshop does contain an
    xmlbeans
    implementation.
    We also have a stand alone implementation which is available on dev2dev.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Arun" <[email protected]> wrote in message
    news:3f38da48$[email protected]..
    Thanks. But what we have found out from BEA is that it does not shipwith Weblogic
    Server. You have to download it separately.
    "Dmitri Colebatch" <[email protected]> wrote:
    Does anyone know if XML beans is shipped with Weblogic 8.x (or is it
    only part of the Weblogic Workshop) ?yes, it is shipped in Platform 8.1 (I'm pretty sure its shipping in
    Server
    8.1
    too). Although the version is slightly older than the version
    available
    on the
    dev2dev site.
    cheers
    dim

  • Have XML data in a string, can't extract it to the XML bean class

    Hi All, I have a string that contains XML data, for example,
    string str has "<one>1<\one><two>2<\two>". i have the XML beans classes,
    but i am unable to get this data out of the string and add it to the xml bean
    classes.
    I anybody has a clue as to how to code this, please help ASAP.
    Thanks,
    kuneev

    Hi Kunnev,
    Lets say I have an xsd
    <?xml version="1.0"?>
    <xs:schema
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:bea="http://www.bea.com/xmlbeans/Sample.xsd"
         targetNamespace="http://www.bea.com/xmlbeans/Sample.xsd"
         elementFormDefault="qualified"
         attributeFormDefault="unqualified">
    <xs:element name="Person">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="FirstName" type="xs:string" />
    <xs:element name="LastName" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    Now after I compile this I would get XMLBean classes
    Like Person is a xmlBean class. The code snippet below shows how I can convert
    a string into a xmlbean of type Person.
    XmlOptions xopt = new XmlOptions();
    xopt.setDocumentType(Person.type);
    Person x0 = (Person) XmlObject.Factory.parse(
    "<xml-fragment>" +
    "<FirstName>desc---1</FirstName>" +
    "<LastName>desc---2</LastName>" +
    "</xml-fragment>", xopt);
    Person pp = (Person)x0;
    Now pp is a XMLBean object which can be added to the tree.
    Let me know if you have any questions.
    Thanks a lot,
    Vimala
    "kuneev" <[email protected]> wrote:
    >
    Hi All, I have a string that contains XML data, for example,
    string str has "<one>1<\one><two>2<\two>". i have the XML beans classes,
    but i am unable to get this data out of the string and add it to the
    xml bean
    classes.
    I anybody has a clue as to how to code this, please help ASAP.
    Thanks,
    kuneev

  • XML Beans equivalent in JDev

    Hi,
    Is there an equivalent for XML Beans(BEA WLW) in JDeveloper. At this point is it possible to use the XML Facade in Oracle BPEL designer in JDeveloper projects?
    Jeevak

    I need to use the class generation facility which is provided by XDK. Where do I get the docs for it?
    On a different note, is there a more efficient way to reference a xml schema for the input variable of a BPEL process other than doing it by hand in the wsdl. I am posting this query on this forum since I was not able to locate a forum for the oracle BPEL designer.
    Thank you.
    Jeevak

  • Xml beans deployement

    I have generated xml beans jar file y=using scomp command. When i compile my code -which uses this jar file - it is compiling nicely.
    However as soon as i try to run it I got java.lang.NoClassDefFoundError:.
    Is there any method to deploy this jar or simply putting it in classpath will do?
    please help,
    regards,
    --Pankaj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I have also facing the same problem.
    I have many modules those are developed by using EJB 2.0 and many new modules developed by using ejb 3.0. Instead of modifying( migrating) the EJB 2.0 code to ejb 3.o I wanted to integrate all the modules in a single EAR file.
    My Screens those used EJB 3.0 works fine and for EJB 2.0 it says javax.naming.NameNotFoundException: Bean not bound
    from the defined 2.0 JNDI name it is not able to get the object. Is the declaration for JNDI and bean mapping is useless?
    Please provide the solution for this.
    Thanks and Regards,
    Pravu Mishra.

Maybe you are looking for

  • Video Card for Photoshop CS5

    Hi, I'm deciding between these two cards (I do not want to spend more than 70/80 bucks as I might be selling the PC in some time): http://www.amazon.com/GeForce-ENGT430-DC-SL-1GD3/dp/B0051UWKUW/ref=wl_it_dp_o_npd?ie=UTF8& coliid=I3KL9BC6YWAB99&colid=

  • Suppress 'SAVE' functionality on Report Painter/Writer Report

    On the R/3, end-user side, is there a way to suppress the menu bar (Report, Edit, Goto, Extras, etc.) and the 'Save' icon?  Our end users are able to change the definition and layout, then 'Save' and it messes-up the report for other users.  I'd like

  • Lookout opc problems

    I am using Lookout 6.0.2 on a new Win XP desktop.  The Lookout OPC client object is used for communications via Rockwell Software RSLinx's (Professional Rev 2.43.01.23) OPC server to ControlLogix PLC's over ethernet.  In other words, the Lookout comm

  • Node manager not starting

    I have just installed a second CRS 5.0(2) server which I intend to add to the cluster, but I'm having a problem in that the Node Manager Service hangs on startup. The error I get is: Event ID:7022 The CRS Node Manager Service Hung on starting. I can

  • Live Office Install

    How can I get a client software version of Live Office.  My company has a temporary lisence for BOBJ and I want to test out Live Office. Where can I get this software?  Do I need to install it on my machine or does it have to be on the BOE server?