Best way to generate the XML files from a DTD file

Hey,
I am writing an application that needs to convert a complicated data structure into an xml file. I have design a DTD file that describes the data structure.
My question is what is the best, most efficient way to covert the data structures (objects) into the XML files with a DTD file.
Thank you very much.
Candy

Convert the DTd to an XML Schema. Generate java classes from Schema with Jaxb. Create an XML document from the java classes.

Similar Messages

  • What is the best way to cancel the related update from aboutToUpdate ?

    What is the best way to cancel the related update from DescriptorEventAdapter.aboutToUpdate ?
    Anyway to manipulate descriptorEvent.getQuery() so that it doesn't generate anything?
    In our specific case, TopLink 11 - EclipseLink 2.0.2 generates useless update, so we want to silence them to avoid DB round trip.

    Mustafa,
    Thats the way to kill the Job, But We are not Authorized for SM50.
    At present we will raise a request to the Basis to do that. Speaking from user point of view is there any better way to handle it.
    Tony

  • Iphone 4s coming friday, what is the best way to get the notes content from iphone 4 to 4s without doing a restore? i want the new phone to be totally new but not sure how to get notes content across.

    What is the best way to get the notes content from iphone 4 to 4s without doing a restore? i want the new phone to be totally new but not sure how to get notes content across. If I do a restore as I have when previously from one iphone to another it has shown (in settings, usage) the cumulative usage from previous phones so all the hours of calls on all previous iphones will be displayed even though its brand new. Anyone know how I can get my notes (from standard iphone notes app) to my new iphone 4s without restoring from previous iphone 4. Thanks for any help offered.

    First, if you haven't updated to iTunes 10.5, please update now as you will need it for the iPhone 4S and iOS 5.
    Once you're done installing iTunes 10.5, open it. Connect your iPhone to iTunes using the USB cable. Once your iPhone pops up right click on it. For example: an iPhone will appear and it will say "Ryan's iPhone."
    Right click on it and select "Backup" from the dropdown menu. It will start backing up. This should backup your notes.
    Please tell me if you have any problems with backing up.
    Once you backup and get your iPhone 4S, you must follow these steps. If you don't follow these steps, you will not be able to get your notes on your new iPhone 4S.
    Open up iTunes again then right click on your device (iPhone 4S). Once you do you will see a dropdown menu. It will say "Restore from Backup..." Select this and it'll ask for a backup, select it from the dropdown menu. For example "Ryan's iPhone - October 12, 2011." Pick that and it will restore to your backup. Do this when you get your iPhone 4S so you will not lose anything. Even though you're restoring, you're getting back, since you're getting the previous settings, notes, contacts, mail and other settings from your old iPhone. You'll still have Siri though! So, restore when you first get it. Also frequently backup your device, as it will be worth it. You can restore from a backup if something goes wrong or save your data for a future update.
    Once you do that, you should have your notes on your new iPhone 4S and iOS 5.
    Please tell me if you need any help.
    I hoped I answered your questions and solved your problem!

  • Best way to upgrade the local repository from 11.7.3 to 12.2.3.3 DS 3

    Hi, we are going to upgrade our DI 11.7.3 to DS3 - 12.2.3.3 in Sep. I found out there are different ways to upgrade the local repository from the SAP doc and tech support. I try to find a best and safe way to do it. If anyone had experince and inputs on this. It would be great appreciated. It seems there are these options:
    we all agree that need to back up the repostiry db, and export the repository to atl file.
    Option 1:
    Upgrade the repository during the Data Services installation. But the tech support said there are times where this does not work as expected and Option 2 below needs to be implemented.
    Option 2:
    a) Export the local repository, via 11.7.3 Designer, to an ATL file.
    b) Uninstall 11.7.3.
    c) Create a new database in SQL Server to use with 12.2.3.3. (Optionally, use the existing 11.7.3 database. If you do, make a backup of it before making any changes).
    d) Install Data Services 12.2.3.3 and reference the database created in step "c" above during installation (select the Create option).
    e) Log in to the new local repo, via 12.2.3.3 Designer, and import the ATL that was exported in step "a" above.
    Option 3:
    a. Create a new database u2013 20 MB space
    b.Create a new repo in 11.7.3 point to ds_local via Repository Manager (click create)
    c.Log in 11.7 designer and Repository import from out.atl
    d.Install 12.2.3.3 without upgrde the repostory
    e.use epository manager in 12.2.3 to upgrade the new repository

    Hi.
    If you import the 11.7 atl into a 12.2 Designer you will face a warning message like this:
    "The version 11.7 of the ATL file <c:\export.atl> is lower than the repository version <12.2>.
    To update an ATL file, import it into a repository of the same version then ugrade that repository"
    So, the correct method to upgrade the Data Integrator 11.7 repository to Data Services 12.2.x is the following:
    - Export the complete Data Integrator 11.7 repository to ATL.
    - Create a NEW Data Integrator 11.7 Local Repository.
    - Import the ATL created in step 1 to the NEW Data Integrator 11.7 Repository. At this point you have two identical local repositories.
    - From the Data Services 12.2.x system, open Repository Manager.
    - Enter the Database connection information to the NEW repository created in step 2.
    - Select UPGRADE, to upgrade this repository to support Data Services 12.2.x.
    - Log into Data Services Designer to start using this Local Repository.
    Regards,
    Leo.

  • What is the best way to load and convert data from a flat file?

    Hi,
    I want to load data from a flat file, convert dates, numbers and some fields with custom logic (e.g. 0,1 into N,Y) to the correct format.
    The rows where all to_number, to_date and custom conversions succeed should go into table STG_OK. If some conversion fails (due to an illegal format in the flat file), those rows (where the conversion raises some exception) should go into table STG_ERR.
    What is the best and easiest way to archive this?
    Thanks,
    Carsten.

    Hi,
    thanks for your answers so far!
    I gave them a thought and came up with two different alternatives:
    Alternative 1
    I load the data from the flat file into a staging table using sqlldr. I convert the data to the target format using sqlldr expressions.
    The columns of the staging table have the target format (date, number).
    The rows that cannot be loaded go into a bad file. I manually load the data from the bad file (without any conversion) into the error table.
    Alternative 2
    The columns of the staging table are all of type varchar2 regardless of the target format.
    I define data rules for all columns that require a later conversion.
    I load the data from the flat file into the staging table using external table or sqlldr without any data conversion.
    The rows that cannot be loaded go automatically into the error table.
    When I read the data from the staging table, I can safely convert it since it is already checked by the rules.
    What I dislike in alternative 1 is that I manually have to create a second file and a second mapping (ok, I can automate this using OMB*Plus).
    Further, I would prefer using expressions in the mapping for converting the data.
    What I dislike in alternative 2 is that I have to create a data rule and a conversion expression and then keep the data rule and the conversion expression in sync (in case of changes of the file format).
    I also would prefer to have the data in the staging table in the target format. Well, I might load it into a second staging table with columns having the target format. But that's another mapping and a lot of i/o.
    As far as I know I need the data quality option for using data rules, is that true?
    Is there another alternative without any of these drawbacks?
    Otherwise I think I will go for alternative 1.
    Thanks,
    Carsten.

  • Best way to clean the Retina screen from smudges?

    The new retina screen is wonderful, but I got finger prints on the sides and top, just from opening and closing it. It happens even when I'm finicky. Any trick to that? But more importantly: what's the best way to clean it again. Thanks for any info!

    Courcoul wrote:
    The easiest way is to buy a hi-voltage cattle prod and use it liberally on any SOB who dares put their paws on your fancy screen......
    Note to self - never touch Courcoul's Macbook screen and  windshield of his Count Dracula 3 Series.  To avoid high voltage prodding.

  • Best way to remove the color blue from this?

    Trying RGB Curves and Three-Way Color Corrector, but I can't seem to remove the color blue from the cutting tool in the screenshot.
    In photoshop, I could use hue / saturation and adjust only the blues, is that an option in Premiere?

    I've had good luck with Change Color in Premiere Pro, as mention above:
    Go to the Effects Pane > Video Effects > Color Correction > Change Color and apply the Change Color effect to your clip.
    Use the eyedropper to select the color in the shot you want to modify, using Tolerance and Softness to help select the color.
    Then modify the color using the transform settings.
    MtD

  • Best Way to protect the SOA Suite from Malware

    Please forgive my ignorance on this ubject but I have had a question raised from a colleague who has asked how we are going to protect our systems against malware? The type we are thinking about are SOAP attachments? We are currenlty looking to secure our SOA Services using a OWSM gateway with signed digital certificate verification. We will also have the obvious firewall security but how can I satisfy this question?
    Regards

    Good question!! In today's world you cann't be sure about anything but security experts advice to use secure communication (like HTTPS) till your gateway. Gateway (may be a switch) should have two way SSL-authentication (client and server authentication,both) turned on. It will ensure that only truted connections can enter your network.
    Additionally, you can have Digital Signing to make sure the non-repudiation and integrity of data(as sign has the message digest as well). For highest level of security you can have encryption as well. For all these processes you will require only two certificates -
    1. Server certificate -- identity of your server (switch), will be used in Server Authentication
    2. Client certificate -- For signing and encryption and for client authentication
    Hope it helps.
    Regards,
    Anuj

  • What is the best way to include an xml file in JSP?

    I have a jsp page that I need to include an xml file. The xml file
              uses an xsl to render the file. What is the best way to include the
              xml file and still maintain the structure of the style sheet?
              Thanks
              Jennifer
              

              The best way is using the tag lib. If you cannot, but you can use JAXP, you can
              try
              javax.xml.transform.Transformer.transform(Source xmlSource,
              Result outputTarget)
              throws TransformerException
              You construct the transformer with you xsl, use you xml file or DOM to form xmlSource,
              and use JSPWriter "out" to form outputTarget (StreamResult). But if your JSP page
              generates the xml itself, tag lib is the only way.
              [email protected] (Jennifer) wrote:
              >[email protected] (Jennifer) wrote in message news:<[email protected]>...
              >> I have a jsp page that I need to include an xml file. The xml file
              >> uses an xsl to render the file. What is the best way to include the
              >> xml file and still maintain the structure of the style sheet?
              >>
              >> Thanks
              >>
              >> Jennifer
              >
              >Or is there a way to parse the xml file with the jsp page to display
              >the information. I cannot use the Java Standard Tag Libraries as the
              >version of iplanet we are running does not support the JSTL
              >
              >Thanks
              >
              >Jennifer
              

  • Error while generating an XML Document from XML Schema with JAXB

    Hi,
    I am following this OTN tutorial to generate the XML document from Java classes got from the XSD document.
    http://www.oracle.com/technology/pub/notes/technote_jaxb.html
    I am able to generate all the Java classes but getting error on compiling the XMLConstructor.java class which is use for generating the XML document :
    I am using JDK 1.5 and
    Oracle 10g XML Developer's Kit (XDK) Production for Java. xdk_nt_10_1_0_2_0_production
    (though these are warnings I am not able to run it.)
    Error
    C:\Prototype\classes\jaxbderived\catalog>javac -Xlint XMLConstructor.java
    warning: [path] bad path element "%CLASSPATH%": no such file or directory
    XMLConstructor.java:42: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
    journalList.add(journal);
    ^
    XMLConstructor.java:46: warning: [unchecked] unchecked call to add(E) as a membe
    r of the raw type java.util.List
    articleList.add(article);
    Thanks
    Sanjeev ([email protected])

    Use JDK 1.4.

  • Best way to get and pass filename from a DB Table to SQL Loader?

    What is the best way to get the data filename from an Oracle Table to pass it to SQL Loader?

    I am looking for a sompler way.
    I only want to instruct SQL Loader/Control file to get the filename from a table. Do we need external tables for this? Can I pass a funciton/SQL as parameter to filename?
    Thanks

  • What is the best way to raise the volume in a movie that is a mp4.

    Hey thanks in advance. What is the best way to drastically improve sound quality from a mp4 file. Thanks in advance!!!

    To all but one device add a unique email address to Settings>FaceTime>You can be reached at and delete the common Apple ID email address. For more info see:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • How do I get the java code from a class file ?

    I want to know how to findout the java code from a .class file . Is there any utility or any way to get the java code from a .class file. If so , please let me know the step by step procedure .
    Thanks
    Shiva

    Check out Mocha (http://www.brouhaha.com/~eric/computers/mocha.html)
    It's free!

  • What is the best way to create a database schema from XML

    What is the best way to create a database schema from XML?
    i have  a complex XML file that I want to create a database from and consistently import new XML files of the same schema type. Currently I have started off by mapping the XSD into Excel and using Mysql for Excel to push into MySQL.
    There must be a more .net microsoft solution for this but I cannot locate the topic and tools by searching. What are the best tools and way to manage this?
    Taking my C# further

    Hi Saythj,
    When mentioning "a database schema from XML", do you mean the
    XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
    Create an XML Schema Collection basing on your complex XML, you can find
    many generating tools online to do that.
    Create a Table with the above created schema typed XML column as below.
    CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
    Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • I have a iMac Desktop and MacBook Pro laptop. I generate my work related files on both of these machines. What is the best way to keep the files in these machines synchronized?

    I have a iMac Desktop and MacBook Pro laptop. I generate my work related files on both of these machines. After a few days or weeks, I have new files on some folders on either of the machines that is not on the other machine. What is the best way to keep the files in these machines synchronized?

    How did you transfer the files to the iMac.  If you exported the files out of the MB library using Kind = Current you should get the edited version.  Any other  option may not.
    If you want to keep the two libraries "synced"  any photos you want to move to the iMac should be added to an album, connect the two Mac with a LAN, Target Disk Mode,  Transferring files between two computers using FireWire, with WiFi. and use the paid version of  iPhoto Library Manager to copy that album from the MB library to iMac library.  It will also copy the original and edited versions, keywords, titles, etc.
    OT

Maybe you are looking for

  • Error calling report FRM-41213 unable to connect to Report Server

    Hi, I have installed Oracle Database 10g R2 and Oracle Developer 10gR2. I installed it in both Windows 2000 SP4 and Windows XP SP2. I would like to call a Report using a button inside Oracle Form. I create my own Report Server, using : rwserver serve

  • Text Area in Web Dynpro

    Hello, I would like to use a <b>text area</b> in Web Dynpro for Java. The content of this text area shall be transferred to the ERP backend system using an own RFC function module. In the backend the text information (text format & text line) shall b

  • Crm OnDemand error -- org.apache.axis2.AxisFault: Client

    Hi, I am having some problem with the Administrative Services Web service of crm Ondemand . I want to Read the CustomRecordTypes from my crm instance through the web services. I have downloaded the WSDL for that from the crm sites Administrative Serv

  • Another NoClassDefFoundError Query

    Sorry - I know that this is similar to previous queries, but I couldn't find the answer in the previous posts. I have a very simple executable jar file, which includes in one of the classes a reference to the java.util.logger.Logger class. For some r

  • Album Covers also transferred to Pla

    I observed that some of the music I export to my device through URGE includes the album covers and this is taking up too much space on my player, is there some way that I can export the music without exporting the album cover Is there a way to delete