Using XMLOptions with XMLBeans

Hi All
I want to build a XML using XMLBeans.
Can i specify a particular schema or file using XMLOptions.
How to use XMLOptions for building an XML?
Does anyone have any idea?
Please suggest.
Thank you
Brajesh kumar

bdkjones wrote:
I would recommend an inverter to convert the 12 volt battery to alternating current.
I would not run my Mac off of a third party power adaptor. The Apple-provided AC adaptor provides current and voltage leveling functions that a third-party adaptor (especially a cheap one) may lack. Computer components are very sensitive to even small changes in voltage and current, so I wouldn't gamble with low-quality power supplies.
Not only that, but MagSafe is not a feature other third party manufacturer may have, it might actually damage your system if the magnet is too powerful. I think you have better luck using an UPS instead.

Similar Messages

  • How to use XPath with XMLBean?

    Hi all,
    I'm using xmlbean for a new project now, and everything was great until I tried
    to use a XPath selection.
    I got a "java.lang.UnsupportedOperationException: This operation requires xqrl.jar"
    exception, but I could not find this jar anywhere.
    I'm using the stand alone version of XMLBena. This is a small project and there
    is no need for an App Server, therefore no full WebLogic 8.1
    Any ideas?
    Thanks,
    Silvio

    Hello Silvio -- Are you working with XMLBeans as downloaded from Apache?
    XPath support in the standalone implementation of XMLBeans is limited to
    simple expressions. The more sophisticated support available via xqrl.jar is
    included with XMLBeans as it ships with WebLogic Platform 8.1.
    Steve
    "Silvio deMorais" <[email protected]> wrote in message
    news:3ff9b696$[email protected]..
    >
    Hi all,
    I'm using xmlbean for a new project now, and everything was great until Itried
    to use a XPath selection.
    I got a "java.lang.UnsupportedOperationException: This operation requiresxqrl.jar"
    exception, but I could not find this jar anywhere.
    I'm using the stand alone version of XMLBena. This is a small project andthere
    is no need for an App Server, therefore no full WebLogic 8.1
    Any ideas?
    Thanks,
    Silvio

  • Creating a web service with XMLBeans

    Hello
    I have created an XML schema defining some complex types such as Person, Address, etc.. I use the Apache XMLBeans project (version 2.2.0) to automatically generate Java beans from my schema. I then populate these objects using standard accessors.
    I want to expose methods such as Find, Retrieve, etc.. as web services which return these XMLBean objects in the SOAP body.
    public PersonType findPerson(String p_surname)
    public AddressType retrieveAddress(String p_houseNumber, String p_postcode)
    I understand the fundamentals of web services and have successfully written web services from scratch using Apache Axis.
    I'm now using JDeveloper 10.1.3.0.4 and creating web services using the wizard. When stepping through the wizard I get to the part where you are asked to choose which methods of your class you wish to expose. In my case all the methods are greyed out. Now I believe this is because my methods are returning complex Java types (generated by XMLBeans) which themselves contain other complex types which have no serializers defined for them.
    Has anyone written a custom serializer for XMLBeans to work with JDeveloper/OC4J or know how to get started? Any other tips?
    Any advice greatly appreciated.
    Thanks.

    Hi,
    When you start the create WS wizard in SE80 you can choose what to base it on - an RFC, a BAPI or a function group.  If you choose function group you can then choose which modules within that function group to make available as operations.
    Hope this helps,
    Gareth.

  • How to handle abstract XML elements with XMLBeans

    Hello,
    I have an xsd that uses abstract elements, and i wanted to ask you how can i create new XML Documents with XMLBeans? My problems is that i don't know how to handle abstaction with XMLBeans.
    Let me show you a very simple example to make you understand my problem :
    Suppose we have the following schema :
    <xsd:schema targetNamespace="http://www.example.org" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.example.org">
         <xsd:element name="Customer" type="CustomerType" />
         <xsd:complexType name="CustomerType" abstract="true" />
         <xsd:complexType name="PremiumCustomerType">
              <xsd:complexContent>
                   <xsd:extension base="CustomerType">
                        <xsd:sequence>
                             <xsd:element name="CreditCard" type="xsd:string" />
                        </xsd:sequence>
                   </xsd:extension>
              </xsd:complexContent>
         </xsd:complexType>
    </xsd:schema>I use XMLBeans to create a jar with java classes according the xsd above. Then, in order to create a new xml document i use the following code :
    CustomerDocument cd = CustomerDocument.Factory.newInstance();
    CustomerType ct = cd.addNewCustomer();
    PremiumCustomerType pct = PremiumCustomerType.Factory.newInstance();
    ct.changeType(pct.schemaType());With this code i get an XML Document like the following :
    <Customer type="PremiumCustomerType" />But after that, i cannot add an element CreditCard into this Customer element. Can anyone help me?

    In Indesign there is no way you can directly work on the XML-IN footnote, since indesign won't support XML tags in footnote stream.
    To achive that you need to have XSLT/Perl/Indesign Scripting.
    This task is achievable, you can create a auto footnote for XML workflow projects.
    1. Create an XSLT to transform the footnote to the respective places
    2. Change all the "<" ">" to some standard names, since indesign won't accept XML tags in the footnote stream.
    3. Import it in indesign and using script convert it to autofootnote.
    Shaji

  • Performance of web services with XMLBeans on WLS 9

    We are planning to use XMLBeans extensively for web services development on WLS. Recently another group within our company did a performance study indicating horrible performance with XMLBeans and WLS 9.2 especially when processing long requests (> 1000 xml elements). This puts in question whether XMLBeans with WLS 9.x is actually the right platform for us to build/host a large number of services.
    XMLBeans is a highly regarded XML<->Java binding tool as explained in numerous past articles both on Dev2Dev and other technology websites. We also understand that it is an integral technology used by other BEA products such as WLI and Liquid Data.
    We are wondering if BEA has any resources/reports on performance of web services (which uses XMLBeans) on WebLogic. Thanks.
    Edited by ductrinh at 06/04/2007 1:05 PM
    Edited by ductrinh at 06/04/2007 1:06 PM

    Hi,
    We test several frameworks and find out that usually JAXB 2.0 performs better than XMLBeans, but that is not a strict rule.
    Regards,
    LG

  • Problems with xmlbeans in workshop 7.0

    Hi,
    I have been trying to use the purchase order example for XMLBeans (http://workshop.bea.com/xmlbeans/docindex.html)
    in Workshop 7.0.
    I have the jar file for the schema and added it in the WEB-INF/lib of my Workshop
    7.0 project. When i try to use it in the Java class, it is not able to find the
    classes. The wierd part is when i add the package info leading to my class in
    my import statement one-by-one, it shows me the packages in the workshop but once
    the statement is completed it says "the class not found in import".
    The same jar is working in Workshop Beta 8.1.
    Does anybody know what is wrong in 7.0?
    Raghu

    Raghu,
    The files that you add to the IDE classpath would not affect what the
    project's classpath. For the project to be able to load the classes, they
    must be present within the project or must be added to the WebLogic server's
    classpath.
    In 7.0, the server is not certified on JDK 1.4.1.
    Hope this helps.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Raghu Subramaniam" <[email protected]> wrote in message
    news:[email protected]...
    >
    Raj,
    But why is Workshop not able to locate the classes in Design View? Ithought workshop
    uses jdk1.4 as per the winLaunch.cfg file.
    Am i missing something?
    I do realize that i will not be able to run my web service using thexmlbeans
    in 7.0 with jdk1.3.
    Thanks
    Raghu
    "Raj Alagumalai" <[email protected]> wrote:
    Raghu,
    xmlbeans requires JDK 1.4.1, but the 7.0 server runs on JDK 1.3.1, and
    is
    not supported on JDK 1.4.1
    from http://workshop.bea.com/xmlbeans/docindex.html
    Note: The Java examples in this documentation require JDK 1.4 or later.
    You
    can download the JDK at http://java.sun.com/j2se/downloads.html.
    Can you try with Workshop 8.1 beta ?
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Raghu Subramaniam" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I added the xmlbeans classes in the winLaunch.cfg and theWorkshop.properties
    to set the classpath. But still the workshop editor shows "class notfound". It
    is not able to find the classes from the xmlbeans.jar
    The jws file does get compiled and can be run successfully too.
    The JARs are kept in the WEB-INF/lib of the project. I tried with
    another
    another
    jar, and workshop is able to find it. The problem seems to be onlyhappening with
    XMLBeans jar.
    My workshop build version is 7.0.2.0.0127.0.
    Is this a known bug? Any solutions, please!
    Raghu
    "Raghu Subramaniam" <[email protected]> wrote:
    Hi,
    I have been trying to use the purchase order example for XMLBeans
    (http://workshop.bea.com/xmlbeans/docindex.html)
    in Workshop 7.0.
    I have the jar file for the schema and added it in the WEB-INF/libof
    my Workshop
    7.0 project. When i try to use it in the Java class, it is not ableto
    find the
    classes. The wierd part is when i add the package info leading tomy
    class in
    my import statement one-by-one, it shows me the packages in the
    workshop
    but once
    the statement is completed it says "the class not found in import".
    The same jar is working in Workshop Beta 8.1.
    Does anybody know what is wrong in 7.0?
    Raghu

  • HT202667 Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get it transferred over from her Home Sharing account to mine so that I can use it with my PC?

    Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get her Home Sharing account transferred over to mine so that I can use it with my PC? Thanks!

    As  Winston Churchill wrote, however you might want to do a factory reset on the Apple TV.
    This way all information pertaining to your daughter will be removed from the device. Specifically if see was sign into any of the streaming service, Netflix, Hulu, etc. her credentials will still be associated with this Apple TV, doing  a factory reset will remove all that and make it as if you purchased the device and just plugged it in.
    regards

  • OPEN CURSOR using a WITH clause in the select query

    Hi,
    I am using Oracle 9i. I have a requirement where I have a REFCURSOR as an OUT parameter for my procedure. I have declared the TYPE and created the procedure.
    In the procedure, I am using OPEN <cursor_name> FOR <query>;
    Ideally this works in most of the cases that I have tried earlier. However, in the current case I am using a WITH clause in my query to get the results.
    I need help in understanding if the above mentioned syntax would not allow me to use the WITH clause in the query.

    What error do you get , seems to work ok for me on 10g
    SQL> begin
      2  open :cv for 'with x as (select * from emp)  select * from x';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> print :cv
         EMPNO
    ENAME
    JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7521
    WARD
    SALESMAN        7698 22-FEB-81       1250        500         30
          7566
    JONES
    MANAGER         7839 02-APR-81       2975                    20
         EMPNO

  • My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    In the Music tab of iTunes, do you have 'Include Voice Memos' checked?

  • I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way?

    I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way? I appreciate that it is a different computer but I am now the end user of both devices and I was just wondering if it was possible.
    Thanks,
    Sean

    The answer would be in your software license agreement for Aperture. However if you cannot locate it you can ask in the Aperture forum, the link for that is:
    https://discussions.apple.com/community/professional_applications/aperture
    However I believe you can have Aperture installed on two machines however only one may be using it at a time.
    On the new iMac launch the Mac App Store - Purchased - look for Aperture and download to your new machine.

  • How do I use LDAP with iMQ 2.0?

    I am looking for an example to see how to use LDAP with iMQ 2.0.
    I was able to set up the config settings to access a local LDAP,
    but iMQ authentication still rejects valid logins.
    Let me know if I can find more info someplace.

    You can also find an example I put togther in the Sun One knowledge base.
    If you go here:
    http://knowledgebase.iplanet.com/NASApp/ikb/index.jsp
    Search for article 7772
    Alternatively here is the direct link
    http://knowledgebase.iplanet.com/ikb/kb/articles/7772.html

  • How do you use Struts with Jboss Portal

    I am trying to use strust with jboss portal but I am getting the following error:
    An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
    org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
    I am getting this is in the log file
    Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
    68: List searchresult = (List) request.getAttribute("searchresult");
    69: %>
    70: <%
    71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
    72: {
    73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
    74: %>
    Stacktrace:
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
    ... 238 more
    Caused by: java.lang.NullPointerException
    at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    ... 255 more

    I am trying to use strust with jboss portal but I am getting the following error:
    An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
    org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
    I am getting this is in the log file
    Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
    68: List searchresult = (List) request.getAttribute("searchresult");
    69: %>
    70: <%
    71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
    72: {
    73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
    74: %>
    Stacktrace:
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
    ... 238 more
    Caused by: java.lang.NullPointerException
    at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    ... 255 more

  • How do I use my apple bluetooth keyboard with touch and will I still be able to use it with my ipad?

    How do I use my apple bluetooth keyboard with touch and will I still be able to use it with my ipad?

    iPod touch User Guide (For iOS 4.3 Software)

  • How do I use user_datastore with a feeder proc to add an mdata section?

    Hi,
    I have text data spread across a number of different tables. I have created a user_datastore with a feeder procedure that creates an xml document which is then indexed into a dummy column on the parent table. This works fine. However I need to add an mdata section to the index, via my xml document. I haven't seen any examples of this being done in conjunction with the ctxsys.auto_section_group option of the create index statement, and am wondering if it is possible?
    Could somebody furnish me an example of how I achieve this.
    Oracle 11.2.
    Thanks
    Ralph

    You can't use MDATA with AUTO_SECTION_GROUP. AUTO means it automatically assigns zone sections for every tag it finds - if you want anything other than zone sections you must use BASIC_SECTION_GROUP, XML_SECTION_GROUP or HTML_SECTION_GROUP and manually define your sections.

  • I have a used Iphone with someone elses email on it for itunes, how do i remove it and put my account there

    I have a used Iphone with someone elses email on it for itunes, how do i remove it and put my account there
    It is an Iphone 4

    If you go to settings- store - click on the ID and sign out. Then you can put in your apple id.

Maybe you are looking for

  • Problem highlighting and moving things with left mouse button on Sat A100

    Hi, my problem started after a reinstall, I wanted to highlight something on a web page, then copy and paste it, but couldn't. Then I wanted to move the bar on a excel worksheet, but couldn't, the cursor changes shape etc nut it wont let me highlight

  • MOVED: msi p35 neo combo starting troubleshooting after o/c

    This topic has been moved to Overclockers & Modding Corner. https://forum-en.msi.com/index.php?topic=110472.0

  • MB pro Late 2011 15" lagging

    Hiya! I just got this refurbished MB not even a week ago after my other one went keput. It started up fine, and ran well wih no problems whatsoever. I loaded my last time machine entry(?) and still all seemed to be going well. Then I did FileVault. E

  • App to import audio from vinyl or cassette to Mac

    I would like to import audio from my vinyl and cassette collection to my iMac. Does anyone have any recommendations for a reasonably priced App which will do this successfully? Any help would be appreciated.

  • Excessive pagefile size

    With an uptime of just 2 days (from the "uptime" unix command), my virtual memory size is 14.21GB. I have four applications loaded aside from Finder - Dashboard, Safari, Photoshop, and a small HTML editor. Worryingly, my ratio of pageins to pageouts