Validate XML with multiple XML Sechme in the same namespace

In my program, i use multiple xml schemas to validate against my xml files.
However, i found the following code do not work because all schemas in the same namespace.
Does any one have some solutions to validate multiple XML Schemas in the same namespace?
Thanks~~
static final String[] schemas = { partyInformationSchema,
itemInformationSchema,
exceptionsSchema,
salesForecastSchema,
exceptionCriteriaSchema };
factory.setAttribute(JAXP_SCHEMA_SOURCE, schemas);

I have used the Object arrsy too, but it didn't work.
static final Object[] schemas = { partyInformationSchema,
itemInformationSchema,
exceptionsSchema,
salesForecastSchema,
exceptionCriteriaSchema };

Similar Messages

  • Howto deal with multiple source files having the same filename...?

    Ahoi again.
    I'm currently trying to make a package for the recent version of subversive for Eclipse Ganymede and I'm almost finished.
    Some time ago the svn.connector components have been split from the official subversive distribution and have to be packed/packaged extra. And here is where my problem arises.
    The svn.connector consists (among other things) of two files which are named the same:
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/features/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/plugins/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    At the moment makepkg downloads the first one, looks at its cache, and thinks that it already has the second file, too, because it has the same name. As a result, I can neither fetch both files nor use both of them in the build()-function...
    Are there currently any mechanisms in makepkg to deal with multiple source files having the same name?
    The only solution I see at the moment would be to only include the first file in the source array, install it in the build()-function and then manually download the second one via wget and install it after that (AKA Quick & Dirty).
    But of course I would prefer a nicer solution to this problem if possible. ^^
    TIA!
    G_Syme

    Allan wrote:I think you should file a bug report asking for a way to deal with this (but I'm not sure how to fix this at the moment...)
    OK, I've filed a bug report and have also included a suggestion how to solve this problem.

  • Apple TV with Multiple Mac's in the same house & a PC

    Question--
    I recently got a used Apple TV for christmas. I successfully synched it with my Macbook but I haven't tried to synch the content from my iMac or PC. I'm wondering if I can synch content from two seperate mac's & my PC and not have the content from the first Mac erased. The Apple TV has a 150 GB Hard drive so I figure i can use it as a mass media storage device for all of my computers.
    So I am curious if all of my computers can play nice with my Apple TV at the same time without having content erased automatically. I would have already tried it but it takes so long to synch all of my content that I don't want to risk it especially if it doesn't work.
    What codecs does the Apple TV support? Can I put Divx and Xvid movies in my iTunes Movies folder and have them play? Or do I need to convert them to an Apple friendly file.
    Thank You

    OK
    Important things first:
    1 - there is no way (short of hacking/dismantling) AppleTV to get media off it
    2 - therefore you MUST NOT use it as a mass storage/backup device
    3 - you must keep copies of files synced (copied) to it in a single iTunes library
    4 - if you delete those files and sync again they will go from AppleTV too
    You can only sync a single library, but you can stream up to 5.
    Codecs are limited to MP4/h264, see here:
    http://www.apple.com/uk/appletv/specs.html
    Anything else needs to be converted.
    AC

  • Problem with multiple Ajax calls to the same Servlet

    Hi,
    I am new to AJAX. I have a requirement where in, i have to make ajax calls to the same servlet in an infinite loop and check for an application context attribute to refresh the contents in the JSP.I am using the following script in JSP. The problem is i am not able to invoke the servlet more than one time.But I am able to go through the script at specific time interval using setInterval() function of Javascript and able to get alerts.But the problem is with xmlhttp.open("Get", url, true);. Its not getting called more than one time, even though i make multiple calls to the function.
    *<script type="text/javascript">*
    var xmlhttp
    var resp
    function fAjax()
    alert("Here");
    xmlhttp=null;
    resp=null;
    // code for Mozilla, etc.
    if (window.XMLHttpRequest)
    xmlhttp=new XMLHttpRequest();
    // code for IE
    else if (window.ActiveXObject)
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    if (xmlhttp!=null)
    xmlhttp.onreadystatechange=state_Change;
    xmlhttp.open("GET","/PSAPBackOffice/TestServlet",true);
    xmlhttp.send(null);
    else
    alert("Your browser does not support XMLHTTP.")
    function state_Change()
    // if xmlhttp shows "loaded"
    if (xmlhttp.readyState==4)
    // if "OK"
    if (xmlhttp.status==200)
         resp=xmlhttp.responseText;
         //alert(resp);
         if (resp=="CALL"){
         form.method="GET";
         form.action="/Project/Details.jsp          
    form.submit();
    else
    alert("Problem retrieving XML data")
    function callTimer(){
         setInterval("fAjax()",5000);
    *</script>*
    *Code for Servlet here:*
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException
    ServletContext objContext= getServletContext();
         String value;
         synchronized (objContext) {
                   value=(String) objContext.getAttribute("Flag");
                        if(value==null){
                        else if(value.equals("Done")){
                             response.setContentType(CONTENT_TYPE);
                             PrintWriter out = null;
                                  try {
                                       out = response.getWriter();
                                  } catch (IOException e) {
                                       // TODO Auto-generated catch block
                                       e.printStackTrace();
                                                                } catch (NullPointerException npe) {
                                       // TODO Auto-generated catch block
                                       npe.printStackTrace();
                             objContext.setAttribute("Flag","No");
                             out.println("CALL");
    Can someone figureout the problem or mistake and help me out.Its urgent and please help me in this regard.Thanks in Advance !

    I'm not sure I'm following you. The mapping from URL to servlet can contain anything you want. So you could have the URL /blah/blah/blah that, with a mapping something like /blah/* would pass all requests with that URL pattern to your servlet - no one has to know it is a servlet. Your servlet could then parse the URL to see what it has to do or you could pass parameters as part of the URL or as hidden fields.

  • Inbound Invoices (EDI 810) with multiple items that are the same keys.

    One of our Vendors just started sending us 810's that have multiple items with the same P.O., Delivery, P/N, Price, etc.  The reason is that they (and we) track inbound batches for the purpose of traceability, so the only difference between items on both the invoice and inbound delivery is the batch number.
    SAP will not allow the automatic creation of an SAP Invoice with these conditions.  The error message is M8321 - 'Document contains same order item more than once'.
    SAP Note 103051 says it cannot be done, and you must "Deactivate the billing of the batch sub-items in SD Customizing" in order to have an Invoice created that combines all items into one.
    Does anyone know how to do that?
    Thanks in advance!

    Nevermind. Fixed the problem. Two menu items both began with the letter S. Added an & before the second letter of the second menu item and now the problem is fixed. First items hotkey is S and the second items hotkey is now h (which is the second letter of the 2nd menu item).

  • Troubles with multiple ESLL-SRVPOS in the same outline agreement line item!

    Hi all,
    Currently have an issue where the same service master is being used multiple times in a single outline agreement line item (set up with different groups in the service specifications with different rates).
    This is causing issues with drawing services into purchase orders.
    Eg: In ME57 when creating a PO from a PR, in the include LMLSPF5J /SEARCH_SRVPOS_CONT/ the system is checking if ESLL-KNT_INTROW is empty (which in my case it is, and message SE361 is displayed).
    The main thing thats happening is that ESLL_KNT_PACKNO and ESLL_KNT_INTROW, which hold the reference data to the outline agreement in the PO should get filled with the packno and introw from the oa service line but it isnt happening.
    I'm thinking of creating a validation so that the same service service number (ESLL-SRVPOS) CANNOT be used in the same outline agreement line item.
    Wondering if anyone has had this same issue and what path they went down to resolve it.
    Any ideas would be appreciated.
    Tim

    hi
    u cannot do this because different line items cannot be in same cell as they are variable and only one field can be there ata atime in one column while creating field catalog
    <b>u can do one thing. corresponding to sales order u can display its line items ion the secondary list and would make more sense also. for this make ur sales order number as HOTPOT on click of which will display its corres line items </b>
    regards
    ravish
    <b>reward if useful</b>
    Message was edited by:
            ravish goyal

  • Working with multiple user accounts on the same folio/article

    Hi,
    i have the follwing issue:
    - User A owns the folio (the one that publsihes it), the folio is shared with user B and C
    - User B is the graphics designer. He does the Artwork
    - Usee C should do the textutal corrections
    Problem:
    - User C cannot access the Articles User B has created
    Question: What is the right solution for this kind of problem? Two (or more) people should be able to work on an article using their personal account. The only solution I see at the moment is to create a specific "designer-account" per folio project that all these people share.
    Are there any other options
    cheers
    Thomas

    Thanks for the quick responses.
    The sharing of the data is not the problem, in fact, cloud storage can be one of the solutions. But regardless, if people work on different locations or in the same intranet, it can always happen, that designer B goes on holiday and there needs to be done a change on one of the articles inside the folio that B has been working on. It is a pitty, that Designer C cannot take over and do the changes without either having to have user/password of B or "destroying" the folio settings, removing the article completely and re-entering it drom scratch (with all correct settings, namings etc) what makes B having to do the same, as soon as he comes back. This might also have to do with the absolute path references used in folios instead of logical ones (every user can set as "folioroot" on his computer) what also would make the dropbox (or adobe cloud) approach work, as everybody would share the same subfile structure and could "jumpstart" working on the folio.
    Nevertheless, thanks for the answeres, things work as they do. I was just wondering if I am doing something wrong.
    We will now create shared working users per project, so everybody involved in the project will use that user.
    Thomas

  • Problems with multiple itunes accounts on the same computer

    Does anyone have issues with this? My husband and I have seperate iTunes accounts, and eventhough I am logged in under my username, his music is loading and mine is gone...
    Also, his iPad apps are syncing to my iTunes account - this happened just last night when I plugged my iPod in and was rearranging my playlists and his apps were syncing at the same time.

    Well, I usually think of an 'iTunes account' as being an account at the iTunes Store...  I take it you have different iTunes collections with separate library files for each of you.
    It sounds like you have different user accounts on the computer.  Figuring out what is going on will require us knowing a lot more about how you have your iTunes libraries set up.  Do you also have a shared area or do you keep totally separate accounts?  Are you positive you were't really in his account when this was happening?

  • Issue with multiple Edge animations in the same article. Please help!

    We have 3 edge animations in our 3 page article, one in eache page. The first edge animation you view autoplays great, however when you swipe down or up the other animations just wont play. All of them set to autoplay 0.125 with transparent background. It seems that no matter which one you see first, it kills the other two. We tried importing HTML and DPS  from Edge with the same results.
    Thank you in advance!
    al3nai

    I just did a quick test and experienced mixed results. I placed a single edge animation on the first page of a horizontal article, then placed the same edge animation on three pages of the vertical orientation (dual-orientation folio). The edge animation shows up perfectly on the horizontal layout, but only displays on pages 1 and 3 of the vertical orientation. It does not load on page 2.
    I also placed an additional Web Content Overlay on page two connecting to a website which loads fine. The edge animation shows the spinning/loading icon but nothing loads.
    Sorry, not much help here just sharing similar bugs.

  • How can I insert an additional page without screwing up the master layouts? I have a document with multiple sized pages and the same master applied to each page.

    My document is currently 10 pages. There are 5 different sizes of the pages. They all have the same master page applied to them. When I go to insert a new page and/or duplicate a page...it screws up where the master layout goes. Surely there is simple way to do this??
    For example:
    These pages are all inserts for a sales folder.
    Pages 7 and 8 are sized at 8.5" w X 10.25" h. Pages 9 and 10 are sized at 8.5" w X 11" h.
    I need to duplicate page 8 and have it go between 8 and 9 and it needs to be sized like pages 7 and 8 (or 8.5" w X 10.25" h)
    When I go to to do this, it screws up the master page layout for the remaining pages of the document.
    I have tried several ways to do this. Can anyone help??
    Thanks!

    Try to define 5 different master pages.

  • Problems with multiple TestStand versions on the same computer

    I installed LabVIEW 2014 and TestStand 2014; then later I installed TestStand 2010 SP1 and have been using it since.  (I also updated LabVIEW 2014 to 14.0f1; I think I did that after installing TestStand 2010 SP1.)  Is this "legal?"  I have been seeing strange behavior with TestStand 2010 SP1:
    - if I type in any expression text boxes in the Sequence Editor (e.g., for a pre-expression), I periodically get an error dialog as I type:
     "The .NET support dll could not be loaded.  This is caused by an assembly path that could not be resolved.  Error Code: -18700, The .NET support dll could not be loaded.  This is caused by an assembly path that could not be resolved! Source: 'TSAPI'
    After I acknowledging the dialog, I can contine to type a little more before getting the dialog again, but it doesn't seem to invalidate anything I type.
    - If I open the Simple LabVIEW Simple User Interface that ships with TestStand 2014 while TestStand 2010 SP1 is active, LabVIEW immediately crashes.  I can open all the subVIs without a problem, but the top-level VI always crashes LabVIEW.
    So I used the TestStand Version Switcher to make TestStand 2014 active, opened the top-level Simple UI VI, and deleted all the UI controls.  Then I switched back to TestStand 2010 SP1, and then I was able to open the top-level VI.  I added back the TestStand UI controls to the VI, and now the VI runs.  But many operations return a TestStand error dialog, such as Close Execution ("Value invalid or out of range [Error Code: -17300]"), Logout ("Cannot find item to select in ComboBox [Error Code: -2147467259]"), and (critically) Exit ("Operation Failed.  Error Code: -17500]") and the X in the upper right corner of the window ("Operation Failed.  Unknown System Error in <VI name>").  So I can't exit without killing LabVIEW.
    These two issues may be unrelated.  But maybe installing an older version of TS after installing a newer version is not a valid use case?  Is the ActiveX error a result of this?  Should it be possible to use a (simple) UI written for a newer version of TestStand be able to work with an older version of TestStand?
    I have another issue that is probably unrelated, but I'll bring it up here just for completeness.  If I right-click on a LV property node or invoke node for a property or method from the TS API and ask for help for the property or method, a command window flashes briefly before showing the TS help window with the top-level item selected (i.e., it doesn't take me to the help for the selected property or method).  I have this problem with either version of TS active, and I saw this problem even before I installed TS 2010 SP1.  I seem to recall having this problem once before, but I can't find the solution.  I don't know if this problem is an indication of some other larger problem.
    For what it's worth, I am running WIndows 8.1 on a virtual machine.

    Thanks for the information, Doug.  Maybe the ActiveX error dialog I get while in the sequence editor is related to the fact that I'm running an unsupported operating system.
    So using a UI that was created in a newer version of TS is not supposed to be able to run with an older version of TS.  Is there any way to enforce this (like having a dialog appear informing you of the incompatibility when the TS engine is loaded) and avoid an immediate crash?  (Maybe the crash has to do with the incomaptible OS as well.)
    Is there a way to "relink" a UI to an older version of TestStand?  Can you just relink all the ActiveX reference controls/constants to the TS ActiveX servers?  As far as I can tell, everything I am trying to do with the new TS version should work with the old version.  And also, as far as I can tell, the TS version switcher changes the version of the available ActiveX server; so unless my UI uses a feature unavailable in older TS versions, I would think it shouldn't know the difference.  (I'm making a lot of assumptions in that last statement, so I may be totally wrong here.)
    Thanks,
    Jeff

  • How do I use multiple local workspaces for the same website in VS2013?

    For quite some time I've been using VS2010 with multiple workspaces mapped from the same TFS branch to test different variants of a website in parallel. The internal web server (Cassini) seems quite happy to run multiple versions and simply maps a new port
    number for the second and subsequent instances that start up.
    We are now looking to move to VS2013, so have to use IISExpress since the 'internal' web server is no longer provided.
    How do I configure things so that if I open a single workspace, IISExpress runs against that workspace using the default port number (specified in the solution), but if I open a second instance in a different workspace it correctly uses a new port number
    and working folder. Do I need to invoke IISExpress using the command line (presumably from each workspace) and specify the relevant defaults or is there some way to enter this in the local config file for IISExpress?
    My initial attempt at editing to config file resulted in the 2nd and subsequent instance using the same physicalfolder as the first instance, presumably because the speficied site name and port number are the same!

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Based on your description, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     or IIS forums: http://forums.iis.net/ for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is there any way to upload Tariff Code (with multiple XML files) from application server?

    Hi All,
    Is there any way to upload Tariff Code (with multiple XML files) from application server?. Its urgent.
    Regards,
    Jatin

    Hi Jatin,
    Yes, of course you can upload multiple files for tariff codes.
    This can be done by the below path:-
    SAP GTS Cockpit(tcode-/sapsll/menu_legal)-->Customs Management-->Classification-->Classification Master Data-->Upload Tariff Code Numbers from XML file(tocde- /SAPSLL/LLNS_UPL101).
    In the above area after browsing and choosing the first file, please select multiple check box to choose more files as well. Then you can further select your application server and upload all those files in one go.
    PS:- Although, we have an option to upload multiple such files but actually we should avoid multiple file uploads due to various reasons. Hence, please take utmost care during such procedure.
    Regards,
    Aman

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • How can I edit multiple clips with different frame rates on the same timeline

    how can I edit multiple clips with different frame rates on the same timeline

    You do not want to edit material from different frame rates on one timeline. You CAN do this, but it is a very bad idea - and this is why.
    Once you establish the sequence frame rate - lets say it is PAL material at 25fps, any material that you drop into the sequence other than 25 fps will have to be changed to play at 25 fps. If the material you add is NTSC (29.97), FCP will DROP 5 frames per sec to bring the frame rate down to 25 fps. Which 5 get thrown away? Every 6th one. This yields a funky cadence that becomes even more complex as as there are also interlaced fields (DV/NTSC is an interlaced format). Oh, and by the way, the image sizes are different as well. DV/PAL has 576 lines of resolution and DV/NTSC has 480. FCP has to scale up the NTSC to fit the PAL frame.
    You do not want FCP adjusting these things on the fly. You want to do a thoughtful (and time consuming) conversion so that you end up with all your material in one format with the best possible image from the conversion process. Compressor can do an adequate job with Frame Controls turned on. The Natress Standards Conversion FCP plugin is another way to go. A third option is to find a post house that can do the conversion for you using a hardware based process.
    The good news is, once everything is in the same format, editing it will be painless and the output process very quick.
    Whatever frame rate/ image size you select, I'd suggest using ProRes for the codec. It is 4:2:2 color and will withstand color correction and composting with much more grace than any variant of DV based codecs.
    Have fun.
    x

Maybe you are looking for

  • How can I re move the ads located below my folders on my e-mail page?

    The ads did not appear when I used Windows XP. Now that I have Windows 8, I can't expand the space for my e-mail folders.

  • Cisco CP (ccp) on different subnets

           Hello! We currently have lots of branches around the world (at about 20) using a class A subnet segmented in many different subnets. The point is that we would like to use Cisco CP (professional) to perform some monitoring on our routers, but

  • Inboud delivery creation and post goods receipt via idoc at same time

    Hi Does anybody knows if there is in idoc message/basic type that can create in one single step the inbound delivery for a purchase order and do the post goods receipt (on the inbound delivery)? Warehouse is not setup. KR Jimmy

  • Boot Up, Mac Noise, screen on then OFF

    The AC adapter is connected. I boot up the computer. The typical noises and the signature macintosh noise sounds. A few seconds later the gray screen with the apple appears for a second then the screen goes completely black. The caps lock and num loc

  • How can I change the log level of Sun Clsuter software?

    Hello, Now we have a problem about Sun Cluster. But we cannot isolate the cause. So we'd like to raise the log level of the cluster software. I think we can do it. I'm soory that we don't have any manuals about SUN here And this is an aregent issue P