How to preserve old dtd when using writetofile method

Hi,
I have one doubt.How to preserve the dtd of xmlfile before parsing it with the xml parser for pl/sql ,write this saved dtd to the document object and use to writofile method of the dom object.If this is possible then can anyone ,please give me suggestions.
I illustrate the situation ,given below is the dtd of the file before parsing :-
<!DOCTYPE family [
<!ELEMENT family (member*)>
<!ATTLIST family lastname CDATA #REQUIRED>
<!ELEMENT member (#PCDATA)>
<!ATTLIST member memberid ID #REQUIRED>
<!ATTLIST member dad IDREF #IMPLIED>
<!ATTLIST member mom IDREF #IMPLIED>
]>
After parsing and using the writetofile method ,the dtd present below is the changed dtd of the new xml file.
<!DOCTYPE family [
<!ELEMENT member ANY>
<!ATTLIST member memberid ID >
]>
Can anyone say how to stop this.Any help would be great
Regards
gopal

Hi, Kiran,
As the others have said, the only way ^1^ to get the result set in any particular order is to use an ORDER BY clause.
Here's the general way to do that in SQL in case of a UNION:
WITH  union_results     AS
     select 'a' AS txt, 1 AS sort_key from DUAL
    union
     select 'd',        2             from DUAL
    union
     select 'b',        3           from DUAL
    union
     select 'c',        4           from dual
SELECT    txt
FROM       union_results
ORDER BY  sort_key
;In SQL, you can only ORDER BY expressions that arei n the SELECT clause, so to avoid displaying sort_key, the sub-query is necessary. A lot of people don't use pure SQL for this; they have their front end hide the sort_key column. In SQL*Plus, for example, you can say COLUMN sort_key NOPRINT.
^1^ There is one exception, which does NOT apply to this case, or most others. CONNECT BY, even without ORDER BY, does impose a partial ordering.

Similar Messages

  • How to solve power error when using USB camera adapter in your camera

    Hello Everyone,
    First of all I wanna say reducing the output of the USB camera adapter from 100mA to 20mA just to save battery life is by far the most incredible adjustment in the history of @)#*$#%*($#!
    I know most of us bought the USB Camera adapter so we can use it as a USB adapter for the Camera (saves us from taking the memory card on and off the camera) but sadly the "Ginues Apple" reduced it to 20mA which decreases the range of cameras and flash drives that will work with it. I use Gopro Hero 3+ black and everytime I plug it with the adapter to my ipad I keep on seeing this @#@$#@ power error. I didn't want to waste the expensive adapter so I tried to look for a micro sd card reader but I don't think 20mA readers still exist.
    Now to solve this problem is very simple add a power source to help that 20mA up, most of the my friends bought a powered port hub but it's not my type because it's bulky, needs an outlet and not portable.
    So I found a better solution on how you can add a power source and still be portable, the answer is power bank or portable charger.
    Things you need:
    Camera
    USB camera adapter (Ginues Apple product)
    Power bank (I'm using 8,400 mAh)
    Dual USB Male to 5 Pin Mini USB Y Cable
    Ipad
    Procedure:
    Camera --- 5 Pin Mini USB ------------------ USB camera adapter ---------- Ipad
                                                   '---------- Power Bank
    Attach you camera to the 5 pin mini usb then the USB1 male to the female apple's USB camera adapter then to the Ipad. = this will show the power error.
    Then attach the USB2 to the power bank/portable charger to power it up.
    your welcome

    yocto yotta wrote: How to charge iPad Air when using the camera connection kit?
    No can do, Skippy!

  • How to hide system tables when using the Oracle SQL Developer?

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
    Can anyone explain to me how to do these things?
    Thanks,

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
    How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
    I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
    Kuljeet

  • Ques;How  do you secure imail when used being used in iweb. People can mess

    How do you secure imail when used being used in iweb? People can mess w/my settings in iweb imail window.

    What is iMail?
    And what is an iWeb iMail window?
    iWeb is part of iLife 06 which is an application used to create websites hosted on .Mac.
    Are you referring to Apple's Mail application and webmail access using a browser such as Safari to access your .Mac account?
    Which people can mess with what settings? You shouldn't allow anyone else to access your Mac when logged in to your account and home folder/directory. OS X was designed for multiple users of the same Mac with each regular user having their own computer login account (with or without admin privileges) and associated home folder/directory to store and access their data and settings for their login account only.

  • Does anyone know how to load ACR presets when using ACR in the creative cloud?

    Does anyone know how to load ACR presets when using ACR in the creative cloud?

    Moving the discussion to Adobe Camera Raw forum.
    Thanks,
    Atul Saini

  • How to handle type safety when using com.sap.typeservices.IProposalList

    Hi,
    I have been testing out the new features in Web Dynpro Java CE EHP1 using a scenario with BPM and SAP MDM. One of the new features I tested is the Ajax feature of using suggestion values. I have an InputField UI element which have bound to a context attribute (CountriesView/Country) which is of type string. The UI element has the "suggestValues" value set to true. I then use the IProposalList to produce a valueset. This will make the InputField UI appear as a combo box and allow the users to type in a few characters and utilize the Ajax framework to automatically search in the list of values.
    The following code works perfectly ok but I don't understand how I should handle the compiler warning "IProposalList is a raw type. References to generic type IProposalList<T> should be parameterized"?
    IProposalList proposalsCountry = wdContext.nodeCountriesView().getNodeInfo().getAttribute(IPrivateComp1.ICountriesViewElement.COUNTRY).getModifiableSimpleType().getSVServices().getProposals();
    for(int i=0;i<bua.length;i++){
        IPrivateComp1.ICountriesViewElement buaelement=wdContext.createCountriesViewElement();
        buaelement.setCountry(bua<i>[0]);
        buaelement.setCode(bua<i>[1]);
        bualist.add(buaelement);
        proposalsCountry.add(bua<i>[0]);
    wdContext.nodeCountriesView().bind(bualist);
    I don't have any issues handling this for other types such as ArrayList. Using the syntax "IProposalList<String> proposalsCountry ...." will handle the "proposalsCountry.add .." part but I still have a warning "Type safety: The expression of type IProposalList needs unchecked conversion to conform to IProposalList<String>"
    Any ideas on how to handle this?
    Thanks,
    Johan

    Hi,
    Eventhough there are no replies to this thread I thought I should update with what I belive is an answer to my question. Excerpt from http://stackoverflow.com/questions/382/what-is-the-meaning-of-the-type-safety-warning-in-certain-java-generics-casts:
    "This warning is there because Java is not actually storing type information at runtime in an object that uses generics. Thus, if 'object' is actually a List<String>, there will be no ClassCastException at runtime except until an item is accessed from the list that doesn't match the generic type defined in the variable. This can cause further complications if items are added to the list with this incorrect generic type information. Any code still holding a reference to the list but with the correct generic type information will now have an inconsistent list. To remove the warning, try:
    List<?> list = (List<?>) object;However, note that you will not be able to use certain methods such as add because the compiler doesn't know if you are trying to add an object of incorrect type. The above will work in a lot of situations, but if you have to use add or some similarly restricted method, you will just have to suffer the yellow underline in Eclipse (or a SuppressWarning annotation)."
    The last line explain the reason for my issue and the lack of a solution when using add method.
    /Johan

  • How to avoid data repetation when using select statements with innerjoin

    how to avoid data repetation when using select statements with innerjoin.
    thanks in advance,
    satheesh

    you can use a query like this...
      SELECT DISTINCT
             frg~prc_group1                  "Product Group 1
             frg~prc_group2                  "Product Group 2
             frg~prc_group3                  "Product Group 3
             frg~prc_group4                  "Product Group 4
             frg~prc_group5                  "Product Group 5
             prc~product_id                  "Product ID
             txt~short_text                  "Product Description
    UP TO 10 ROWS
    INTO TABLE l_i_data
    FROM
    Joining CRMM_PR_SALESG and
    COMM_PR_FRG_ROD
    crmm_pr_salesg AS frg
    INNER JOIN comm_pr_frg_rod AS prd
    ON frgfrg_guid = prdfragment_guid
    Joining COMM_PRODUCT and
    COMM_PR_FRG_ROD
    INNER JOIN comm_product AS prc
    ON prdproduct_guid = prcproduct_guid
    Joining COMM_PRSHTEXT and
    COMM_PR_FRG_ROD
    INNER JOIN comm_prshtext AS txt
    ON prdproduct_guid = txtproduct_guid
    WHERE frg~prc_group1 IN r_zprc_group1
       AND frg~prc_group2 IN r_zprc_group2
       AND frg~prc_group3 IN r_zprc_group3
       AND frg~prc_group4 IN r_zprc_group4
       AND frg~prc_group5 IN r_zprc_group5.
    reward it it helps
    Edited by: Apan Kumar Motilal on Jun 24, 2008 1:57 PM

  • How to sync/edit audio when using frame freeze or time remapping?

    how to sync/edit audio when using frame freeze or time remapping? in premiere pro cs6

    You need to give more information about what you want to happen to the audio when you freeze or time remap the associated video.
    Is it synch video?
    Is it music?
    Is it Voice?
    Generally .. you have to cut and design the audio around the video effect.

  • How do I lock safesearch when using BING

    how do I lock safesearch when using BING search engine

    I assume you're using the "Content Aware" option for the Spot Healing brush.  It can be a maddeningly stupid option -- there's no telling from how far away it will pull the replacement pixels and will leave streaks that can be very difficult to remove.
    It would be best for you to include a sample image that's giving you the problem so we can suggest the best way to attack it.
    In general, the "Content Aware" option works best when you use a very small brush size.  That pulls in pixels closer to the area you want to heal.  If you get streaks, sometimes you can use the Spot Healing brush to get rid of them by going over the area in a perpendicular direction to the streaks.
    Ken

  • Crash when using Invoke Method: Library:Deploy Library

    I'm trying to set a library of shared variables to deploy when a VI runs. When using the method to deploy a library, Labview will crash with no error log. I am able to use Library.Open to, for example, HiliteInProjectWindow, and Library.GetFileLVVsersion (8.6). But for the life of me I cannot get deploy to work. Any ideas?

    hbcnb,
    I'm not quite sure why that is happening, but I
    can give you a work around for it.  There is a property node that
    returns the mode that LabVIEW is running in (Run-Time, Development,
    Evaluation).  If you output this value to a case structure, you can
    include your deploy code in the run-time version but not in your
    development version so that it will cease to crash.  Place down the
    property node, then select  Application » Kind.  I've included a
    picture of how to wire this up. Let me know if this helps work around
    the problem a bit easier.  
    Sincerely,
    Chris G in AE
    Attachments:
    application_pic.jpg ‏27 KB

  • Error when using findbykey method

    hi am having this error when using below method cannot assign of type sms1405.common.agrROW TO variable of type oracle.jbo.row[]. type 'oracle.jbo.row[]' excepected but 'sms1405.common.agRROW' found the error is in this line agrRows = (AGRRow)agrRows[0]; the methos is
    am using this sample
    http://amulyamishras-tech-blog.blogspot.com/2011/01/viewobject-getrow-vs-findbykey.html
    where does EmpVORow in EmpVORow empRow =
    (EmpVORow)EmpVO.getRow(key); define from above sample
    where does EmpVO from EmpVORow empRow =
    (EmpVORow)EmpVO.getRow(key); define from above sample
    am in Jdeveloper 11.1.2.1.0
    Edited by: Tshifhiwa on 2012/07/03 4:36 PM

    Man, you should be able to find this out your self by now!
    Hint: there is one 's' too much in the line you get the error (i guess cut & past error)
    Try to understand the code you copied!
    Timo

  • [svn:fx-trunk] 10891: Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants

    Revision: 10891
    Author:   [email protected]
    Date:     2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
    QE notes: None.
    Doc notes: None
    Bugs: SDK-22676
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22676
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Have you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?

  • Using Illustrator CS6, how to preserve drawn colors when Save For Web to PNG?

    Using Illustrator CS6 on Mac OSX 10.9.1:
    step 1. I open a new file for Web profile.
    step 2. I verify that File > Document Color Mode is RGB.
    step 3. I draw a square and set it's color to 0,103,197 (decimal).
    step 4. I click File > Save For Web
    step 5. In the popup that opens, I set to PNG-24, and verify the option Convert To sRGB is not selected.
    step 6. Using the Mac's DigitalColorMeter, I observe the color is 0,109,191 in the Save For Web popup. If I save it, then open the saved PNG file, it's color is also 0,109,191.
    How to do this so the colors don't change?
    step 7. I close Save For Web popup.
    step 8. I verify Edit > Color Settings for Working Spaces is set to Monitor RGB, and that the Color Management Policies for RGB is off.
    step 9. I verify Edit > Assign Profile is set to Don't Color Manage This Document.
    step 10. I verify View > Proof Colors is off.
    Can anyone provide a set of Illustrator CS6 settings that let me save a PNG image with the same colors it's drawn in so I can use that PNG image in a website?
    I must be missing something obvious, because anyone working in web design must do this day in and day out, please let me know what procedure people follow to achieve this.
    UPDATE:
    Using the above procedure DOES preserve the colors when embedding the PNG image in a webpage viewed in Firefox and Chome, but NOT for Safari. Also, the colors are not preserved in Mac's Preview software, as well as Microsoft Office 2011 for Mac.
    I'm pretty new to all this. Hoping someone can provide some perspective on what typical procedure people use for web development when working with colors in Illustrator CS6.

    Using Illustrator CS6 on Mac OSX 10.9.1:
    step 1. I open a new file for Web profile.
    step 2. I verify that File > Document Color Mode is RGB.
    step 3. I draw a square and set it's color to 0,103,197 (decimal).
    step 4. I click File > Save For Web
    step 5. In the popup that opens, I set to PNG-24, and verify the option Convert To sRGB is not selected.
    step 6. Using the Mac's DigitalColorMeter, I observe the color is 0,109,191 in the Save For Web popup. If I save it, then open the saved PNG file, it's color is also 0,109,191.
    How to do this so the colors don't change?
    step 7. I close Save For Web popup.
    step 8. I verify Edit > Color Settings for Working Spaces is set to Monitor RGB, and that the Color Management Policies for RGB is off.
    step 9. I verify Edit > Assign Profile is set to Don't Color Manage This Document.
    step 10. I verify View > Proof Colors is off.
    Can anyone provide a set of Illustrator CS6 settings that let me save a PNG image with the same colors it's drawn in so I can use that PNG image in a website?
    I must be missing something obvious, because anyone working in web design must do this day in and day out, please let me know what procedure people follow to achieve this.
    UPDATE:
    Using the above procedure DOES preserve the colors when embedding the PNG image in a webpage viewed in Firefox and Chome, but NOT for Safari. Also, the colors are not preserved in Mac's Preview software, as well as Microsoft Office 2011 for Mac.
    I'm pretty new to all this. Hoping someone can provide some perspective on what typical procedure people use for web development when working with colors in Illustrator CS6.

  • Power Manager Setting To Preserve Battery Life When Using A Docking Station

    I have a Lenovo Thinkpad X220 which is about 19 months old.  When at work, the computer is in a Lenovo docking station.  At the end of the day, it is removed and any further evening use is typically on the battery.
    Yesterday, the battery symbol in the tray at the bottom of the screen displayed a red X on it and indicated that there was an "error".  I presume from this that that battery is dead and needs to be replaced.  I am surprised by the comparatively short life of this battery.
    I was thinking that perhaps the use of the powered docking station played some role in shortening the battery's life.  For example, it may have repeatedly overcharged the battery.
    Is there a Power Manager setting that will reduce the likelihood that the battery is being overcharged while in the docking station?  In the future, is it feasible to simply remove the battery before inserting it into the docking station so that this won't continue to occur?
    Thank you.
    (I did a search of the community's knowledgebase, but didn't find anything on point.)

    Hi,
    Welcome to Lenovo Community Forums!
    I’m sorry to hear that battery of your Lenovo ThinkPad X220 had undergone wear and tear and has to be replaced.
    Capacity of a battery declines as the battery ages, with the number of charge cycles and time at high temperature. Under average usage patterns your battery maintains approximately 70% of its power capacity after the first year of operation.
    Most laptops today use lithium Ion (Li-ion) batteries. Overcharging Li-ion batteries is not a problem and does not affect the battery life span. These batteries have an internal circuit to stop the charging process at full charge. This is why the Li-ion batteries are more expensive. The only way for the Li-ion battery to overcharge is if the charging system malfunctions, and then the battery will heat up while in the charger. Older laptops use Nickel-cadmium (Ni-Cd) and Nickel Metal Hydride (Ni-MH) batteries. They require more maintenance than Lithium Ion batteries. They must be fully discharged and then fully recharged so that they don't lose battery life.
    Refer this document to see the tips on how to increase the battery life.
    Hope this provided enough clarity for your query!
    Best regards,
    Mithun.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How to invalidate old sessions when new user access appl  on same machine

    hi all,
    I am using Mozilla browser to access my web application.User one access my application using his credentials .but i left that browser open.after that I am opening the another Mozilla window and accessing my application using different credentials ex:user2 credentials .user 2 also can access my application.but when i open the first browser ..am automatically getting second user session.how can we avoid this problem.
    Application is using session identifier(jSessionID) as the URL parameter for session management.
    is it possible to invalidate the old session when new user access on same machine.
    thanks,
    Vishnu

    VishnuReddy wrote:
    hi all,
    I am using Mozilla browser to access my web application.User one access my application using his credentials .but i left that browser open.after that I am opening the another Mozilla window and accessing my application using different credentials ex:user2 credentials .user 2 also can access my application.but when i open the first browser ..am automatically getting second user session.how can we avoid this problem.That shouldn't occur. Either you explained it the wrong way (or I interpreted it the wrong way), or there's huge bug in your login/logout logic. After opening another window inside the same session, you should still be logged in as the first user.

Maybe you are looking for

  • IPOD Touch won't turn on

    I just ran into this issue and the fix is relatively simple.  I took my Touch back to the Apple Store, they plugged it into a wall outlet and explained the USB cord as well as the car charger doen't have enough power to charge a dead touch. m I went

  • Time machine multiple internal hard drives to multiple external hard drives

    I have four internal hard drives that I back up to four separate dedicated external hard drives. I have upgraded to leopard and would like to use TIME MACHINE but I don't see how I can set up this unique back up system. Up until now I have been using

  • Download Error with Adobe Application Manager

    Recently purchased Creative Cloud hoever when trying to download keep getting the following error message: I have also tried to install Adobe Download Assistant however receive the same message.  Your urgent assistance with this issue is appreciate a

  • Web ADI issue after Hardware Change

    Hi, We are encountering an issue when uploading the template in Linux OS. The same template works in Solaris instance. Can you please help. The error on the excel template is "ORA-00976: Specified pseudocolumn or operator not allowed here." 9/22/10 5

  • Could not find the ColdFusion component or interface

    I don't know what else to try.  I have created a fully functional ORM CRUD application that is working perfectly when I have the mapping cfc located in the root folder with the index.cfm file that is using it.  However, as soon as I move the mapping