Validation of XML with Schema, which contains more than one Schema

Hi All,
I am having a parent.xsd file, which inculdes or imports child.xsd file. I need to validate an xml with the parent xsd. Could u give any sample code for doing the same.
Java Version : 1.4.2
Using Xerces for parsing the xml....
Thanks,
Senthil

Is anyone there to reply?

Similar Messages

  • How to create an iBOT which contains more than one dashboard page

    Hi,
    I want to create an iBOT which delivers the content in HTML or PDF format, but to contain more than one dashboard page. The idea is that I have several dashboards and I want to send by e-mail (by iBOT) most important pages from different dashboards.
    Is it possible to send by a single e-mail different pages from different dashboards? I cannot find an way to accomplish this in the content of delivery in iBOT.
    Thank you.

    Hi,
    Yes, I can add them to a briefing book, but the clients that will receive it by e-mail should have the briefing book reader in order to view the contents. Is there any way to send the briefing book in a PDF format?
    Thank you.

  • How can i join more than 20 tables which contains more than 5 lacks records

    how can i join more than 20 tables which contains more than 5 lacks records

    If you're trying to join 20 tables I would check:
    - Are all the joins necessary. It's easy sometimes to just join to another table because you're unsure as to whether it's required.
    - What sort of application is it? 20 joins seems a lot to me. Are you trying to achieve too much with one query? Is it possible to break the problem down?
    - If it is necessary to join so many tables then force the use of hash joins in the query, especially if you're processing a lot of data and want the best throughput. If you want a quicker response, this will not be a appropriate.

  • Sequence contains more than one element error in MVC 5

    I created some models, added the migration and then did an update database operation, though at my last update database operation I got the error message saying:
        Sequence contains more than one element
    Below you can find my migration configuration:
            context.Categories.AddOrUpdate(p => p.CategoryName,
                new Category
                    CategoryName = "Sport"
                new Category
                    CategoryName = "Music"
            context.Subcategories.AddOrUpdate(p => p.SubcategoryName,
                new Subcategory
                    SubcategoryName = "Football"
                new Subcategory
                    SubcategoryName = "Basketball"
                new Subcategory
                    SubcategoryName = "Piano"
                new Subcategory
                    SubcategoryName = "Violin"
            context.Services.AddOrUpdate(p => p.ServiceType,
                new Service
                    ServiceType = "Football player",
                    Category = { CategoryName = "Sport" },
                    Subcategory = { SubcategoryName = "Football" }
                new Service 
                    ServiceType = "Piano lessons",
                    Category = { CategoryName = "Music" },
                    Subcategory = { SubcategoryName = "Piano" }
    The problem occurs with when I add new Services. I already have categories and subcategories, and if I do like Category = new Category { CategoryName = "Music" } then it works but I get Music entry twice in my database (for this example). I want to
    use the already added categories and subcategories. Below also you can find my models definitions.
    public class Category
        [Key]
        public int CategoryID { get; set; }
        public string CategoryName { get; set; }
    // Subcategory is defined the same way...
    public class Service
        public int ServiceID { get; set; }
        public string ServiceType { get; set; }
        public virtual Category Category { get; set; }
        public virtual Subcategory Subcategory { get; set; }
    }

    After reading the article in the link that you have provided, I did the following changes in my models, and created controllers for each of them using Entity Framework, then I created a migration and named it InitialServices. Afterwards, I added a few
    entries in my Configuration.cs file and when I typed Update-Database, I got an error message in package manager saying "RenameIndexOperation", which is marked with red. Below you can find my changed models and my Configuration.cs file, along with the migration
    file created automatically.
    Category.cs:
        public class Category
            [Key]
            public int CategoryID { get; set; }
            public string CategoryName { get; set; }
            public virtual ICollection<Subcategory> Subcategories { get; set; }
    Subcategory.cs:
        public class Subcategory
            [Key]
            public int SubcategoryID { get; set; }
            public string SubcategoryName { get; set; }
            [ForeignKey("Category")]
            public int CategoryID { get; set; }
            public virtual Category Category { get; set; }
            public virtual ICollection<Service> Services { get; set; }
    Service.cs:
        public class Service
            [Key]
            public int ServiceID { get; set; }
            [Required]
            [Display(Name="Service type")]
            public string ServiceType { get; set; }
            [ForeignKey("Subcategory")]
            public int SubcategoryID { get; set; }
            public int Count { get; set; }
            public virtual Subcategory Subcategory { get; set; }
    _InitialServices.cs:
        public partial class InitialServices : DbMigration
            public override void Up()
                DropForeignKey("dbo.Services", "Category_CategoryID", "dbo.Categories");
                DropIndex("dbo.Services", new[] { "Category_CategoryID" });
                RenameColumn(table: "dbo.Services", name: "Subcategory_SubcategoryID", newName: "SubcategoryID");
                RenameIndex(table: "dbo.Services", name: "IX_Subcategory_SubcategoryID", newName: "IX_SubcategoryID");
                AddColumn("dbo.Subcategories", "CategoryID", c => c.Int(nullable: false));
                CreateIndex("dbo.Subcategories", "CategoryID");
                AddForeignKey("dbo.Subcategories", "CategoryID", "dbo.Categories", "CategoryID", cascadeDelete: true);
                DropColumn("dbo.Services", "Category_CategoryID");
            public override void Down()
                AddColumn("dbo.Services", "Category_CategoryID", c => c.Int(nullable: false));
                DropForeignKey("dbo.Subcategories", "CategoryID", "dbo.Categories");
                DropIndex("dbo.Subcategories", new[] { "CategoryID" });
                DropColumn("dbo.Subcategories", "CategoryID");
                RenameIndex(table: "dbo.Services", name: "IX_SubcategoryID", newName: "IX_Subcategory_SubcategoryID");
                RenameColumn(table: "dbo.Services", name: "SubcategoryID", newName: "Subcategory_SubcategoryID");
                CreateIndex("dbo.Services", "Category_CategoryID");
                AddForeignKey("dbo.Services", "Category_CategoryID", "dbo.Categories", "CategoryID", cascadeDelete: true);
    Configuration.cs:
    protected override void Seed(Workfly.Models.ApplicationDbContext context)
                var categories = new List<Category>
                    new Category { CategoryName = "Sport" },
                    new Category { CategoryName = "Music" }
                categories.ForEach(c => context.Categories.AddOrUpdate(p => p.CategoryName, c));
                context.SaveChanges();
                var subcategories = new List<Subcategory>
                    new Subcategory { SubcategoryName = "Football", CategoryID = categories.Single(c => c.CategoryName == "Sport").CategoryID },
                    new Subcategory { SubcategoryName = "Basketball", CategoryID = categories.Single(c => c.CategoryName == "Sport").CategoryID },
                    new Subcategory { SubcategoryName = "Piano", CategoryID = categories.Single(c => c.CategoryName == "Music").CategoryID },
                    new Subcategory { SubcategoryName = "Violin", CategoryID = categories.Single(c => c.CategoryName == "Music").CategoryID }
                foreach (Subcategory s in subcategories)
                    var subcategoriesInDB = context.Subcategories.Where(c => c.Category.CategoryID == s.CategoryID).SingleOrDefault();
                    if (subcategoriesInDB == null)
                        context.Subcategories.Add(s);
                context.SaveChanges();
                var services = new List<Service>
                    new Service { ServiceType = "Football coach", SubcategoryID = subcategories.Single(s => s.SubcategoryName == "Football").SubcategoryID },
                    new Service { ServiceType = "Piano lessons", SubcategoryID = subcategories.Single(s => s.SubcategoryName == "Music").SubcategoryID }
                foreach (Service s in services)
                    var servicesInDB = context.Services.Where(t => t.Subcategory.SubcategoryID == s.SubcategoryID).SingleOrDefault();
                    if (servicesInDB == null)
                        context.Services.Add(s);
                context.SaveChanges();
            }

  • The "Measures" dimension contains more than one hierarchy... Collation issue

    It appears that an Excel query pased through to SSAS has a "measures" with lowercase "m" when analysis services expects an uppercase "M" so it should look like "Measures". Is there a fix in excel to allow
    the correct passing of "Measures" member name to the cube?
    BTW, I have NO Calculations in the cube.
    In excel 2013 when I pivot with a pivot table connected to a case sensitive collation (non default config)
    cube and perform a filter by "Keep only Selected Items" I get the error "The 'Measures' dimension contains more than one hierarchy, therefore the hierarchy must be explicity specified".
    When I revert back to server wide setting to case insensitive, and I preform the exact same pivoting function it works without error. The problem appears to be that excel does not understand the server collation setting.
    When I run SQL Server Profilier I narrowed down the MDX statement run in Excel that gives me an error to this:
    with
    member measures.__XlItemPath as
    Generate(
    Ascendants([Employee].[Location Code].currentmember),
    [Employee].[Location Code].currentmember.unique_name,
    "|__XLPATHSEP__|"
    member measures.__XlSiblingCount as
    Generate(
    Ascendants([Employee].[Location Code].currentmember),
    AddCalculatedMembers([Employee].[Location Code].currentmember.siblings).count,
    "|__XLPATHSEP__|"
    member measures.__XlChildCount as
    AddCalculatedMembers([Employee].[Location Code].currentmember.children).count
    select { measures.__XlItemPath, measures.__XlSiblingCount, measures.__XlChildCount } on columns,
    [Employee].[Location Code].&[01W]
    dimension properties MEMBER_TYPE
    on rows
    from [Metrics]
    cell properties value
    Playing around with the query I discovered that if I capitalize the first letter of the "with measures" member, the statement works.
    with
    member Measures.__XlItemPath as
    Generate(
    Ascendants([Employee].[Location Code].currentmember),
    [Employee].[Location Code].currentmember.unique_name,
    "|__XLPATHSEP__|"
    member Measures.__XlSiblingCount as
    Generate(
    Ascendants([Employee].[Location Code].currentmember),
    AddCalculatedMembers([Employee].[Location Code].currentmember.siblings).count,
    "|__XLPATHSEP__|"
    member Measures.__XlChildCount as
    AddCalculatedMembers([Employee].[Location Code].currentmember.children).count
    select { measures.__XlItemPath, measures.__XlSiblingCount, measures.__XlChildCount } on columns,
    [Employee].[Location Code].&[01W]
    dimension properties MEMBER_TYPE
    on rows
    from [Metrics]
    cell properties value
    Also, I realise that I could change the collation on just the cube itself to case insenstive to get this to work, but I really don't want to do an impact analysis of running a mixed collation environment.
    So, my question is: Is there an excel fix that will allow me to run a case sensitve cube and allow me to click on filter and filter by "keep only selected items" or "Hide selected Items"? All other filtering works, it's only those two
    filtering options error for me.
    Here are the versions I'm working with:
    Excel 2013 (15.0.4535.1507) MSO(15.0.4551.1007) 32-bit Part of Microsoft Office Professional Plus 2013
    Microsoft Analysis Server Enterprise 2012 11.0.3000.0
    Any help would be appreciated. Thank you in advance!

    Hi, i assume this logic is for Dimension formula?
    If you have multiple hierarchy like ParentH1 and ParentH2 you should use FormulaH1 and FormulaH2 and not FORMULA column.
    in FORMULAH1
    [Account.H1].[Account_A] / [Account.H1].[Account_B]

  • Sequence contains more than one matching element

    Hi
    I have checked all threads and none answers my issue.
    I am trying to drop a user and am following this blog:
    http://sanderstechnology.com/2013/login-and-user-management-in-sql-azure/12826/#.U46Hh_mSweo
    Below is a series of screen-shots of the issue. Please assist. Thanks, Mark.
    Mark

    Hello,
    Based on your descritpion, you create a SQL database with WEB edition and try to connect to the MASTER database from Windows Azure Management portal. But it is failed with "Sequence contains more than one matching element" occasionally.
    Due to the uncertainty and randomness factors, it requires higher level troubleshooting methods.I suggest you contact Windows Azure support team by creating a support ticket at 
    http://www.windowsazure.com/en-us/support/contact if you recevied this error again.
    As for drop login, it may caused by the premssion. In SQL databae, only server-level principal login (created by the provisioning process) or the credentials of an existing member of the "loginmanager" database role can manage logins. If you are not use
    a server-level principal login, please ask the adminstrator add the login to loginmanager databaserole:
    EXEC sp_addrolemember 'loginmanager', 'login-you-used';
    Reference:http://msdn.microsoft.com/en-us/library/azure/ee336235.aspx
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Source system contain more than one fold then they are not processed

    when a mail box for a source system contain more than one fold they are not necessarily manage in the right sequence order (FIFO)
    The folders stand for material update flows.

    Hi   XI   Experts,
    I have a problem with source directory of the File Adapter,
    XI system is not reading the files from the source directory in the sequence when there is more than one folder .
    See the below description regarding the same.
    "when a mail box for a source system contain more than one fold they are not necessarily manage in the right sequence order (FIFO)
    The folders stand for material update flows."
    Please update me as soon as possible.
    Regards
    sreenivasulu

  • Query to retrieve the records which have more than one assignment_id

    Hello,
    I am trying to write a query to retrieve all the records from the table per_all_assignments_f which has more than one different assignment_id for each person_id. Below is the query i have written but this retrieves the records even if a person_id has duplicate assignment_id's but i need records which have more than one assignement_id with no duplicates for each person_id
    select assignment_id ,person_id, assignment_id
    From per_all_assignments_f
    having count(assignment_id) >1
    group by person_id, assignment_id
    Thank You.
    PK

    Maybe something like this?
    select *
    From   per_all_assignments_f f1
    where  exists (select 1
                   from   per_all_assignments_f f2
                   where  f2.person_id = f1.person_id
                   and    f2.assignment_id != f1.assignment_id
                  );Edited by: SomeoneElse on May 7, 2010 2:23 PM
    (you can add a DISTINCT to the outer query if you need to)

  • New iTunes on Mac doesn't allow me anymore to select all songs and 'Get info' to adjust the volume, like the old one. It says"your selection contains more than one type of media". They are all songs! Help please!

    New iTunes on Mac doesn't allow me anymore to select all songs and 'Get info' to adjust the volume, like the old one. It says"your selection contains more than one type of media". They are all songs! Help please!

    Raya Alfa wrote:
    ...there are some that are mp3 and it will be extremely hard to pick them from the lot.
    Not true. Select "Kind" as a sort category by right clicking the headings
    Then click to sort by Kind
    If your Import Settings are for Apple Lossless, AIFF, AAC or whatever the majority of your files are, convert MP3s to that file type.
    I've presently got 17,000+ files in my library, and they're ALL MP3 or M4B(Audiobooks). If they weren't when I got them, I converted them.  Saves a LOT of hassels with just this type of situation. Besides I have two non Apple MP3 players that WON'T work with other file types besides MP3 so, EVERYTHING I have has to be MP3.

  • Light Switch 2011 "C#" How to allow filter which take more than one entry to take * and show all other entries?

    Dear All,
    I have created the following code which extended my filter functionality and allowed a to take more than one entry (Comma have to be inserted after
    each entry). 
    For example:
    "Country Filter" can take ----> Germany,Egypt,Holand<o:p></o:p>
    "City Filter " can take ---------> Berlin,Münster
    if (Country_PAR != null)
    String[] Country_Array = Country_PAR.Split(new Char[] { ','});
    query = from p in query where Country_Array.Contains(p.Hotel_Country) select p;
    if (City_PAR != null)
    String[] City_Array = City_PAR.Split(new Char[] {','});
    query = from p in query where City_Array.Contains(p.Hotel_City) select p;
    Now want to extend it more and say something like:
    If  * is included ---- > Give me all entries        
         ex. Ge*     This will give me everything which starts with Ge
    If <> is entred -----> Give me entries which are not equal to a certain entry
         ex. Country Filter = <> Germany          give me all other entries except Germany
    Thanks alot,
    Zayed

    Thanks your reply. I mean no one know my feeling. except if the new car is your. If Geek Squad can't install it. Just let me know and go. right? I ask many time? Are you ok to finish? He said yes. First time fail after 5 hours long wait and tow my car to Toyota repair. Second time said only take 20 to 30 minutes to program the key. but fail again after about 4 hours 30 minutes long wait and head light is not automatic turn on at night. I have to take a day off drive to Toyota repair. My time is money. wait there more than 10 hours and done nothing. 5 days no car and take the subway Bus and long walk. How do I feel? I m the customer. if without the customer. How you get pay? Geek Squad use my remote start and alarm and I can't return it. I loss time and money. My new car has a repair record. That is what Bestbuy want to do for the customer. Geek Squad work for Bestbuy. right? You are not just loss one customer. You will loss more and more than the remote start alarm cost. Bestbuy will not know? How come just 200$ remote start alarm and the 50$ module. Bestbuy don't want to reimburse. I m not tell you to pay me 5 days for rental car. why don't just want a happy ending? Bestbuy is big company. I m very small. 250$ it cost Bestbuy nothing. You can't let the customer loss money because you. right?

  • Apply validators on TextInput which has more than one states

    Can I apply validator on TextInput component that has
    multiple states? For example, the base state of the TextInput is
    for email and another state is for social security
    number.

    Hi Maxium
    the error that u have goti ndicates that u have set the margins more than the permisable range plzl lowe  rit down as per the question of printing document on more than one page is carried out it is automatic because the data to be printed bust be carried out from the form with the help of database structure free text formula or varibale that are the features of pld however if the data goes beyond one page it would automaticaly print in next page u dont need to put pring page layout as 10
    Hope that would suffice your need.
    Regards,
    Manish Malik

  • In one sessions.xml file can i include more than one project

    Hi Folks,
    I got a requirement to create more projects by using the same sessions.xml file if it is possible please let me know.
    thanks
    Venkatram R. Veerareddy

    Hi Venkatram,
    It is possible to have more than one session in sessions.xml. Have the sessions.xml like this
    <toplink-configuration>
    <session>
    <name>Session1</name>
    </session>
    <session>
    <name>Session2</name>
    </session>
    </toplink-configuration>
    Use session broker for handling both the sessions simultaneously. For more details see examples in toplink under directory broker.

  • Search UIBB which has more than one analytical queries specified

    Hi,
    Has anyone used Search UIBB and specified more than one analytical queries? I have one search UIBB as a Master UIBB of Tabbed UIBB and two tabs. In each tab there is one Analytical List UIBB which has its own query. Both queries have input variables. Do you know if these variables should have the same names in order for the search UIBB to work?
    Best regards,
    Desislava

    Hi,
    I think I got the same problem! I tried to combine all the tables in a new view and create a query on this view.
    But when I search and my result has to be one record from the main table, I get this record more than once.
    I tried to use distinct but that does not work because each column has a different value, so the record is never the same.
    I hope someone can help us!

  • BUG?  ViewObject contains more than one Row with equal Key objects

    JDeveloper 10.1.2.1 build 1913
    JClient app
    aView
    ----bView
    --------cView
    ------------dView
    BEFORE:
    cView's detail row set contains two dViewRowImpl rows, as expected:
    row 0: key = 100
    row 1: key = 101
    ACTION:
    An attribute, X, in dView is modified by the user, which results in a call to setX in dViewRowImpl.
    In setX we have:
    1) setAttributeInternal for X
    2) transaction.postChanges
    3) a call to a procedure in the database to update dependent fields in the same row
    4) clearEntityCache on the primary entity of dView
    5) setAttributeInternal on a calculated attribute
    AFTER:
    cView's detail row set contains three dViewRowImpl rows, two of which have the same primary key:
    actual:
    row 0: key = 100
    row 1: key = 101
    row 2: key = 101
    expected (no change, and unique primary keys):
    row 0: key = 100
    row 1: key = 101
    Any clues appreciated.

    If your procedure modifies only the current row, or predetermined rows, you can
    // see Row.refresh
    transaction.postChanges();
    // refresh current row
    refresh(REFRESH_WITH_DB_FORGET_CHANGES);
    // or iterate over procedure-modified rows and refresh eachas an alternative to clearEntityCache. This alternative has the major benefit of not resetting currency in all ViewObjects touched by the cleared Entity. Luckily, this alternative has avoided the problem for us. If your code cannot predict which rows will be updated by your procedure, then you're still in trouble since JBO is apparently more than willing to insert duplicate Row objects into a ViewObject's RowSet after a clearEntityCache.

  • How could I get the pdf-file output to contain more than one page from certain homepages

    2011-08-22
    I have been using Firefox for many years now. I like this browser better than Safari. However. I have a problem when I have connected to a homepage over the web and want to write the content out to a pfd-file. The pdf-file does sometimes contain only one page. The material is good enough for two or more pages of output. I have checked that using Safari browser. I´d like to continue using Firefox so please tell med what to do!
    Göran Stille
    [email protected]
    Computer Mac Powerbook G4
    Processor 1.67 GHz PowerPC G4
    Operative system OSX 10.5.8
    Firefox version 3.6.2

    excellent.
    quiteimposing does exactly what i wanted.
    thanks a lot.
    now only problem is that demo version prints large x mark on pages
    is there any free plugins available or any other way to get rid of x mark.
    thanks in advance.

Maybe you are looking for