What is the best way for this situation?

Hi I have a xml file in my application. over a period of time, I have to add some nodes to the existing xml file.

In my business logic when a particular condition is met I have to add a child node to the existing parent for an existing xml file node.

What is the best way to do it? which api is best for this?

Myriam wrote:
DOM parser, we can parse the xml file but can write us in XML file?

Sure. This is the opposite operation of analysis, and it is called "Serialization".

The usual to serialize a DOM to a file is to create a transformer and to apply the transformation of identity for the DOM. However there are also third party XML serializers that do not take this approach.

Tags: Java

Similar Questions

  • What is the best plan for this situation

    I was looking at the pricing for the CC apps plans and I'm not sure who would fit better.

    Long story short, I was hired for a new company to start and my job will be to do graphic design work.
    I'm going to need both Photoshop and Illustrator for this. Two unique licenses for businesses will run on nearly €60, whereas a full license of CC will be close to €70. Is there not a better option for someone who just wants a few applications, or better, I'll pay for the full package of CC? Also, I'm not sure if the business is the ideal solution, is there a distinction between small and large firms?

    You can use individual plans in a commercial enterprise. The software will be linked to your personal ID from Adobe.

    Business plans are a misnomer. They should only be referred to as creative cloud for teams. They allow centralized deployment and management of software. Not related to the individual Adobe ID.

  • What is the best way for foglight consume a webservice

    I hope that this is has not been replied that a bazillion times and if it is please send me the link I'm open to that.  What is the best way for foglight consume a Web service and respond with an alarm if the response from the Web service is not what is expexted.

    for example, calls Foglight webservice to acme.com/areuup and he responds with correct status in json format process.  If it does agree return, then foglight must send alerts to correct individuals.

    Thank you

    Kaleb

    in the end, we have used a perl script to capture the webservice and treat it and tables configuration.  Here is what has been written and created an agent custom.

    I apologize to all those who find the bulky comments, but it's my edition of journal of the script. I removed the comments once the script has been published and used.

    ===

    #! / usr/bin/perl

    #############################################################

    # Author: Kaleb J. Albee

    # Depandancies: SOA webservice

    # Engineers: Marc and Manu

    # Date: 28/02/2013 perl: (v5.14.2) built for x86_64-linux-gnu-thread-multi

    # Operating system: Linux 3.2.0 - 29-generic eam-ops-test #46 - Ubuntu SMP Wed Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

    #############################################################

    use strict;

    use warnings;

    use Try::Tiny;

    use SOAP::Lite;

    use SOAP::WSDL;

    Use Time::Local;

    My = @soaenvs ('BSE - dev', 'BSE test', 'BSE-scene', 'BSE');

    # parameters: $_ [0] receives a call of SOAP client object.

    #

    void toStr {return $_ [0] == 1?} 'up': 'down' ;}

    void getBusResults {}

    # $_ [0] will be the $client spent

    # create a different buses SOAP connection.

    my $result = $_ [0]-> (getMessagingEngineHealth)

    # arg0 is used to set the setting for what is expected on the soa web service.

    SOAP::Data-> name (arg0 => $_ [1]));

    # $_ [1] will be the bus happened in

    return (Lk ($result) "started" eq? 1: 0);

    #return $result;

    }

    # Start sampling.

    My $curTimeStamp = "";

    my $count = 0;

    Print "LdsEsbBusHealth5\nSTART_SAMPLE_PERIOD\n TABLE";

    foreach my {$soae (@soaenvs)

    my $client is SOAP::Lite-> service ("put the url of the webservice here.");.

    $count ++;

    # create an object to inspect objects. My $insp = Data new::Inspect->; Download the time stamp for this.

    my ($sec, $min, $hr, $day, $mon, $year) = localtime;

    # format the year correctly for useage.

    My $curyear = 1900 + $year;

    # the hand to the fglam agent fields at the tables.

    My $soacei = getBusResults ($client, "messaging.000 - CEI.esb.BUS");

    My $soaapp = getBusResults ($client, "messaging.000 - SCA.APPLICATION.esb.Bus");

    My $soasys = getBusResults ($client, "messaging.000 - SCA.SYSTEM.esb.Bus");

    $curTimeStamp = ' $curyear$ MON$ day$ hr$ min$ s ";

    Print "SoaEnv.String.id=$soae\n";

    Print "CeiBusNum = $soacei\n";

    Print "AppBusNum = $soaapp\n";

    Print "SysBusNum = $soasys\n";

    Print "CeiBusStr.StringObservation.obs =". toStr ($soacei). "\n";

    Print "AppBusStr.StringObservation.obs =". toStr ($soaapp). "\n";

    Print "SysBusStr.StringObservation.obs =". toStr ($soasys). "\n";

    Print "Daterun.StringObservation.obs=$curTimeStamp\n";

    If ($count<=>

    Print ("NEXT_SAMPLE\n");

    }

    } {$soae foreach (@soaenvs) #.

    Print "END_TABLE\n";

    Exit 0;

    ===

    I hope this helps someone out there!

    Bravo!

  • The older of the camera, there was a scene or stage spot. What is the best replacement for this scene selection

    The older of the camera, there was a scene or stage spot.  What is the best replacement for this scene selection

    The best replacement for staging Spotlight is probably the Night Portrait setting.

  • What is the best solution for this idea...

    I have a task I'm trying to test and understand what would be the best solution for this, any recommendations would be appreciated.

    Devices at your fingertips:

    -2 ESXi hosts

    -1 iSCSI SAN OpenFiler (new just installed the app)

    2 ESXi hosts run a small amount of virtual machines that are all in the same domain.  I want to have a file server (or a repository somewhere) that houses a folder with easily accessible software (OS, Office, etc.) on the field.

    According to me, that if I made a virtual machine with a large hard drive and share the software, this would not be the best way because it would be dependent on the OS.  Someone has talked about doing a separte VMDK for it and then install it on the operating system on the virtual machine. This way I could always remove the and mount it somewhere else.

    It seems a bit weird to me that the software within this "shared folder" will also be sitting on the data store (if I create a virtual machine and need to use the OS/etc).  Not that doubles the space for the same software (in the comments, then the data store)?

    What is the best approach to make this action which can be accessed at the prompt (mostly windows) in the field?

    What is the best way to stay away the software doubles in action and on the data store?

    Please forgive me if I put interpereted your question.

    The problem you seem to face is that you must mount the ISOs of VMS software and physical systems that are on the field.

    (please, correct me if I'm wrong on this)

    If this is the case, then the best way to do would be to create sharing NFS on the openfiler, if you use openfiler to main databases also then he would be better for sharing this was separated to prevent the other help to be able to tamper with the VMDK and VMX files for your virtual machines.

    This could then be mounted in ESX to access the ISOs. While being easy to install on Linux and Windows machines to access the ISOs.

    If you have questions about NFS mounting in windows, so, this link may help

    http://sagehacks.WordPress.com/2009/01/21/HOWTO-mount-NFS-shares-under-Windows-7

    If you are needing to access the VMs software and it is mainly the downloading ISOs then th ISO directly to the data store is possible.

    This allows you to use ESX to mount the ISO on the virtual machine.

    On the point that the software will use double disk space when you install the software on a machine virtual car will be on the network share and the VMDK virtual machines in the data store. That's right, and that's by design.

    Each virtual machine under ESXI is 'independent' (http://www.vmware.com/virtualization/virtual-machine.html)

    This means that each virtual computer must have its own copy of the application.

    This perspective reflection of each virtual machine as a separate system of 'physical '. They interact with each other as if they were physical systems.

    Each VMDK resembles a physical hard disk. Being accessible (in most configurations) 1 VM at a time.

    So if you had a set of physical systems connected to a domain and I wanted to install an application on each one, then each would have its own local copy of the application. It's the same thing with virtual machines.

    However

    If you configure a set of physical machines so that you run the software from a network share. It is possible to do the same thing using virtual machines using the exactly the same configuration. However, the chiefs more associated to this are important in both cases.

    Concerning

    Cyclooctane

  • What is the best way for a J2EE developer with oracle?

    Hello

    I am a J2EE developer, for the moment I'm working in a commercial bank as an enterprise application developer. Java, I learned when I was following a degree of local COMPUTER and with the help of books, work at my place of work and the internet, today I develop applications with JSP, Servlets, JSF2.0, EJB3.0 and third-party J2EE part libraries JSF etc (I also develop software using other programming languages such as Asp.net, c# .net, etc. WPF, but I prefer to be in the path of java). Other than that, I also work as the designer of the user interface of most of our applications.

    I have the skills and practice after having worked for 4 years as a developer of web/enterprise applications & UI designer, but now I have to focus on some grades of paper and so I do BCS.

    Now, I want to be a professional in the Oracle java path, and I need to know what is the best way, I choose to go with Oracle. I finished my SCJP courses, but did not take the exams, because there were rumors that Oracle will clear these reviews in the future. I am interested in Oracle university, but I'm unable to even think about it as I live in Sri Lanka and is not only a large part of the wealth to go to the USA and join.

    So I really appreciate if any professional Oracle could suggest me the best educational path based on what I mentioned about my technical and professional training. Because I have a dream to join Oracle a day as an employee and be a good contributor on the same forum, which I get help today!

    :-)

    Thank you!!!

    As you can see on our Web site, Oracle did not retire Java certifications. You can browse through the available certifications and I hope to help determine your path.
    http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=140

    SCJP became Oracle Certified Professional Java Programmer. You can find more information on these reviews on our site here: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=320.

    Concerning training, virtual training live might be an option for you. You can find more information at http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=233.

    Kind regards
    Brandye Barrington
    Certification Forum Moderator

  • Toshiba Satellite M60-154: what is the best way for a long service life of a battery?

    Hello Toshiba-users,

    I bought the "Toshiba Satellite M60-154" but I want to use most of the time on the AC adapter.

    I read the manual, but they say nothing about the battery life for people like me who will use the computer power adapter laptop most of the time.

    I would like to know if:

    (1) it is best put the battery inside when I use the laptop on the power adapter for a long time (they say this is not good for the life of the battery when it is fully charged and when he is still in charge...)

    (2) it is best to take the battery when when I use the laptop on the power adapter for a long time and check the battery every week for example to see whether or not it is still loaded (they say it's good for the life of the battery when the battery is fresh off once a week)

    Indeed, what should I do to make sure that the battery will have a long life, knowing that I always use the laptop on the power adapter instead.

    Thanks for the tips

    [Edited by: admin on 28-Sep-05 17:28]

    Hello

    your info is just. Only put the battery in the laptop, if you want to load or work without mains, to make sure that your battery has a long service life relative.

    Good bye

  • What is the best way for a small System Builder to sell Window 7?

    I'm starting to build specific systems of WMC. Some will be personalised, but many will be identical. I would like to create a Win7 installation with all the drivers and applications disc. What is my best and shortest path to follow and how do I buy and resell the license? What are my limits of cost and reseller price?

    http://www.Microsoft.com/OEM/en/licensing/sblicensing/pages/index.aspx

  • What is the best way for users to ask questions about an extension?

    Hi all!

    I developed an extension that I thought I would share it with the community and saw that adobe provides a neat platform do with almost no effort on my side

    One thing, this is where they can discuss my extension?

    I don't think that email is a good idea, because it makes you answer always the same questions, a forum is much better.

    I've seen you suggest that they do here.

    But then messages on all extensions will be mixed up.

    How can I subscribe to messages just with my extension? I don't want to be notified for all messages for all extensions!

    -Maybe I could start a specific thread for my extension and tell people to go there. Not very nice but seems simpler. Which would be ok with you?

    -Maybe there is a way to subscribe to just a tag / keywords? That could be better I think.

    -Best would be a secondary space (and maybe a bug tracking system?) Christmas is not that far )

    Thanks in advance!

    Yannick

    Mr Yannick

    I suggest starting a new thread about your product and then adding a hyperlink directly to the thread of your page Product Description on the site of modules. You can choose to follow and to bookmark the thread for quick and easy access.

    Kind regards

    Krystal - Exchange / modules team

  • What is the best software for this matter of form?

    I have a project for which I think Adobe have a solution, but I want to assure you that I have buy the correct software. I searched the forum but quite impossible to find the right answer.

    I want to be able to create a form that can be completed electronically, has captured for analysis of the data entered and then be able to print a paper copy of the completed form.

    What I understand from what I have read so far, I can create a form with Acrobat and distribute it in PDF format. Once the form is completed on-screen and submitted, the data will be captured by forms Central where I can analyze it. The person who completed the form and then print it as I need a signed paper copy. The completed form by e-mail, in which case it is completed on an i - Pad and can be sent to a place that can print?

    Finally, I need about 750 of these completed forms. Forms Central allows only 500 participants by the form, I think, but, with the right subscription can I distribute 2 identical forms and then export and merge data in, said Excel?

    Or Livecycle will do all what I want.

    Thanks in advance for any advice.

    With the basic plan of FormsCentral, the maximum number of answers in the table of responses at one time is limited to 500, but you can earn more if you export the responses and remove some of the table. If you get the plan, this number increased to 5000. So the question is to know if you think that you will be able to export before the response table fills up. But there is also a buffer zone so that all submissions over 500 are always saved, they are simply not shown until you remove a part out of the way, so no data is lost.

    Users will be able to present, print, save and email if you wish. They use Adobe Reader on the iPad, which is not the default PDF Viewer and cannot be made the default display.

  • What is the best way for possibly printed text?

    Hello

    I am a teacher and my exams in inDesign (because the formatting is much more reliable than Word!).

    In my reviews I leave a space for students to write by making a series of highlighted tabs the full width of the text box, then line break and repeat.

    I want to add the fixed in this sense the answer printed in OPTION. So in a single document, I can print the question on the examination, then print the answer key. I'm hoping not to have to duplicate questions in a second layer, as this then I would have to change in two places, if I need to change the question. The same would go for a layer of recovery with the answers in this document, that would depend on the same positioning two layers.

    Can anyone offer advice on how to design a document that allows the full width students to write nonprinting text AND lines on the lines that can be optionally printed.

    CS6 on OS X 10.9 using.

    Please ask if I did not provide enough detail.

    Thank you.

    -James

    I think you can do this by using conditional text. Select the responses, and then create a condition. And then you can choose to hide all text with this condition.

  • What is the best way for us to buy Adobe Acrobat Connect Pro?

    We currently use the creative cloud and want to use Acrobat Connect Pro to our Webinars. Is Adobe Connect, a part of the creative cloud or package package that we can choose which includes Adobe Connect?

    Hello

    Please see buying guide for conferences web solutions | Acrobat Connect Pro

    Kind regards

    Sheena

  • What is the best processor for my Vostro 1510?

    Hello!

    I want to upgrade the processor of my Vostro 1510, willing now to an Intel Core 2 Duo T5670 (1.8 GHz). I would like to know what is the best processor for this laptop, can you tell me? (I don't know the exact model of motherboard)

    In addition, the laptop has 3 GB of RAM, I would like to know if it supports 4 GB of RAM with another CPU? and if it's possible to upgrade to Windows 7 64-bit (Windows 7 32 bit)

    Thank you very much!

    Hi Michelleacc

    Please write to us.

    Following processors are compatible.

    T5870, 2.0, 2 MB, 800 MHz

    T7250, 2.0, 2 MB, 800 MHz

    T8300, 2.4, 3 MB, 800 MHz

    T9300, 2.5, 6 MB 800 MHz

    T9500 2.6, 6 MB 800 MHz

    T8100, 2.1, 3 MB, 800 MHz

    in regards to memory, you can go to a maximum of 4 GB only.

    The machine come with windows 7 factory?

    We provide system tag #, e-mail address and your name via private message, by clicking on my name in blue and then select send a private message

    Concerning

  • What is the best way to retrieve deleted mp3 files? I am running OSX Leopard 10.5.8 on a PowerPC G5 tower. I'll be very grateful for any help in this matter. Thanks to Chris

    Hello

    What is the best way to retrieve deleted mp3 files? I had a lapse of attention and I deleted a folder containing most of my music files. It is for the most part, the mp3 but there was regular audio files and some wav files in there also. I am running OSX Leopard 10.5.8 on a PowerPC G5 tower. I have another PPC machine to help the recovery, if I need, but at the moment, he is not appearing on my network (3 computers). I'm trying to change this soon. I'll be really grateful for any help in this matter.

    Thanks to Chris

    If you emptied the Recycle Bin after you move the folder to the trash, and you don't have a time Machine or another backup, then it is lost, sorry.

  • I have an After Effects project and I want to re-do edge animate. What is the best way work for this?

    I have an After Effects project and I want to re-do edge animate. What is the best way work for this?

    Hello

    Sorry, but you will probably need to rebuild everything in Animate. Although their timelines are similar in some ways, there is no interoperability between After Effects and animate dashboard.

    Kind regards

    Joe

Maybe you are looking for