XML element,if not including any attributes and/or child elements then

XML element in SQLX,if not including any attributes and/or child elements then the tag should not appear, how to achive this?
ex:Consider for <enumeration> tag where it is having some value.
<attribute>
<name>Ethernet Access</name>
<enumeration>
<StringValue>Bandwidth</StringValue>
</enumeration>
</attribute>
When <enumeration> tag is not have any Value in this, then output should be as follows.
<attribute>
<name>Ethernet Access</name>
</attribute>
But what i am getting is
<attribute>
<name>Ethernet Access</name>
</enumeration>
</attribute>
Please suggest me the solution for this.
I tried , but when xmlelement() is not having data it will display empty tag ie </enumeration>, If xmlforest() are null it wont show tag, But i have to use xmlelement only. how can that be achived using xmlelement .

Use a SQL case - when - else end construct to only execute the xmlelement if data is present. The SQL/XML standard is very clear, xmlElement will generate an empty element if no data is present. xmlforest will not.

Similar Messages

  • Elements 10 backup from XP - restore to W7 - restore does not include any duplicated pics

    Hi,  hope someone can help?
    I am a new user to Elements10 and originally installed it onto an XP desktop.    I have since upgraded the desktop to Windows7 and want to transfer my images and elements catalog.  I have performed a full backup of my catalog from the XP os, via the backup process in Elements (which says successful) and performed a restore onto the W7 desktop retaining the original folder structure (also via Elements).  
    Despite doing this several times, I always get error messages saying the restore cannot restore a selection of .xml files, but if I continue with the backup it finally says "successful".
    However when I compare the number of restored images, with the originals, it appears I am over 700 files short!       A bit of investigation indicates that the restore is not restoring any duplicate images (those with identical file names but in different folders), but only restores one copy of the image.    I can't check all 700 files individually, but can someone confirm if this expected behaviour, so that I can stop worrying that I have lost 700+ images?
    Thanks
    Steve

    stevew218 a écrit:
    Ah... as per my 1st post, I am a new user to Elements.    Apologies,  I have been approaching this from the wrong direction!   I have checked back on my original XP disk and Elements catalog, and it appears that when I set up the original catalog against my existing pics it did not include any duplicate files, therefore the Backup\Restore is correct, it is the original cataloging of my pictures that did not work as expected.     Do I have to do anything specific to get the catalog to include duplicate file names?
    Sorry for the misdirection
    Steve
    Steve,
    The basic rule of database management is to forbid duplicates.
    In the case of the Organizer, that would mean changing one of the two above criteria (date daken or file size in kB). That would be possible outside of the Organizer by using external tools, but the problem is that you don't know which files are concerned...
    Now that you have restored your catalog in your new catalog, a theoretical solution would be to get back to the old catalog, and use the organizer to delete all the files in the catalog. The remaining ones would be the duplicates. Creating a new empy catalog and importing the remaining files would recover all duplicates. You could then restore on the new PC.
    There are still two problems:
    - You can't delete a big number of files at the same time? You'd have to delete by small batches
    - You'll have all your duplicates in your new PC, but you still won't be able to include them in the main catalog even you have now a special catalog with only the duplicates.
    So, the final question may be : why do you want to keep duplicates? You can examine the duplicates catalog and see if they are really necessary. Maybe you can live with two different catalogs.

  • [svn:bz-3.x] 20638: Update services-config.mods.validators. xml to not include any of the BlazeDS/LCDS classes in the allow list.

    Revision: 20638
    Revision: 20638
    Author:   [email protected]
    Date:     2011-03-07 07:25:25 -0800 (Mon, 07 Mar 2011)
    Log Message:
    Update services-config.mods.validators.xml to not include any of the BlazeDS/LCDS classes in the allow list. These should now be allowed by default by the class deserialization validator.
    Modified Paths:
        blazeds/branches/3.x/qa/apps/qa-regress/WEB-INF/flex/services-config.mods.validators.xml

    Revision: 20638
    Revision: 20638
    Author:   [email protected]
    Date:     2011-03-07 07:25:25 -0800 (Mon, 07 Mar 2011)
    Log Message:
    Update services-config.mods.validators.xml to not include any of the BlazeDS/LCDS classes in the allow list. These should now be allowed by default by the class deserialization validator.
    Modified Paths:
        blazeds/branches/3.x/qa/apps/qa-regress/WEB-INF/flex/services-config.mods.validators.xml

  • Error in Backup - This plan dose not include any itmes to back up

    Apple re-installed my OS 10.3.9 on my G5, but now my iMac backup dose not work.
    For my backup plan
    This plan dose not include any items to back up!.
    The Back Up button is grayed out,
    How do I add items to the backup plan?
    I was backing up before the OS re-install

    Thanks. I hadn't seen that before and I'll have to look into it a little more. The one thing that has me wondering is the part where they state that the iPod touch is now supported "for iPod to computer transfers only". I would think that given the nature of the product there would have to be some way to transfer the data back to the iPod... I might have a look at the demo version after work here. I guess the obvious question is; have you used this with an iPod touch and had success?
    Edit: Just noticed this seems to be a Windows product only so it won't actually help me. Thanks though.
    Message was edited by: rael

  • ITunes 9.2 XML file does NOT contain any iBooks information

    I have a little script that I have that generates a webpage to list what is in my iTunes library. I noticed that the XML file does not contain ANY information about iBooks or PDFs that you import. Any idea why that is? If my main library file gets corrupt, and I have to use the XML file to rebuild, I would lose all the iBook information....
    Seems like a oversight by the iTunes people

    why did Apple even make an XML file in the first place as initially most things in iTunes (following your logic) would be purchases from the iTunes store.
    Incorrect. The existence and use of iTunes significantly predates the existence of the iTunes Store. iTunes was initially designed to get its content from CDs. The XML file was for use by other apps such as iMovie or third-party apps to have access to the iTunes library so as to be able to locate tracks and playlists for use in the app.
    Anyway, I'm not interested in arguing with you about the matter.
    Apple, plus put iBooks stuff in the XML file!
    http://www.apple.com/feedback

  • My Photoshop Elements does not start any more. It gives response "Photoshop elements cannot start or continue because of missing file(s). Please reinstall." How do I get the installing file again (I bought it via internet the first time december 2013?)

    My Photoshop Elements does not start any more. It gives response "Photoshop elements cannot start or continue because of missing file(s). Please reinstall." How do I get the installing file again (I bought it from Adobe via internet the first time december 2013?)

    Did you download the Basic/Free version?
    I also thought the Trial period was as long as you needed!?
    What is your Warranty and Return Policy?
    You get to use VueScan for as long as you want before you buy it, so we recommend you test it before you buy it to make sure it meets your needs.
    All sales are final and there are no refunds.
    Isn't this a bit harsh? Naah I actually prefer to solve problems, and if I offer refunds, people give up too easily. If I can't solve your problem after you send a few Problem Reports (see above), I'm happy to give a refund.
    http://www.hamrick.com/sup.html#q

  • Please help... For some reason I can not import any photos on to my elements 10 organier.

    Please help... I can not import any photos on to my elements 10 organizer, it is saying files corrupt!!!!! What do I do?????  I have am using an apple, and i usually always get photos from iphoto but it is just not doing it. Please help!

    How are you trying to import the files? Are you using the import from iphoto command? What happens if you export the photos from iphoto to the desktop and use from files and folders? Does it work that way?

  • GA749 start date does not include any senders in FAGLGA35

    Hello Guru:
    I do FAGLGA31  for sender  =  account 1-99999 profit center 1  and receiver = profit center 2
    version = 1 .
    when run cycle execute message "GA749 start date does not include any senders"
    I check in table FAGLFLEXT , there is data in  Sender cost center and Profit center  according to my criteria.
    Please advise where to check up and thanks in advance

    HI,
    please check the following:
    The problem could be caused by the cycle header definition. Instead of
    '0' you have to enter '1' as a version. All actual data gets posted
    under version 001 in NewGL by system default, so if you specify the
    version other than '1', the sender value is not found when executing the
    cycle.
    Regards
    Madhu M

  • My daughters ipod 4th gen will no longer charge past 20% and will not connect to a pc in order to back everything up. the cable is working fine, otherwise it would not even charge to the 20%. i have tried the reset to not lose any data and no luck. help!

    my daughters ipod 4th gen will no longer charge past 20% and will not connect to a pc in order to back everything up. the cable is working fine, otherwise it would not even charge to the 20%. i have tried the reset to not lose any data and no luck, home+power for 10-15 seconds. I really would like to not lose everything she has, again, because I can't back it up this time. I have tried charging via a wall outlet and PC and both charge fine, just only to 20%. I am using the cable that came with it so no aftermarket issues there. Please help so I don't have to reset everything again.

    Because once it has charged enough to be powered on as soon as you turn it on it says battery is at 20% and will not charge anymore after that, it just runs for about 5-10 minutes before the battery dies again. The battery cycles discharge/recharge daily and its not on the charger at full charge for more than a couple hours and is never totally dead for more than a couple of hours.

  • HT5787 Hallo , i don't remember the answer to my security questions and my apple ID is my old Email address whice not active any more and i don't have access to it

    Hallo , i don't remember the answer to my security questions and my apple ID is my old Email address whice not active any more and i don't have access to it.
    During the last year i was using my Iphone under this APPLE ID :***** , but i forgot to change it on "FIND MY IPHONE"
    is there a solution for that??
    Kind regards
    yossi
    <Email Edited By Host>

    If you changed your Apple ID from the old email address (that is showing up) to a new one, but just forgot to update it on your iPhone, try these steps.
    1. Use your current Apple ID password
    Trying using your current Apple ID password. If that doesn't work, continue to the next step.
    2. Sign out and back in to iMessage or FaceTime
    If you are currently signed in to iMessage or FaceTime
    Sign out of iMessage or FaceTime:
    iMessage: Go to Settings > Messages > Send & Receive, tap your Apple ID, then tap Sign Out.
    FaceTime: Go to Settings > FaceTime, tap your Apple ID, then tap Sign Out.
    Sign back in to iMessage or FaceTime:
    iMessage: Go to Settings > Messages, then tap "Use your Apple ID for iMessage".
    FaceTime: Go to Settings > FaceTime, then tap "Use your Apple ID for FaceTime".
    You should now be able to sign out of iCloud. You will still see your previous Apple ID when signing out.
    If you are not signed in to iMessage or FaceTime
    Sign in to iMessage or FaceTime:
    iMessage: Go to Settings > Messages, then tap "Use your Apple ID for iMessage".
    FaceTime: Go to Settings > FaceTime, then tap "Use your Apple ID for FaceTime".
    You should now be able to sign out of iCloud. You will still see your previous Apple ID when signing out.
    3. Change your Apple ID temporarily
    If signing out and back in to iMessage or FaceTime didn't work, try these steps:
    Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
    Tap Settings > iCloud and try to sign out.
    Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
    Tap Settings > iCloud and sign in with the new Apple ID.

  • The canadien calendar does not include easter holidays and Québec St-Jean-Baptiste

    Why the canadien calendar does not include easter holidays and Québec St-Jean-Baptiste (june 24th) ?
    webcal://ical.mac.com/ical/Canadian32Holidays.ics
    Can Apple add them ?
    webcal://ical.mac.com/ical/Canadian32Holidays.icswebcal://ical.mac.com/ical/Canadian32Holidays.icswebcal://ical.mac.com/ical/Canadian32Holidays.ics

    Hello, David. I apologize for trying to reach you on this particular forum. You posted something about a Mail script for rebuilding all mailboxes quite some time ago (that message thread is now archived, so I couldn't respond in that more appropriate forum). Did you ever get a working script, and would you be so kind as to share it? You can reply to [email protected], to eliminate further out-of-context posts to this forum. Thanks!
    -Dr. G

  • I'm trying to use idvd '09 version 7.1.2 on a powerbook running lion 10.7.2, the system does not locate any themes and therefore will not boot up, any suggestions?

    i'm trying to use idvd '09 version 7.1.2 on a powerbook running lion 10.7.2, the system does not locate any themes and therefore will not boot up, any suggestions?

    Hi
    May be help here
    iDVD Themes
    iDVD 1 to 7.0.4
    Root level = Macintosh HD / Library / Application Support / iDVD / Themes
    or
    Macintosh HD / USERS / Your name or login identity / Library / Application Support / iDVD / Installed Themes
    iDVD 7.1 (from F Shippey )
    The iDVD 7 themes are part of the iDVD 7 application package.
    iDVD - ctrl-click Show content of package
    Resources / Plug-ins/ - and here they are
    See if You can restore them manually.
    Yours Bengt W

  • My new Iphone 6 is not recieving any calls and i can not access my voicemail. please help

    my new Iphone 6 is not recieving any calls and i can not access my voicemail. I already attempted the items on the the troubleshooting site.
    Currently at work, and can not make it to a Verizon store at this time. Was wondering if there was something i can do to my phone from my office at this time.

        vzw-tempname-1e9c6a9c-9da4-4a97-8eed-b73d6a88f5b3,
    I am sorry to hear you are having issues with your new iPhone. We want you to be able to enjoy your device. Are you having any issues with text or data on the device? Is the device showing signal bars? Have you been able to use th device at all since your received it?
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • My brother gave me his iphone and i activated it with my phone number but i can not receive any message and i notice that  on iMessage stills appears his phone number, what do i have to do?

    my brother gave me his iphone and i activated it with my phone number but i can not receive any message and i notice that  on iMessage stills appears his phone number, what do i have to do?

    Launch iTunes on your computer, plug the phone in & on the "Summary Pane", select "Restore". This will restore the phone to factory settings with all of your son's stuff gone. You can now use it as an iPod touch. To do this REQUIRES the deactivated sim card be still installed in the phone.

  • TS1424 I redeemed a $50 iTunes card two days ago, I have not made any purchases and now the credit has disappeared from my account? How do I get it back?

    I redeemed a $50 iTunes card two days ago, I have not made any purchases and now the credit has disappeared from my account? How do I get it back?

    CHANGE THEME'S, WORKED FOR ME

Maybe you are looking for