Parse XML Schema File?

Dear Sun Developer Network,
I suppose maybe I should start at the beginning.
Can anyone outline the first few steps involved in parsing an XML schema file into a traversable data structure in Java?
I'd like to get a get a discussion started here about this, because I have some questions about the process as I currently understand it, and the more advanced (i'm supposing they're more advanced) questions that I've been asking in the past have gone completely unanswered in this forum. So perhaps, starting from the beginning, and working through to the difficulties I'm encountering would be a better approach to solving those issues.
Thank you,
Nels

>
Many thanks for your reply! My next question is,
s, if parsing an XML schema file can be done with a
SAX or dom parser, then why has Sun bothered to
develop the JAXB api? What is the difference?
Hi Nels,
SAX and DOM are technologies for parsing and JAXB is a technology for databinding. They are 2 different technologies.
Parsing gives you acess to raw xml
DataBinding does the parsing and goes one step ahed and loads the data from xml to java objects. It is a higher level of abstraction over parsing
schema is a specification which helps to define the rules for a valid xml document. It also happens to be xml. DTD is a kind of limited schema which is non xml.
hope you got the diffrence.
ps: did you try the -J-Xmx switch with javac to resolve yhe OutOfMemory exception I suggested in your previous post
Regards,
Rajagopal

Similar Messages

  • XML Schema file in data definition

    Hi,
    I am creating a custom RTF template for a seeded data definition in the eBusiness Suite. The data definition has an XML Schema file loaded however this does not include all the data required for the template. Running the report to just generate the XML (i.e. no template) I can see that the additional data is available at this level just not included in the XSD.
    I have built the template including the additional elements from the XML and expected to have to create a custom data definition as well to add the additional elements to the XSD. However the template is working against the seeded definition and successfully picking up the elements that are not included in the XSD.
    Has anybody else come across this situation? And are there any potential issues? I could create a custom data definition as well to load an amended XSD but this would be a more invasive change as it would involve end dating the seeded data definition which I would prefer not to do. The report is not being generated from a concurrent request so I cannot just create a custom request and leave the seeded report untouched.
    Thanks,
    Sarah

    The XML Schema is only required if you are using a PDF template (the template file itself is PDF) with field-mapping. For other template types the schema is optional.
    The XML Schema is used to define a "class" of XML documents, so to speak. The define the semantics and structure of the XML documents more thoroughly.
    If you have closely related reports, you could use a single schema to standardize (in a sense) the XML to be output from the class of related reports. In that case you could have a single schema file uploaded to multiple reports/data-definitions.
    The W3C has good documentation on XML Schema.
    If you want to see samples, you can use tools such as dtd2xs to create sample schemas from your DTD.

  • Problem in parsing XML Schema

    I am trying to parse XML Schema using XSOM. The Schema has <xs:include>s
    e.g. I have first.xsd which includes second.xsd and second.xsd again includes third.xsd.
    First.xsd
    <xs:include schemaLocation="../Second.xsd">....
    Second.xsd
    <xs:include schemaLocation="Third.xsd">....
    When I parse "First.xsd" parser passes the correct path "C:/XSDSchema/Second.xsd"(First.xsd resides in "C:/XSDSchema/Schema/") to the EntityResolver's resolveEntity method. But for Second.xsd it passes "Third.xsd" only (Third.xsd resides in "C:/XSDSchema/" ) .
    Any Idea ?????

    Here is a screenshort of the part of my workflow:
    In the mappings of the "Set Value" activity, I have one line with those properties:
    Location: /process_data/bonusValidationForm/object/data/xdp/datasets/data/BonusValidationForm/buMan agerID
    Expression: /process_data/currentUser/object/@userId
    Where:
    bonusValidationForm is a process variable of my workflow that point my xdp form
    buManagerID is the textfield I want to set
    currentUser is a process variable (type User) that was well setted by the task Find BU Manager

  • Error parsing xml licence file

    I just get a weblogic server 4.5.1 evaluation version CD. I get this errorweblogic.common.LicenseCorruptException: Error parsing XML license file. [java.util.EmptyStackException        at java.util.Stack.peek(Stack.java:70)        at weblogic.xml.license.Handler.characters(Handler.java:63)        at weblogic.xml.license.BaseParser.sendCharacters(BaseParser.java:120)        at weblogic.xml.license.BaseParser.eatComment(Compiled Code)        at weblogic.xml.license.WEBLOGICLICENSESParser.parse(Compiled Code)        at weblogic.xml.license.BaseParser.parse(Compiled Code)        at weblogic.common.internal.LicenseInfo.loadXML(Compiled Code)        at weblogic.common.internal.ServerUtil.initLogging(Compiled Code)        at weblogic.common.internal.ServerUtil.initLogging(ServerUtil.java:82)        at weblogic.common.internal.ServerUtil.<clinit>(ServerUtil.java:75)        at weblogic.t3.srvr.T3Srvr.checkAccess(T3Srvr.java:851)        at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:790)        at weblogic.Server.startServerDynamically(Server.java:87)        at weblogic.Server.main(Server.java:61)        at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)        at java.lang.Thread.run(Thread.java:466)]I also have installed the jdk1.3can anyone tell me the cause ? thanks a lot !

    Is there anybody can help. It is urgent. I need to setup the development server ASAP.

  • Error parsing XML license file

    i need assistance while installing WebLogic 5.1 Evaluation version on my NT Server and i also registered and downloaded the key for that but still my server is not functioning as it gives me a license file error in java.....
    The error is as follows....
    *****Start********
    weblogic.common.LicenseCorruptException: Error parsing XML license file. [java.util.EmptyStackException
    at java.util.Stack.peek(Stack.java, Compiled Code)
    at java.lang.Exception.<init>(Exception.java, Compiled Code)
    at java.lang.RuntimeException.<init>(RuntimeException.java, Compiled Code)
    at java.util.EmptyStackException.<init>(EmptyStackException.java, Compiled Code)
    at java.util.Stack.peek(Stack.java, Compiled Code)
    at weblogic.xml.license.Handler.characters(Handler.java:63)
    at weblogic.xml.license.BaseParser.sendCharacters(BaseParser.java:120)
    at weblogic.xml.license.BaseParser.eatComment(BaseParser.java, Compiled Code)
    at weblogic.xml.license.WEBLOGICLICENSESParser.parse(WEBLOGICLICENSESParser.java, Compiled Code)
    at weblogic.xml.license.BaseParser.parse(BaseParser.java, Compiled Code)
    at weblogic.common.internal.LicenseInfo.loadXML(LicenseInfo.java, Compiled Code)
    at weblogic.common.internal.ServerUtil.initLogging(ServerUtil.java, Compiled Code)
    at weblogic.common.internal.ServerUtil.initLogging(ServerUtil.java:82)
    at weblogic.common.internal.ServerUtil.<clinit>(ServerUtil.java:75)
    at weblogic.t3.srvr.T3Srvr.checkAccess(T3Srvr.java:883)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:822)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    *****End******
    The License file i downloaded was from the website as i was told to do so...
    I would really appreaciate your help in the above error to solve my problem as i am trying to learn weblogic and am stuck at the very bigenning..
    Thanx a lot...

    If you can, upgrade your jdbcKona/MSSQLserver4 driver to
    at least version 4.5.1.2.
    Branka Billante wrote:
    >
    I am trying to debug my code in VisualCafe and I get the following
    error:
    java.sql.SQLException: java.sql.SQLException: License Problem:
    The following applies to holders of standard BEA/WebXpress licenses:
    weblogic.d.h: Error parsing XML license file. [java.lang.Exception:
    java.lang.ClassCastException: weblogic.xml.license.WEBLOGICLICENSES
    at weblogic.i.g.a(Unknown Source)
    at weblogic.i.b.i(Unknown Source)
    I am running the exect code in a non-debug enviroment and it works
    fine. Does anybody know what the problem could be?
    Thanks,
    Branka Billante
    Moai Technologies, Inc.--
    Chuck Karish BEA Systems
    [email protected] San Francisco, CA
    (415) 317-0182 (cell) (415) 402-7692

  • Location of XML schema file (XSD)

    Hi! Previously a XML schema was imported into the Console Manager and used for the import of data into the repository. Now we have made some changes and I would like to change the XML schema file. However, I would like to get a copy of the previously import schema (XSD) file from the system. Does anyone know where this file can possibly be held? Any way for us to extract this file to update?
    Cheers!
    SF

    Hi SF,
    the XSD is actually stored in MDM's database. One option to export is using the transport schema mechanism in MDM console - asuming that you're on MDM 7.1. If so, right-click on your repository in MDM console and choose Transport -> Export Repository Schema in the context menu. Doing this you'll get a huge XML file describing your repository. Open this XML in a suitable editor (e.g. IE, Wordpad, XML Spy, and so on) and check the file contents. Somewhere inside you'll find a section for XML Schemas and your XSD.
    If you are on 5.5, the only option is accessing the DB directly...
    Best regards
    Michael

  • Memory issue loading XML schema files

    Hi,
    I have an application that a startup reads available XML schema files from a folder and creates Validator objects that are put into a HashMap.
    I'm running into problems creating validation schema objects when the file size of the schema is just over 30kB in size.
    The following error message is given when testing with the "large" schemas:
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
         at com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSet.<init>(CMStateSet.java:100)
         at com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode.firstPos(CMNode.java:96)
         at com.sun.org.apache.xerces.internal.impl.xs.models.XSCMBinOp.calcFirstPos(XSCMBinOp.java:136)
         at com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode.firstPos(CMNode.java:97)
         at com.sun.org.apache.xerces.internal.impl.xs.XSComplexTypeDecl.getContentModel(XSComplexTypeDecl.java:185)
         at com.sun.org.apache.xerces.internal.impl.xs.XSConstraints.fullSchemaChecking(XSConstraints.java:457)
         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:530)
         at com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl.newSchema(SchemaFactoryImpl.java:206)
         at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:489)
    The smaller 1-10kB schemas can be stored without any problem regardless of the number I test (+1000).
    The problem occurs as soon as it handles these larger schemas in the source directory. Even only one 30kB schema is enough to consume the all memory.
    Below is the code uesd for creating the validation objects
    for(int i=0;i<files.length;i++){
        SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
        Source schemaFile = new StreamSource(files);
    schema = factory.newSchema(schemaFile); // Here is where the process fails
    Validator validator = schema.newValidator();
    hm.put(documentType, validator); //hm is the HashMap used as placeholder for Validator objects
    Regards,
    Håkan
    Edited by: dezer on Jun 2, 2010 5:04 AM
    Edited by: dezer on Jun 2, 2010 5:08 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Welcome to the Sun forums.
    dezer wrote:
    ..Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    The smaller 1-10kB schemas can be stored without any problem regardless of the number I test (+1000).
    The problem occurs as soon as it handles these larger schemas in the source directory. Even only one 30kB schema is enough to consume the all memory.Are you certain that only one schema is involved? How does the code tell how many schemas there are?
    Below is the code uesd for creating the validation objects
    for(int i=0;i<files.length;i++){
    SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Source schemaFile = new StreamSource(files);
    schema = factory.newSchema(schemaFile); // Here is where the process fails
    Validator validator = schema.newValidator();
    hm.put(documentType, validator); //hm is the HashMap used as placeholder for Validator objects
    It would seem that if files.length is 10000, that would end up in around 30 times as much memory usage as for the 1000x10Kb schemas.

  • Parse XML Schema in Java

    Hi all.
    I need to parse an XML Schema and get the following information out of
    it:
    list of elements allowed in schema
    list of attributes for each element - which are required and which
    optional
    given an element name get elements that it can contain
    etc.
    Parsing with JDOM XPath seems to be complicated, because there are
    many ways to say something in schema, although it would be my
    preferred way.
    I also looked at JAXB and Xerces, but their APIs seem to be more
    complicated than I need.
    Is there a simple API for doing what I need?
    Thank you very much for help.
    Anna

    I looked at JAXB, the problem there is that as I understand it, it first converts the schema to a bunch of
    Java classes and then I need to compile them and use.
    I am looking for something more straightforward, that will allow me to load the schema and do queries, but I can't find anything.
    About Xerces - I can't find any good examples for querying schema, all are about validating xml
    with given schema, which is not what I need. This is also true about JAXP.
    I will be really glad if someone new some good links with examples of Xerces/JAXB used for
    querying schema.
    Hope that I don't ask for to much.
    Thank you very much for help.
    Anna

  • Writing own getLineNumber for parsing XML Schema

    I'm creating a XML Schema tool that checks that the user is creating valid Schema text.
    What I want to do is if the user has nested an element within a parent that it's not meant to. for example:
    <element name = "1">
            <element name = "2"/>
    </element>I want to return to the user the line number that the problem has occured.
    Because as far as the SAXParser is concerned this is valid XML I can't catch a SAXParseException.
    I'm using DOM to store the XML structure.
    Is there another way I can parse the document so that I can store the line number it orginially came from?
    Many thanks
    Alex

    Thats great, thanks.
    My problem now is how can I access the parent node using SAX().
    I have an arraylist for the parent of valid children, I need to check that the child node is infact one of these nodes.
    The problem being using SAX() I can access the previous node but if their are sibling nodes this will not identify the parent.
    This is the code I have so far:
    public class TestHandler extends DefaultHandler
         int lineNo = 1;
         public void startElement(String namespaceURI, String localname, String rawname, Attributes atts) throws SAXException
              SAX sax = new SAX();
              ArrayList nodes = sax.getSchemaNodes();
              for(int i = 0; i < nodes.size(); i++)
                   SchemaNode sn = (SchemaNode)nodes.get(i);
                   if(sn.getName().equals(localname))
                        System.out.println(sn.getName() + " = " + lineNo);
         public void endElement(String namespaceURI,String localname,String rawname) throws SAXException
         public void characters(char [] buf,int offset,int len)
              lineNo++;
    }Cheers Alex

  • Need Jsp file to parse xml dom file

    Hai SDN member,
    I am new to jsp. I am having one xml dom file with follwing content,
    My XMLDOM file
    <root>
    <dir>
    <dirname>Mydir1</dirname>
    <file>
    <filename>f1</filename>
    </file>
    <file>
    <filename>f2</filename>
    </file>
    <dir>
    <dirname>mydir2</dirname>
    <file>
    <filename>f1</filename>
    </file>
    </dir>
    </dir>
    </root>
    This is my XML dom file. I need a sample jsp file which shoule parse the above content.
    Pls help me

    JSTL has an <x:parse> element, doesn't it? At any rate "I need JSP code" sounds very much like a JSP question to me. There's a JSP forum.

  • Convert XML Schema Files (XSD) in HTML Forms

    Hi Everybody,
    I am new in the topic of the XML, XSD, the situation is the following , I have a few files .XSD and need to generate automatic html forms based on these .XSD to gather information and later convert them into XML files and save them in a repository and later a middleware will process this information.
    My first serious question if it is possible to develop the above mentioned task automatic? And the second one where you recommend to me to start investigating?.
    Thanks in advance for your answer
    Regards from Peru.

    There are products which do that already, I think. XMLSpy is one. Check that out to see if I'm right (not sure about the HTML part). Otherwise, welcome to the club of several hundred people who have asked basically that same question (only not with the HTML part) here.

  • Error in xml file validation to its relevant xml schema

    Hi All,
    I have 3 xml schema files files from which I generated a XML file using PLSQL.I am getting this error when I am trying to validate xml file to the schema:
    *'WMWROOT' NOT DECLARED*.Can anyone help me with this,I am including the main schema file and also the XML generated.
    XML Schem file:
    Itemdownload.xsd:
    <?xml version="1.0" encoding="utf-8" ?>
    <xs:schema id="ItemDownload" targetNamespace="http://www.manh.com/ILSNET/Interface" elementFormDefault="qualified"
         xmlns="http://www.manh.com/ILSNET/Interface" xmlns:xs="http://www.w3.org/2001/XMLSchema" version ="2007">
         <xs:include schemaLocation="Item.xsd" />
    <xs:element name="WMWROOT" nillable="true" type="WMWROOT" />
    <xs:complexType name="WMWROOT">
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="1" name="WMWDATA" type="WMWDATA" />
    </xs:sequence>
    </xs:complexType>
    <xs:element name="WMWDATA" nillable="true" type="WMWDATA"/>
    <xs:complexType name="WMWDATA">
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="1" name="Items" type="ItemList" />
    </xs:sequence>
    </xs:complexType>
    <xs:element name="Items" nillable="false" type="ItemList" />
    <xs:complexType name="ItemList">
    <xs:sequence>
    <xs:element minOccurs="1" maxOccurs="unbounded" name="Item" nillable="true" type="Item" />
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    The generated xml file is:
    <?xml version="1.0" ?>
    <WMWROOT>
    <WMWDATA>
    <Items>
    <Item><Action>Save</Action><UserDef8>10074</UserDef8><Active>Y</Active><AvailableOnWeb>N</AvailableOnWeb><Company>OU: ResMed Corp</Company><Cost>285.93</Cost><Desc>HP DESKJET PRINTER (EMBLA)</Desc><HarmCode><UserDef8>10074</UserDef8></HarmCode><Item>R145-794</Item><InventoryTracking>Y</InventoryTracking><LongDesc>HP DESKJET PRINTER (EMBLA)</LongDesc><LotControlled>Y</LotControlled><SerialNumTrackOutbound>7</SerialNumTrackOutbound><StorageTemplate><Template>Each</Template></StorageTemplate><XRefs><XRef><XRefItem></XRefItem></XRef></XRefs></Item>
    <Item><Action>Save</Action><UserDef8>80862</UserDef8><Active>Y</Active><AvailableOnWeb>N</AvailableOnWeb><Company>OU: ResMed Corp</Company><Cost>54.27</Cost><Desc>Mirage Micro Mask MED&amp;LG-Internet Pkg</Desc><HarmCode><UserDef8>80862</UserDef8></HarmCode><Item>16359</Item><InventoryTracking>Y</InventoryTracking><LongDesc>Mirage Micro Mask MED&amp;LG-Internet Pkg</LongDesc><LotControlled>Y</LotControlled><SerialNumTrackOutbound>N</SerialNumTrackOutbound><StorageTemplate><Template>Each</Template></StorageTemplate><XRefs><XRef><XRefItem>619498163597</XRefItem></XRef></XRefs></Item>
    </Items>
    </WMWDATA>
    </WMWROOT>
    I can provide you with the other 2 dependent schemas if needed.Please reply me!!

    Hey,
    As you said I tried keeping the namespace in xml file and it worked for a strange reason I am getting the same error again,I am not able to figure it why!!
    The error is:
    SAMPLEITEMDLFILE.xml:2,139: no declaration found for element 'WMWROOT'
    The XML document SAMPLEITEMDLFILE.xml is NOT valid (1 errors)
    This is the part of PL/SQL code thru which I am generating the xml:
    UTL_FILE.put_line (l_out_file, '<?xml version="1.0" ?>');
    UTL_FILE.put_line (l_out_file, '<WMWROOT');
    UTL_FILE.put_line (l_out_file, 'xmlns="http://www.manh.com/ILSNET/Interface"> ');
    UTL_FILE.put_line (l_out_file, '<WMWDATA>');
    UTL_FILE.put_line (l_out_file, '<Items>');
    I am validating it in stylus studio tool.
    Can you please help me thru this?

  • "Source file does not conform to XML Schema!" error at Import Server

    Dear SDN,
    When I run Import Server the import job stopped with the error "Source file does not conform to XML Schema!" in Log file. I used MDM SP05 Patch01 and HF1.
    Both of 2 Import Server have same problems. Of course it works in Import Manager.
    What do I have to check?
    Regards,
    Eric

    Hi Eric
    Just confirm this...
    One needs to load XML schema file in MDM and can be done by specifying this file in Port .
    Refer this link.
    http://help.sap.com/saphelp_mdm550/helpdata/en/fa/69b20ae0ae4b158a3f6d025b3d3847/content.htm
    Just make sure that corresponding XSD file is specified in the port
    Regards

  • Parse XML Inbound Interface file

    What are SAP best practices to parse XML Inbound Interface file?
    Currently we are parsing XML Inbound file with custom ABAP code, but it is somewhat cumbersome and requires maintenance.
    We do not any middleware that can parse file for us.
    Is there is any best way we can handle this without lot of maintenance..

    You can do it thro XLST..
    Check this links..
    Upload XML to internal table and vice versa in SAP 4.6C
    /people/r.eijpe/blog/2005/11/10/xml-dom-processing-in-abap-part-i--convert-an-abap-table-into-xml-file-using-sap-dom-approach
    YOu can do it through XLST. it is supported in ABAP from 4.7. you can create a XSLT, and read you XML, then CALL TRANSFORMATION to convert a XML into ABAP data structure.
    reference link:
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/9d7348389211d596a200a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/576670dca511d4990b00508b6b8b11/content.htm
    Reward each helpful answer.
    Raja T
    Message was edited by:
            Raja Thangamani

  • XML Schema validation issue

    Sorry for this post, because it really isn't a weblogic specific thing, but I can't
    find my answer
    anywhere else.
    I am attempting to validate my xml file using an XML Schema file. The XML
    Schema code looks like this:
    <xsd:element name="operatingSystem">
    <xsd:simpleType>
    <xsd:list>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:pattern value=".*(w|W)(I|i)(n|N).*"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:list>
    </xsd:simpleType>
    </xsd:element>
    The XML snippet looks like this:
    <operatingSystem>Windows 2000</operatingSystem>
    The error that I'm getting when using the SaxParser is the following:
    org.xml.sax.SAXException: cvc-pattern-valid: Value '2000' is not facet-v
    alid with respect to pattern '.*(w|W)(I|i)(n|N).*' for type 'null'.
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at SAXLocalNameCount.main(SAXLocalNameCount.java:272)
    Somehow, the validation breaks my one string in the operatingSystem tag into
    two separate strings to be validated. Can anybody give me some advice on
    what to do?
    Thanks in advance,
    Joel

    for some reason it does not like a space between "Windows" and "2000" any
    character other than space is fine...
    "Joel" <[email protected]> wrote in message
    news:3fa9468b$[email protected]..
    >
    Sorry for this post, because it really isn't a weblogic specific thing,but I can't
    find my answer
    anywhere else.
    I am attempting to validate my xml file using an XML Schema file. The XML
    Schema code looks like this:
    <xsd:element name="operatingSystem">
    <xsd:simpleType>
    <xsd:list>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:pattern value=".*(w|W)(I|i)(n|N).*"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:list>
    </xsd:simpleType>
    </xsd:element>
    The XML snippet looks like this:
    <operatingSystem>Windows 2000</operatingSystem>
    The error that I'm getting when using the SaxParser is the following:
    org.xml.sax.SAXException: cvc-pattern-valid: Value '2000' is not facet-v
    alid with respect to pattern '.*(w|W)(I|i)(n|N).*' for type 'null'.
    at org.apache.xerces.parsers.AbstractSAXParser.parse(UnknownSource)
    at SAXLocalNameCount.main(SAXLocalNameCount.java:272)
    Somehow, the validation breaks my one string in the operatingSystem taginto
    two separate strings to be validated. Can anybody give me some advice on
    what to do?
    Thanks in advance,
    Joel

Maybe you are looking for

  • Can't add tracks to existing playlists using iTunes for Windows11.1.5.5

    The tried and true method of right clicking a track, selecting "Add To Playlist" and selecting a playlist no longer works.  There's not response to the end of the process.  I'm just back in the original view of the library.  When I check the playlist

  • Workflow Test Data for BUS1010

    Hello experts, i have a problem when testing my new workflow. I use BUS1010 for setting up credit data for debitors. I set test data for all BO like BUS2032. There is the key field 12 character long so I enter 0000012092 for my salesorder and for KNA

  • Outlook contacts synced from Safari?

    I had checked my work email off of Outlooks web browser(I do not have this linked on my phone, I only check this email account via Safari) and it synced all my email contacts to my phone. How do I stop this? I really do not want or need these contact

  • CcBPM Steps in exception branch not executed

    Hi, I have different blocks with transformations and sending steps in a integration process. Each block has a defined exception branch to handle its corresponding exception type. However, when a mapping or receiver/interface determination error occur

  • Change the image date...

    hello ! I see only now that my D200 is set with 2005 date All the picture I have taken from January are with wrong dates. I have take a look to the forum and see that it is not supported by Aperture the change date option. Really I need to export all