Need some help how to generate xml from java bean.

Hi,
Can some one help me how to generate the xml format output from a java bean.
The bean contains around 15 to 20 attribute values.
Thanks in Advance.
sarayu

You can use XMLEncoder with custom persistence delegates if needed:
http://java.sun.com/products/jfc/tsc/articles/persistence4/

Similar Messages

  • Need some help in saving video message from viber to my Iphone. I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery"

    Need some help in saving video message from viber to my Iphone 5S with new ios 8's program . I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery" thing but it doesn't save in gallery. I tried all, restarting my phone, rebooting then turning on the save automatically thing and when I watch it again, it still wouldn't save.

    Probably a good question to ask Viber or look at their support site.

  • Need some help with downloading PDF's from the net.

    need some help with downloading PDF's from the net.  Each time I try to click on a link from a website, if it takes me to a new screen to view a pdf, it just comes up as a blank black screen?  any suggestions?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • How to generate XML from EBusiness suite ARXSGPO

    Could someone tell me how I can generate XML from the EBusiness Suite Accounts Receivable report ARXSGPO.rdf I understand this report is called by a C program. I have tried changing the concurrent request to output format to XML the result does not resemble XML. Does anyone have any suggestions how I can generate XML from the ARXSGPO report?
    Thanks,
    Mark

    Hi Mark
    the next release of XMLP will have last page only support. The problem is that at the template layer you do not know how many lines are going to fit on the page, so you never know what is going to be the last page. The only way around it for now is to specify the number of lines to a page and then check when all the lines have been rendered and then render the remit portion.
    I have a sample invoice that does the same, drop me a mail, you can work out the email from my name and the fact I work for XMLP Im sure.
    Tim

  • How to generate XML from SQL query

    possible ways to generate XML from SQL qury.
    i want to generate XML of following query. "Select * from emp,dep wher emp.deptno=dept.deptno"

    Hello.
    Can you try:
    SQL> set pages 0
    SQL> set linesize 150
    SQL> set long 9999999
    SQL> set head off
    SQL> select dbms_xmlgen.getxml('Select * from emp,dep wher emp.deptno=dept.deptno') from dual;
    It works fine for me.
    Octavio

  • How to call xml from java

    Hi
    I want to use xml for updating files in an existing jar . so i want to call xml from java code and then come back to java code and do the remaining work in java code, pl guide me how to do this . what APIs are helpful for this regard
    Thanks

    You can't update files in a jar. Even if you could, you wouldn't use XML for that. You don't call XML. XML is not a programming language. So, basically your entire question is misguided.

  • How to generate XML from relational data : PL/SQL or Java

    I'm new to Oracle XML and would appreciate some advice. I've been asked to generate XML documents from data stored in relational tables. The XML documents must be validated against a DTD. We will probably want to store the XML in the database.
    I've seen a PL/SQL based approach as follows :
    1.Mimic the structure of the DTD using SQL object types 2.Assign the relational data to the object type using PL/SQL as required
    3.Use the SYS_XMLGEN package to render the required XML documents from the SQL objects
    However, creating the object types seems to be quite time consuming (step 1 above) for anything other than the simplest of XML documents.
    I've also seen that there is the Java based approach, namely :
    1. Use the XML generator to build Java classes based on a DTD.
    2. Use these classes to build the required XML
    On the face of it, the Java based approach seems simpler. However, I'm not that familiar with Java.
    Which is the best way to proceed ? Is the PL/SQL based approach worth pursuing or should I bite the bullet and brush up my Java ?
    Is it possible to use a combination of PL/SQL and Java to populate the dtd generated java classes (step 2 of the Java approach) to reduce my learning curve ?
    Thanks in advance

    To help answer your questions:
    1) Now, in 9iR2, you can use SQL/XML as another choice.
    2) You can also use XSU to generate the XML and use XSLT to transform it to a desired format instead of using object views if possible.
    3) XDK provide Class generator support to populate XML data to Java classes.

  • Adobe LiveCycle Workbench -- How to generate XML from SQL Server 2008 R2

    Hello,
    Please let me know if anyone has the solution to generate XML in adobe livecycle workbench and generate a dynamic PDF form using that XML.
    Regards,
    Himanshu

    Yes, XML could be generated as here : http://www.adobe.com/devnet/livecycle/articles/building-xml.html
    You can merge this XML with the form template and generate the form.
    Hope this helps.
    Thnaks,
    Wasil

  • [HELP] How to invoke BPEL from JAVA program via calling WSDL?

    Dear all,
    Customer want to invoke BPEL process in their Java program by calling BPEL WSDL, but not successfully.
    Does BPEL support this calling way? If so, would pls give a sample?
    BTW, they do not want to use API of OraBPEL.jar.
    Thanks in advance.

    Krishna, Not sure what you mean by 'normal' web service....I mean, is BPEL service not normal, is it not as per WS standards. It would be interesting if you could shed some light on that.
    On the question of calling BPEL, I thought there were two methods - one is using the BPEL PM API, which uses the locator class to get hold of BPEL PM instance and then call a deployed bpel service
    The other way is to develop a web service proxy using JDeveloper. Its a very simple process. Once you do that, you can call the proxy from Java.

  • Need some help trying to generate thumbnail images from large Jpegs

    Hello,
    I have some ActionScript 3.0 code, created with Flex that
    will load a large JPEG image (say 3000x2000 pixels) that I'm trying
    to create a 100 pixel thumbnail. I have the code working where I
    generate the thumbnail, but it's not maintaining the aspect ratio
    of the original image. It's making it square, filling in white for
    the part that doesn't fit.
    I've tried just setting the height or width of the new
    image, but that doesnt render well, either.
    To see what I'm talking about, I made a screen shot, showing
    the before image, and the rendered as thumbnail image:
    http://www.flickr.com/photos/taude/533544558/.
    Now, there's a few things important to note. I'm saving the
    thumbnail off as a JPEG. As you can see in my sample application,
    the original renders fine with the proper aspect ratio, it's when
    I'm copying the bytes off the bitmapdata object, where I need to
    specify a width and height, that the trouble starts. I've also
    tried using .contentHeight and .contentWidth and some division to
    manually specify a new bitmapdatasize, but these values seem to
    always have NaN.
    private function makeThumbnail():void{
    // create a thumbnail of 100x100 pixels of a large file
    // What I want to create is a a thumbnail with the longest
    size of the aspect
    // ratio to be 100 pixels.
    var img:Image = new Image();
    //Add this event listener because we cant copy the
    BitmapData from an
    /// image until it is loaded.
    img.addEventListener(FlexEvent.UPDATE_COMPLETE,
    imageLoaded);
    img.width=100;
    img.height=100;
    img.scaleContent=true;
    img.visible = true;
    // This is the image we want to make a thumbnail of.
    img.load("file:///C:/T5.jpg");
    img.id = "testImage";
    this.addChildAt(img, 0);
    private function imageLoaded(event:Event):void
    // Grab the bitmap image from the Input Image and
    var bmd:BitmapData =
    getBitmapDataFromUIComponent(UIComponent(event.target));
    //Render the new thumbnail in the UI to see what it looks
    theImage.source = new Bitmap(bmd); //new Bitmap(bmd);
    public static function
    getBitmapDataFromUIComponent(component:UIComponent):BitmapData
    var bmd:BitmapData = new
    BitmapData(component.width,component.height );
    bmd.draw(component);
    return bmd;

    Dev is 10gR2 and Prod is earlier version of Oracle, 10gR1.
    The schema (or table(s)) export file created by Oracle Database Control in Oracle 10gR2 is not importable into 10gR1, by default.
    Workaround.
    Use the Schema (table(s) export wizard of in the Maintenance section
    of the Oracle Database Control in ver 10R2,
    but when you get to the end of the wizard (I recall Step 5),
    show the data pump export source PL/SQL code, cut and past to editor,
    and find the variable where you can set the Oracle database version
    to your prod database version,
    then run the script from the SQL Plus prompt in 10gR2 dev,
    and this creates an Oracle 10gR1 compatible data export file.
    Then go to Prod and run the schema (table(s)) import data wizard,
    and import the export file. You will have to option to move the data
    to another schema or tablespace if required.
    Just to not run into troubles, I use the same schema and tablespace name
    in both dev and prod.
    the variable you must modify in the 10gR2 datapump export script looks like
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'ExportTableToProdJob', version => 'COMPATIBLE');
    and you must change manually to
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'ExportTableToProdJob', version => '10.1.0.1');
    This creates a 10g1.0.1 or later compatible export data file.
    You must have read/write privileges to the folder were the export data file will be created, and imported from. (Oracle Directory Object)

  • Need some Help & suggestion on setting & connecting From Mini to IPod Touch

    I just recently bought a IPod Touch (16GB). I had discovered for me to connect to the internet on my Ipod Touch I need a Wireless Router or have some kind of WiFi connection, I don't have that right now but I Do Have a DSL Broadband Modem ( Westell). I had recently ordered a Apple Airport Extream Base station hoping that may Help me connect and have the WiFi that I need to have connect to my Ipod Touch. What do you think?
    My Mac Mini already has a wireless card Airport Extream installed but the Airport is turned off, How Do I Turn it back on in my computer?
    I was reading one Post that was kind of similar to my situation, the answer was that the Person needed a USB Cable to connect to the Ipod Touch, How is that Set Up? and what type of USB Cable? and can you get one from either the Apple web site or from MacMall?
    The other Answer was to share the WiFi with a broadband and to create a WiFi Network with the Mac Mini How Do I do That and How Do I Share the Internet connection with my IPod Touch?
    In My Ipod Touch Settings under the WiFi it says to choose a Network: there are 2 Options one is 2WIRE460 which is Locked the other says: Other where I have to put in a Network name, How do I get Pass this or how Do I set this up? after I set up a wireless and a WiFi system?
    Thank You,
    Mrs Foster.

    Hello, 
    You can use the Mini and it's Airport Extreme card as a simple router so there is no need for the AEBS. You cannot sync the iPod touch by WiFi (Airport) but you can access the internet:
    Go to  menu > System Preferences... > Sharing > Internet tab.
    Choose "+Share your connection from: Built-in Ethernet+" and "+To computers using: Airport+".
    Click "+Airport Options...+"
    Enter a Network Name of your choosing.
    Check "+Enable Encryption (using WEP)+"
    Enter a 13-character password twice.
    Select "128-bit".
    Press "Okay".
    Press "Start".
    Navigate to  menu > System Preferences... > Sharing > Services tab.
    Check "+Personal Web Sharing+".
    You should now be good to go to use Safari.
    cheers
    mrtotes

  • How to generate XML from XML schema

    Hi,
    I have registered XML schema and I would like to construct XML document for the schema. I wonder it is possible to create an empty instance and then populate it with the data? One solution is to construct the XML with concatenation of the elements but I think it exists more flexible and intelligent way. I read OTN and Metalink samples, documentation and forums users’ examples but I did not find any appropriate. What is the ordinary way for XML construction? Can you give me some advice? Tank you in advance.
    Best regards,
    Georgi

    The JAXB Class Generator generates java classes with the
    orajaxb utility.
    oracle.xml.jaxb.orajaxb -schema <schemafile> -outputDir <outputdir>
    The java classes generated have get/set methods to construct an XML document.
    thanks,
    Deepak

  • Need some help on tagging an XML placeholder please

    I'm trying to get my image line to have a paragraph style of 'img_stem' attached to the return. But while my placeholder does show that I do have that para style, when I import the xml, the para changes to the style 'Stem_Text.' Can anyone tell me what I may be doing wrong here? The 1st picture shows the placeholder text. The 2nd picture shows the xml after importing.
    TIA,
    Janine

    Anyone out there with xml experience that can help?
    Thanks

  • I need some help - Can't get response from refurbished AP1232AG access points -

    We purchased 4 Cisco-refurb AP1232AG access points, intending to use one as a router and the others as repeaters. We have ran AC power to locations for all of the routers, mounted them in outdoor NEMA boxes, added the lightning arrestors and attached 12db omni antennas. All of that process went well.
    I'm trying to access the routers per instructions by cisco, which state that all refurbs are set to 10.0.0.1 and must be accessed using a console cable from computer com port to the unit's console port. We have the cable and have it set up in that manner. We have tried using telnet, serial and web sessions within the Indigo software and it  states the unit is not responding. I've tried using the Cisco IPSU and get the same message that the unit won't respond. I can't ping it from the C drive as well. All of the routers respond similarly so I'm certain that it's my fault and not the APs.
    Is there anyone who can take a minute to walk me through what I may or may not be doing correctly to access the APs and get them configured? I lack the requisite background to determine the problem on my own. I feel confident that I can configure them if I can get to them.
    Any would be appreciated.
    thanks

    Hi rlrigsby0613 and welcome to the Cisco Home Community!
    This product is being handled by the Cisco Small Business Support Community.
    For future discussions about this product, go here.
    The Search Function is your friend.... and Google too.
    How to Secure your Network
    How to Upgrade Routers Firmware
    Setting-Up a Router with DSL Internet Service
    Setting-Up a Router with Cable Internet Service
    How to Hard Reset or 30/30/30 your Router

  • How to generate xml from xsd

    Hi,
    Is there any tool to validate the xml file form given xsd.
    Regards,
    Shakir

    did you not ask this before,
    http://forum.java.sun.com/thread.jspa?threadID=791199
    Hi,
    I am new to xml.I want to validate the xml file from
    a given xsd file.
    Is there any tool validate xml file from a given xsd
    file
    Regards,
    Shakir

Maybe you are looking for

  • Method calling

    Hello, I have a problem in calling a method in say ClassA from ClassB. In my scenario, ClassA knows the name of the calling class, namely ClassB as it has been stored only as a string variable. So, In ClassA, I have a declaration statement like Strin

  • Cant connect iPOD to WRT160N v3--please help

    I have a new WRT 160N router that I have set up and works well with my wireless laptop.  However, I cannot get my IPOD to work with this router.  I put in the security code and it will not accept.  Can anyone help?  THanks.

  • Library consolidation error

    How do I consolidate my music?  Half of my music is in the music library and half in an unnamed playlist.  I tried consolidating it all but it says that there is a file missing.  Please help me.

  • Regarding Transaction Launcher

    Hi Experts, Plz give me steps for Transaction Launcher from R/3 to IC Web Client. I am following this bloge /people/raja.g/blog/2007/01/24/displaying-r3-transaction-in-icwc-application But in this blog no RFC configuration maintained.I need those ste

  • Where do I find information on how to use all the features of iPhoto on the iMac?

    I was told that iphoto  would be easy to use on IMac but I am not finding that true.  Is there a guide to how to use Iphoto?  Transferring photos from my external drive to iphoto is not working as I would expect.  It imports them to a new "last impor