Possible to add multiple 'Collections' to a container

Hello,
In DB XML, is a 'Container' equivalent to an xquery 'Collection' ? All of the examples that I see, refer to the container when specifying the collection.
Basically, I would like to create one Container - call in container1.dbxml Within container1, I would like to have multiple collections, collection1, collection2.
I would then like to be able to run xqueries such as:
count(/*) - and get a count of all the docs in both collection1 and collection2 or
collection("collection1")/* - and get all the nodes in collection1 only
So, bottom line question - can I add multiple collections to a container, or is a container and collection equivalent in DB XML?
Thanks for your responses.

IBB
What you want to do is create a class that extends the Java XmlResolver class, and register that class with the XmlManager. In your extended class you would want to implement the following function:
public boolean resolveCollection(XmlTransaction txn, XmlManager mgr, String uri, XmlResults result)
So that the result argument contains all the documents in the collection specified by the uri. You will likely want to do this by querying the container for the documents for the given collection and copying the results returned by the query to the argument.
Below is an example of an implementation of the function that resolves the collection to a single document.
public boolean resolveCollection(XmlTransaction txn, XmlManager mgr, String uri, XmlResults result) throws XmlException {
     XmlDocument doc = mgr.createDocument();
     doc.setName(name);
     doc.setContent(content);
     XmlValue val = new XmlValue(doc);
     result.add(val);
     return true;
Lauren Foutz

Similar Messages

  • Is it possible to  add multiples dimension objects in Webi Ranking ?

    As per the project requirement we need to convert custom sqls to reporting sql in webi 3.1 sp5 .
    Is it possible to  add multiple dimension objects while applying ranking (Webi query panel ).
    Or is there any other way to achieve this feature in BO ?
    Regards,
    Pranay

    Hi ,
    There is a way if you want to apply ranking within a ranking . Below are the steps:
    First on the outer side we can use the Rank feature which is available directly
    Then use the Rank Function (=rank ()) and reset your dimension accordingly .
    This kind of Ranking is possible.
    Regards,
    Rahul

  • Is it possible, to add multiple USB devices to TC

    Is it possible, to add multiple USB devices using a hub to Time Capsule (as stated for Airport Extreme)?
    Thanks in advance.
    Stefan

    The Time Capsule is an AirPort Extreme with a built-in hard drive, so you can add multiple USB devices if you use a powered USB hub.

  • IS IT POSSIBLE TO ADD MULTIPLE ATTACHEMENTS?

    WHEN EMAILING ON IPAD, IS IT POSSIBLE TO ADD MORE THAN ONE ATTACHMENT? TWO OR MORE DOCUMENTS ON ONE EMAIL?

    The iPad requires you first to define the object you want to email and then open a send-mail page. Thus, natively you can only send one attachment. I looked at the app store and Mail2List allow sending up to six photos at once. AceMail allows sending multiple audio files and photos. I could not find anything to send more than one document.
    Also, please do not use all caps.

  • Is it possible to add multiple contacts to Safari autocomplete for iPads used by more than one person regularly?

    If there are multiple regular users who both want to take advantage of the Safari autocomplete function for forms can you add multiple people in Settings?

    No, that's not possible.

  • Possible to add Multiple Destinations on WORLD MAP?

    Can I add multiple destinations in 1 world map in imovie? Or only the Start and End location? Thanks

    You cannot have multiple destinations in a single map, but you can go from point A to point B to point C to point D, etc. You do this by putting several maps adjacent to each other. So the first map is A to B. The second is B to C. The third is C to D, etc.

  • Is it possible to add multiple  songs to a slide show?

    Hi there.
    A slide show can be quite long as you all know and the same music continusly repeated can become boring.
    Is it possible to add several songs to the slide show to overcome this problem?
    Regards.

    One thing you can do to make it all turn out even--think about how long each slide is going to display, say you want about 3 seconds per slide, multiply by the number of slides, say you have 100 slides (I picked those numbers so the arithmetic would be easy!). That's a total of 300 seconds. Divide by 60 seconds per minute to get the number of minutes, in this case that would be 5 minutes. Then when you make your playlist in iTunes find music that fits the mood of the show and that totals a little more than 5 minutes (and is NOT Protected, as Terence mentioned). Back in iPhoto select your Playlist in the Music section and then check the box to have the slideshow fit the music, and iPhoto will adjust the display time so that everything runs the same length of time. Export to iDVD and burn your disk.
    Personally, I like to get a little fancier, so I export my slideshow without sound, then open the project in iMovie HD and make a layered soundtrack, where I arrange the music and sound effects, as in this one:
    http://homepage.mac.com/francines/.Movies/kenstr.html
    It has the music, plus a coffee gurgle, birds tweeting, page flips and a lion roar at the end. Once it's built you can send it to iDVD at full size and/or, as I did here, make a small streaming web version to share over the Internet. I wrote up a VERY short tutorial on this (notes from a workshop I ran) and put it up here:
    http://pinkmutant.com/smug/psws06/bling.html
    Afraid I haven't worked that much with iMovie 08, but I believe you can do something along the same lines.
    Francine
    Francine
    Schwieder

  • Is it possible to add multiple files to a collection at once?

    Hello,
    I have a lot of big zip files and I want to add them all to a single collection. It would take ages to do it one-by-one. Is it possible to do them all at once? How can I do that?
    Many thanks.

    Hi there,
    Thanks for posting. Unfortunately, it's not possible to upload a zipped file to Acrobat.com; we support the filetypes listed on the following linked page:
    http://kb2.adobe.com/cps/524/cpsid_52456.html
    I'm very sorry to disappoint you! We are constantly trying to improve our service, and I'll be sure to put in a good word for supporting .zip uploads. In the meantime, you could always suggest it yourself at our Ideas site, where people post, view, and vote on suggestions for additions to the service at Acrobat.com:
    http://ideas.acrobat.com
    Thanks, and take care,
    Rebecca

  • Is it possible to add multiple sound objects to a slide

    I am wanting to make slides that contain several "cards". Each card would have a word on it (sight words for elementary students). I'd like to place 2 speech bubble graphics on each card. Students would click one of the bubbles to hear the word read to them (me recording the words). They would click the 2nd bubble if they wanted the word read in the context of a sentence.
    Is this possible within Keynote? I know that it's possible within Powerpoint to make any object a sound object--and I believe that I could do more than one on a slide.
    However, I've never tried anything like this in Keynote and I'm not sure if it's even possible.
    Any ideas?

    Keynote is designed primarily for linear presentations, and really doesn't have any capability to do actions (other than hyperlinks) when an object is clicked. If you wanted each card to play the two recordings in order on each click, then you could do this in Keynote, but if you want the second recording to play only if the students clicks on it, then this isn't really possible in Keynote.

  • Is it possible to add multiple iPhone 6's tonight using the Edge program?

    I want to add several new iPhone 6 lines to my account tonight using the Edge program, but it seems to only allow one phone to be added this way.  Is it at all possible to do this online or will I need to go in store to accomplish this (and possibly miss out on getting in on the initial release)?

        Great question paulterp. We currently don't have information regarding this phone and the Edge program. I'm sorry. We wont have more information until the 12th. Please stay updated here http://bit.ly/n5snpq .
    KinquanaH_VZW
    Follow us on Twitter @vzwsupport

  • Is it possible to add multiple extensions to a filefilter ?

    Hello :
    I'd want to do something like this :
    FileFilter filter = new FileNameExtensionFilter("Various extensions", "jpg, gif, eps");
    FileFilter filter = new FileNameExtensionFilter("Various extensions", "jpg; gif; eps");
    But It does not work ....
    I know I can make a subclass of filter, but I ask if can be possible to do a simple filter like the examples
    Thanks

    tonnot wrote:
    Hello :
    I'd want to do something like this :
    FileFilter filter = new FileNameExtensionFilter("Various extensions", "jpg, gif, eps");
    FileFilter filter = new FileNameExtensionFilter("Various extensions", "jpg; gif; eps");
    But It does not work ....
    I know I can make a subclass of filter, but I ask if can be possible to do a simple filter like the examples
    ThanksAccording to the JavaDocs it uses varargs to take multiple parameters: Documentation
    So in your example it would be:
    FileFilter filter = new FileNameExtensionFilter("Various extensions", "jpg", "gif", "eps");

  • Is it possible to add multiple charts in a single visualization?

    Hi All,
    I would like to know whether we can display multiple charts (line, column, etc) inside a single 'Visualize' screen.
    I am using:
    SAP Lumira
    Version: 1.15.1
    Build: 879
    This will help in situations where we need to compare 'month on month' values for sales and demand data to be displayed side by side instead of different Visualization screens
    Regards,
    Chinmay

    Hello Chinmay - that is what Storyboards are for
    See SAP Lumira 1.12.0: Create a storyboard

  • Is it possible to have multiple bookmarks files or tabs with different content, like Bookmarks 1, Bookmarks 2 etc. inside the same profile?

    I guess this is more like a new feature in Firefox. I work at home and would like to separate work related bookmarks in a separate bookmarks file which is as easily available like a standard bookmarks tab. I propose a possibility to add multiple bookmarks tabs in the menu bar. It would be nice if those tabs could be renamed at will...

    You can organize them in a few main folders (Home, Work, etc.) to make it easier to distinguish the bookmarks.
    You can also export the Bookmarks to an HTML file and make copies of that file with the needed bookmarks.<br />
    You can open such a HTML file in a Firefox tab and middle-click a link to open that link in a new tab.

  • Ssible to add multiple e

    Hi All,
    Is it possible to add multiple effects to a single video clip? For example, adding a vignette and film grain?
    Many Thanks

    Unfortunately you can't add all at once. But you save a lot of time by the copy/paste method (double-tap at a mail address, tap "copy", go to the "Contacts" app, enter the contact you want to paste the address in, tap "Mail address", then double tap again and tap "paste").

  • Add multiple textures to a collada object

    Hi,
    I am trying to add textures and materials to a collada object. My problem is, that the collada-type only has one property for textures as a "string".
    I need to know whether it is possible to add multiple texture files to a single collada object and - if it is - how to add them.
    Thanks and regards,
    Marc

    Hello Marc,
    in the backend the VBI application object has a method GET_INITIAL_ZIP_ARCHIVE. This method returns a Base64 encoded ZIP archive including an XML file and all required resources, e.g. DAE-Files. This ZIP archive needs also to include the Texture with the right path relative to the DAE-Files.
    When calling this method you can specify additional resources to be added to the archive via table IT_ADDITIONAL_RESOURCES. This table holds resource entries with a name and the binary content. I checked it and you can just add the path to the name:
    - Texture.jpg will be in the root of the ZIP archive
    - Image/Texture.jpg will create a sub folder Image and place the texture there
    Best regards,
    Uwe

Maybe you are looking for

  • How can I make a warp/wave animation of my logo, and drop it into muse?

    I have made a Logo that has a wave like feature to it, it is round, and I made and animation of it warping, rotating, and moving around the screen with After Effects. Now I have realised that after effects was probably not the right program to make a

  • How do i transfer contacts from outlook to mac, or ipad to mac

    have a new macbook pro...having difficulty using migration tool from pc windows 7 do transfer outlook contacts to mac...also have them on ipad...would appreciate any assistance to transfer contact from either pc or ipad to the mac...whichever is easi

  • Where can I get PDF help files for Oracle9i?

    In Oracle8 and Oracle8i, there were PDF documentation files on the install CDs for Oracle8i Reference, Administrators Guide, SQL Reference, SQL*Plus, etc., etc. Are these available anywhere for Oracle9i? I didn't see any documentation option on the d

  • High VLAN Interface utilization (6500/sup720)

    Can anyone tell me why a VLAN interface would show 100% utilization for a givin VLAN? This is a sup720 we're talking about. I understand that the bandwidth of a virtual interface is 1Gig but I thought this was more related to routing metric. Users we

  • Random crashes and unable to browse onine despite being connected

    Hi there, I am experiencing crashes at random times, sometimes video sometimes the pc goes down. I was good until the last round of updates. I have another issue too now, I cant connect to my router or view any other devices in network. After a reboo