Using fn:nilled()

Hi,
I'm trying to get the "nil" status of some element in request, but I get false no matter what input was.
In xquery editor I tried some simple things, like
fn:nilled(<id xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>)
but it doesn't work either. I get false, when actually it had to be true.
Some basic things like
fn:not(fn:false())
are working fine, so that's not editor case I suppose.
What could be the problem?
Thanks in advance.
Edited by: frf on 3/11/2010 2:40
Edited by: frf on 3/11/2010 2:40

Hi,
What's your XQuery editor?
According to the specifications, fn:nilled works this way :
In practice, the function returns true only for an element node that has the attribute xsi:nil="true" and that is successfully validated against a schema that defines the element to be nillable;http://www.w3.org/TR/xpath-functions-11/#func-nilled
In short, you need a schema-aware XQuery processor.
Then you can do something like :
import schema default element namespace "" at "http://example.com/schema.xsd";
let $d := validate{ <id xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/> }
return fn:nilled($d)with schema.xsd :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="id" nillable="true" type="xs:string"/>
</xs:schema>

Similar Messages

  • UIImagePickerController Custom Overlay Black Screen issue while using Video trimming controller

    Hello Everyone ,
    I have problem while opening camera in recording mode using UIImagePicker Controller with custom overlay and it should open first time properly .But when i push to next view controller and return back again to open camera at that time camera displays black screen for few time.
    The Logic in the inside view controller is for VideoTrimming . For video trimming i have used "SAVideoRangeSlider" controll. SAVideoRange Silder perform task to get all thumbnail images from video which i have assign . It uses AVAsset  image generator class provided by apple to get image frames from videos and it runs in background using its handler method.
    Handler Method ::
    [self.imageGenerator generateCGImagesAsynchronouslyForTimes:times
                                                  completionHandler:^(CMTime requestedTime, CGImageRef image, CMTime actualTime,
                                                                      AVAssetImageGeneratorResult result, NSError *error) {
    I have nilling all the objects related to image generator class when i came back to Camera screen. still issues of black screen occur while opening camera.
    This issue occur in ios7 but not in ios6.
    Can anyone have any idea about this ...Please relply me ASAP.

    Hello Everyone ,
    I have problem while opening camera in recording mode using UIImagePicker Controller with custom overlay and it should open first time properly .But when i push to next view controller and return back again to open camera at that time camera displays black screen for few time.
    The Logic in the inside view controller is for VideoTrimming . For video trimming i have used "SAVideoRangeSlider" controll. SAVideoRange Silder perform task to get all thumbnail images from video which i have assign . It uses AVAsset  image generator class provided by apple to get image frames from videos and it runs in background using its handler method.
    Handler Method ::
    [self.imageGenerator generateCGImagesAsynchronouslyForTimes:times
                                                  completionHandler:^(CMTime requestedTime, CGImageRef image, CMTime actualTime,
                                                                      AVAssetImageGeneratorResult result, NSError *error) {
    I have nilling all the objects related to image generator class when i came back to Camera screen. still issues of black screen occur while opening camera.
    This issue occur in ios7 but not in ios6.
    Can anyone have any idea about this ...Please relply me ASAP.

  • Remove tags from XML using transformation

    Can anybody tell me how to remove empty tags using xsl transformation.
    <App_Data App="MOD" Name="Metadata_Id" Value="SP1282"/>
    <App_Data App="MOD" Name="Metadata_Spec_Major_Version" Value=""/>
    <App_Data App="MOD" Name="Metadata_Spec_Minor_Version" Value=""/>
    My XML will have tags similar to above. My requirement is to remove all tags having attribute Value="". How can i achieve this using transformation.
    Thanks
    Krish

    You need to add the xsi:nil="true" attribute to your xsl-construct to be able to ommit the xml-element which are empty.
    To be able to do this you need to add a choose-when-otherwise xsl construct inside your mapping file to test for ""-values.
    The xsi:nill='true' isn't supported in the transform-activity yet, you need to add this attribute manually inside your xsl-mapping file.
    Kind regards,
    Nathalie

  • Help oh Help - use of deployment ruleset.xml in IP corporate enviroment!

    Background.......
    Our technical company with country wide deployment of IP devices (using IP addresses) that were built and supplied with java as the contact interfaces. So we MUST use java to connect to these devices. To date 1.6.30 has been doing the job for me with minimal intervention/security messages, but now we have new devices that need 1.7 upwards that brings in the new security features. Too many devices to add to the "exceptions.list" file in my opinion (in here specific devices do not allow wildcards). They are all on our 10.0.0.0/8 corporate network.
    My attempts to overcome this so far........
    Reading all over the net I find this is the job of the DSR "Deployment Ruleset.xml" file. All that's ok. However so far I cannot find ANY documentation on the wildcard usage in the Ruleset.xml file that will allow us to do our jobs. Java has fast become a millstone around our necks and is drowning me and other technical officers.
    This is not a domain name access issue, we just need to be able to access IP ranges to these devices with a mixture of old and new java required.
    I am not a programmer and a simple technical office who has PC skills (and old). I attempted to set up the ruleset.xml and the convoluted way to certify the deployment.jar file and make changes to it in future is driving me to drink!
    So please help me!
    I need good information on the "ruleset.xml" wildcard use,  specifically for IP address and IP ranges. ie can I allow the IP range of 10.0.0.0/8??? How????  Anything I have tried has failed so far.  id= "10.0.0.0/8" and id= "10.0.*.*" don't appear to work for me.
    Also the ability to use specific equipment on specific versions of Java would seem possible? There does seem to be some information about this use.
    I am struggling with getting a grip on this "self signing certificate", how it will allow Java access to the equipment. 
    Also any good information on generating the certificate, key and jar file, (open source=free is the only option) so the file can be used on many different laptops/desktops to enable us to do our job as its getting more than frustrating. I am tearing my hair our and stong drink is my best recourse!
    If the wildcard (for instance) id= "http://10.0.*.*." is possible then a single generation of the ruleset and jar file would seem to work for us. All Oracle/Sun wildcard documentation is geared to domain names, ie *.somebody.com and no one is saying anything about IP ranges!
    No IT dept. Third party handles networking and pC support. However there seems to be NILL understanding of making the existing network work with Java to these devices in an acceptable manor.
    thanks
    Minsik.

    How do I get around these Netgear things????
    Well, you can't "get around them", per se. In each of them, the ports used for ARD will have to be open, and then eventually forwarded to the internal IP address for your mom's MacBook Pro. Given the (probably unnecessary) complexity of the setup at her house, that's going to be a bit difficult, and very probably not something you can do remotely.
    The ports that ARD uses must be open in each of the routers between the modem and her computer (as well as in any router on your end). ARD uses ports 3293 and 5900 so those must be open. The ports also need to be forwarded in the Airport (if she's using the MBP wirelessly) to the MBP's internal IP address. Someone will have to connect into each router's admininstration function to set up those ports; I'm guessing that you won't be able gain such access remotely, though it's possible.
    It's a complex situation, so it may take some tinkering to get it work, something that's probably going to be difficult from your end. With luck, her husband's son knows enough about what he's doing to be able to help. Anything he can do to simplify the network configuration will be of benefit.
    Good luck.

  • XMLBeans - how to get rid of xsi:nill="true"

    Hi,
    I am using the XMLBeans framework bundled with Weblogic. If any element is not set or set to null, the toString method of the complex element returns with an attribute xsi:nill="true" alongf wit the namespace definition for xsi in the XML header. Is there any way to suppress this xsi:nill="true" and the xsi namespace definition. My element entry in the XSD is "<xs:element name="zip" type="xs:string"/>"
    Thanks
    Saran

    Saran
    Were you able to find a solution for this issue please?
    TIA,
    Jaya

  • I used a skype voucher to recharge my account and ...

    I recharged two skype voucher given to me by my friend and I received a confirmation already on my email. But the problem is when i check my credit it is nill. How do i use the amount that the voucher is valid for?

    Hello
    Looking at your account I see that your order for $10.00 credit via PayPal was sent for confirmation on 04/28/14 and is still waiting. Your current credit balance is zero.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Time capsule dropped signal - use as client only?

    Hi all -
    A two part question/dilema if you can bare with me.  Trying to learn/understand as well as get myself the best setup. 
    My TC is nearly 3 yrs old and has always been my router and backup, no problems.  I moved and in the new house find that the TC was dropping the internet signal to my computer.  I had optimum come out twice to check the signal to the house and it was fine.  The TC sits in a wood tv cabinet and there are two basic house walls btwn the TC and computer.  Interference should be nill. 
    I have an airport express in the same room as the TC for airplay.  This worked fine.  One day i moved it from say 5 feet away into another room, 25 feet away, and found the airplay would not function.  When i moved it back closer to the TC worked great on again.  It seems anything 20 feet away the airplay stops working.
    What are the odds that my TC has lost signal strength over the years and/or has a glitch and drops its broadcast signal?   Or is there a chance a setting is wrong that is causing a weak signal between the devices..... my computer for internet and the express for airplay?  Even without an internet signal from outside shouldn't these two devices be super fast speaking to each other on my home internal network without flaw?  Can i test this?
    For the second part of my inquiry, if i get a 3rd party router to be the main source of wireless:
    1. Can i hook up the TC to "strengthen" the 3rd party signal without interfering?  My fear is that if TC broadcasts i'll run into the same weak/dropped signals on devices that hook up to it overe the 3rd party.
    2. Can i make the TC a non-broadcasting "client" only unit for backups only?
    3.  Can my airport express "extend" my 3rd party network without worry of weaking the signal?  Or am i better off using "client" only if i know the 3rd party provides a strong and clear wireless signal?
    thanks very much in advance.  I went from never dropping an internet signal to now losing the internet and having airplay working only when TC and airport express are 5 feet from each other.  this can't be right, not for apple products!     
    Cheers,
    Joe

    Wi-Fi devices don't degrade in the manner you describe.  I'd blame a difference between your old and new houses.
    What Wi-Fi band are your clients (and the AirPort Express) using to connect?  If they're using the 5 GHz band, selecting one of the higher-numbered channels (149 and up) can significantly increase the broadcast power.  I'd also select "Use wide channels" in the "Wireless Network Options" panel.
    I suspect that the problems you're seeing are due to too weak a signal.  You can investigate the signal and noise level that each of your devices is seeing using the advice in the second message of this thread.
    I won't try to answer your question about third-party routers, as I have little experience with them.

  • Is it ok to use a belt case with a magnet in it?

    i am using a belt case for my new iPhone 3GS and I was wondering if this will have any negative effect to the pone because it uses a magnet instead of a velcro.

    Chance of damage is nill, unattended consequences? Possible...generally, magnets & cell phones are not a good mix as the magnet "could" affect performance as you're dealing with radio signals.

  • How do I use Edge Web Fonts with Muse?

    How do I use Edge Web Fonts with Muse - is it an update to load, a stand alone, how does it interface with Muse? I've updated to CC but have no info on this.

    Hello,
    Is there a reason why you want to use Edge Web Fonts with Adobe Muse?
    Assuming you wish to improve typography of your web pages, you should know that Muse is fully integrated with Typekit. This allows you to access and apply over 500 web fonts from within Muse. Here's how you do it:
    Select a text component within Muse, and click the Text drop-down.
    Select Add Web Fonts option, to pop-open the Add Web Fonts dialog.
    Browse and apply fonts per your design needs.
    Muse also allows you to create paragraph styles that you can save and apply to chunks of text, a la InDesign. Watch this video for more information: http://tv.adobe.com/watch/muse-feature-tour/using-typekit-with-adobe-muse/
    Also take a look at these help files to see if they help you:
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-1.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-2.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-3.html
    Hope this helps!
    Regards,
    Suhas Yogin

  • How can multiple family members use one account?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

  • Iphoto crashing after using mini-dvi to video adapter

    Hi, IPhoto on my Macbook is crashing. I can open it, then as soon as I scroll down it locks up and I have to force quit.
    This started happening right after I used a Mini-DVI to Video Adapter cable to hook my macbook up to my TV. The adapter/s-video connection worked and I was able to see the video on the tv. But iphoto immediately locked up the computer when I went to slide show and now it locks every time I open it.
    Any ideas?
    Thank you:)
    Dorothy

    It means that the issue resides in your existing Library.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • How do multiple family members use iTunes.? One account or multiple?

    How do multiple family members use iTunes. One account right now but apps gets added to all devices and iTunes messages go to all devices.  Can multiple accounts be setup and still have ability to share purchased items?

    Hey Ajtt!
    I have an article for you that can help inform you about using Apple IDs in a variety of ways:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using one Apple ID for iCloud and a different Apple ID for Store Purchases
    You can use different Apple IDs for iCloud and Store purchases and still get all of the benefits of iCloud. Just follow these steps:
    iPhone, iPad, or iPod touch:
    When you first set up your device with iOS 5 or later, enter the Apple ID you want to use with iCloud. If you skipped the setup assistant, sign in to Settings > iCloud and enter the Apple ID you’d like to use with iCloud.
    In Settings > iTunes and App Stores, sign in with the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match). You may need to sign out first to change the Apple ID.
    Mac:
    Enter the Apple ID you want to use for iCloud in Apple () menu > System Preferences > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in Store > Sign In. In iTunes 11, you can also click iTunes Store > Quick Links: Account.
    PC (Windows 8):
    Enter the Apple ID you want to use for iCloud in the Control Panel. To access the iCloud Control Panel, move the pointer to the upper-right corner of the screen to show the Charms bar, click the Search charm, and then click the iCloud Control Panel on the left.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes. In iTunes 10, select Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    PC (Windows 7 and Vista):
    Enter the Apple ID you want to use for iCloud in Control Panel > Network and Internet > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes 10 in Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    Note: Once a device or computer is associated with your Apple ID for your iTunes Store account, you cannot associate that device or computer with another Apple ID for 90 days. Learn more about associating a device or computer to your Apple ID.
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Using SQVI to generate report of open and released delivery schedule lines

    All,
    I'm using SQVI  to generate an excel spreadsheet for some buyers to show open released schedule lines because they are a 1 line item per scheduling agreement company.
    I used the logical database MEPOLDB instead of a table joint and pulled fields from EKKO(vendor, SA #,&purchasing group), EKPO(Material Number), EKEH(schedule line type), and EKET(delivery date, scheduled qty,previous qty).
    Does this sound like I'll get the results I want on paper as long as I use the right selection criteria, because the report I'm getting isn't quite what I expect? I am unable to identify which lines are authorized to ship vs. trade-off zone, planning, etc. in the report thus far.

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

  • Using Mini DVI to VGA adapter on MacBook

    I bought the adapter from Apple & hooked up my LCD monitor to the MacBook, but the video I get on the monitor is different that on my laptop. It has an old screen background & the dock but nothing on my desktop shows up. Also, when I'm plugged to the monitor, my dock disappears on the laptop screen. Is there some setting I need to change? It worked fine with my G4 PowerBook.
    Thanks for any help....
    MacBook   Mac OS X (10.4.6)  

    i use the mini dvi-vga adapter in my classroom almost everyday. It sounds like your new monitor is running as a side by side monitor to your display instead of a "replacement" display.
    To get your projector/monitor to basically show whatever is on your macbook screen once you've hooked up press F7....this should make your projector/monitory become your display with your dock & all of your desktop stuff. Your new monitor will completely mirror your display.
    THis should do what you're looking for.

  • Using mini-DVI to VGA adapter to Samsung display

    I have 2009 late model of mac mini, The text on display looks washed out, not clear or sharp at all from day one, I thought it was the old model of monitor, tried the same cable to another monitor on another computer, SAME. so I thought the problem could be the cable or adapter.
    It's hard for me to believe is the signal from computer. I'm using VGA adapter made by Dynex bought from Best Buy.
    Anybody has suggestions?? Thanks

    Yeah, My old Samsung is lcd synmaster 17", bought many years ago at around $1000. Crazy, crazy price looked back. It's fine when I used it on the retired old Dell. It must be the adapter, trying not to buy another VGA adapter, could not image my next lcd will use one, anyway.
    This cable has only 14 pins vs 15 pins on the other cable, not sure if it matters?? Or if Safari has anything to do with it??
    Thank for you reply...

Maybe you are looking for

  • My iphone 5 is not recognized by itunes on my windows7 pc.

    my phone wasn't working properly so i installed iOS 7 and now I can't restore my backup files because itunes doesn't recognize my phone any more. what to do to have my backup files back.       ps. i upgraded itunes but still ask me to upgrade i tunes

  • HT4796 windows migration assistant has errors in preparing data on my PC

    Hi, just got my new iMac and want to migrate files from my Windows XP machine using Windows Migration Assistant for Lion. It seemed to install OK on the PC but it will not run. It comes up with an message saying found errors in preparing data. Any id

  • My iCal is stuck "updating".  How do I get it to stop?

    My iCal is stuck updating.  I've been using an iCloud calendar for quite a while.  All of a sudden it's stuck "updating".  I've quit iCal and restarted it and it's still stuck.  Rebooting the iMac doesn't help either.  Other than the "updating" at th

  • "Classic" and Leopard

    Does anyone know if "Classic" will run under Leopard?, or is classis gone for good after installing Leopard?. JB

  • Startup + Gray folder with question mark.

    I had this problem once before and took the computer to the Apple Store.  The machine began running great.  Now I have this again.  What does this mean?