Undigesting XML with Schema and Rules

We currently use a Digester with schema and rules files to digest an input XML and automatically build our Java objects. What I'd like to know is if there is a REVERSE process? Is there any class or utility that can take those Java objects and build an XML file?
Thanks,
Rich

Ask Microsoft why IE6 does not validate. Normally server-side developers do
not rely on a browser to validate XML against schema or DTD but validate XML
on the server. The same is true for XSLT transformations...
"Benoit Degreve" <[email protected]> wrote in message
news:aqnihv$l75$[email protected]..
Hi everybody,
I'm trying to validate an XML file with a schema but it doesn't seem to
work.
I open the XML file (that doesn't match the rules that are in the schema)
with a IE6, and there is no errors...
I have the same problem with a DTD (its reference is in the XML file like
shown in my book)...
Does the validation process have to be done by a specific application ?For
the schema ? For the DTD ? In other words, does IE6 make the validation
process automatically ?
Could someone help me ?

Similar Messages

  • Help on Time type 0903, Identifying Schema and Rule configuration?

    Can you please help me with the following:
    1. What is time type 0903?
    2. How to identify schema and rule configuration?
    3. How do I identify the number of employees affected in case I have to make a configuration change?
    Thanks

    Hello,
    1) Time type is identified according to what purpose it is used. Check table T555A for details on why it is used in your configuration.
    2) There is no configuration in schema and rule. Schema and rules has the programs in them.
    3)What configuration changes you are planning to do? Depending on this we can then try to identify who is affected.
    Hope this answers your questions.
    Let me know if you need more info on how to configure time management and write schema and rules.

  • HR schema and rule function overview

    Hello, is there any HR schema and rule function overview there ? I mean for example function VARST, ADDDB, HRS, PCY etc., which are under PE01 and PE02 available to use.
    Thanks.

    Schemas can be viewed and modified through pe01.  Schemas use functions and Personnel Calculation Rules (PCR).
    PCRs can be viewed and modified through pe02.  Time Evaluation PCRs use operations such as HRS, VARST, ADDDB and OUTWP.  Payroll Calculation PCRs use operations such as RTE, NUM, AMT, VARGB, ADDWT and OUTWP.
    Functions and Operations can be viewed through pe04, along with their parameters.
    Documentation on Functions and Operations can be viewed either in the schema or rule by selecting the object + F1 (or the ? icon), or through pe04.

  • Need help in Time Evaluation  schema and rules

    Hi Gurus,
      1)Can anyone help me with Time Evaluation schemas and rules with some example?
      2)Where can I find good documentation on Time Schemas and rules?
      3)what are the practical Interview questions I can expect on Time management?
    I would really appreciate If you could guide me on this..
    Thanks
    Avy

    https://forums.sdn.sap.com/click.jspa?searchID=15025266&messageID=5372783
    https://forums.sdn.sap.com/click.jspa?searchID=15025266&messageID=5903057

  • Simultaneous development on PY schemes and rules

    Dear Colleagues,
    I'm working for a big company in the IT department and I'm responsible for the process payroll. We have a lot of developers, who are working on payroll schemes and rules simultaneously for different demands and different go live dates.
    The problem we are faced with is, that after go live of a demand or a project, in which a scheme or a calculation rule is included, sometimes an error occurs because of transported statements in schemes or rules, which are not already finished within another demand.
    Example:
    Project A and Project B is working on the same payroll scheme. Project A has been finished and went live (including the statements of project B), but project B has not finished the development and some new calculation rules or operations are missing on the productive system. Because of this, an error occurs when running the payroll.
    Question:
    Is it possible to deal with payroll schemes and rules similar like workbench objects? That means, is there any functionality availiable to block those objects for editing, when it is already included in a transport request?
    Thanks in advance for any idea or help!
    Kindly Regards
    Adem Demir

    No problem. At some point you will have taken a copy of iteration one's project and added that to CVS as iteration two. From that point onwards your iteration two index would be the same as iteration one. If you added keywords to it, it would be the index to use for iteration two. The index for iteration one would be unaffected as it would still be in CVS in a separate project.
    Things only get a little more complicated if you are working on two different iterations of the project at the same time. If this is the case it may be better to finish one iteration first and copy the <projectname>.hhk file into the other project. Provided you haven't rrenamed or deleted any topics all references will be fine.

  • What are schemas and rules in HR?How it will use in HR?

    Hi HR Proff,
    What are schemas and rules in HR?How it will use in HR?
    Give some documentation on this?
    Early reply is highely appriciable.
    Regards,
    Chow.

    Refer this link -
    http://www.sd-solutions.com/documents/SDS_Payroll_Schemas.html
    Regards,
    Amit

  • Persisting unexplained errors when parsing XML with schema validation

    Hi,
    I am trying to parse an XML file including XML schema validation. When I validate my .xml and .xsd in NetBeans 5.5 beta, I get not error. When I parse my XML in Java, I systematically get the following errors no matter what I try:
    i) Document root element "SQL_STATEMENT_LIST", must match DOCTYPE root "null".
    ii) Document is invalid: no grammar found.
    The code I use is the following:
    try {
    Document document;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(true);
    factory.setNamespaceAware(true);
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( new File(PathToXml) );
    My XML is:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!-- Defining the SQL_STATEMENT_LIST element -->
    <xs:element name="SQL_STATEMENT_LIST" type= "SQL_STATEMENT_ITEM"/>
    <xs:complexType name="SQL_STATEMENT_ITEM">
    <xs:sequence>
    <xs:element name="SQL_SCRIPT" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <!-- Defining simple type ApplicationType with 3 possible values -->
    <xs:simpleType name="ApplicationType">
    <xs:restriction base="xs:string">
    <xs:enumeration value="DawningStreams"/>
    <xs:enumeration value="BaseResilience"/>
    <xs:enumeration value="BackBone"/>
    </xs:restriction>
    </xs:simpleType>
    <!-- Defining the SQL_SCRIPT element -->
    <xs:element name="SQL_SCRIPT" type= "SQL_STATEMENT"/>
    <xs:complexType name="SQL_STATEMENT">
    <xs:sequence>
    <xs:element name="NAME" type="xs:string"/>
    <xs:element name="TYPE" type="xs:string"/>
    <xs:element name="APPLICATION" type="ApplicationType"/>
    <xs:element name="SCRIPT" type="xs:string"/>
    <!-- Making sure the following element can occurs any number of times -->
    <xs:element name="FOLLOWS" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    and my XML is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Document : SQLStatements.xml
    Created on : 1 juillet 2006, 15:08
    Author : J�r�me Verstrynge
    Description:
    Purpose of the document follows.
    -->
    <SQL_STATEMENT_LIST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.dawningstreams.com/XML-Schemas/SQLStatements.xsd">
    <SQL_SCRIPT>
    <NAME>CREATE_PEERS_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE PEERS (
    PEER_ID           VARCHAR(20) NOT NULL,
    PEER_KNOWN_AS      VARCHAR(30) DEFAULT ' ' ,
    PRIMARY KEY ( PEER_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITIES_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE COMMUNITIES (
    COMMUNITY_ID VARCHAR(20) NOT NULL,
    COMMUNITY_KNOWN_AS VARCHAR(25) DEFAULT ' ',
    PRIMARY KEY ( COMMUNITY_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITY_MEMBERS_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE COMMUNITY_MEMBERS (
    COMMUNITY_ID VARCHAR(20) NOT NULL,
    PEER_ID VARCHAR(20) NOT NULL,
    PRIMARY KEY ( COMMUNITY_ID, PEER_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_PEER_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE PEERS IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_COMMUNITIES_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE COMMUNITIES IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_COMMUNITY_MEMBERS_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE COMMUNITY_MEMBERS IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITY_MEMBERS_VIEW</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE VIEW COMMUNITY_MEMBERS_VW AS
    SELECT P.PEER_ID, P.PEER_KNOWN_AS, C.COMMUNITY_ID, C.COMMUNITY_KNOWN_AS
    FROM PEERS P, COMMUNITIES C, COMMUNITY_MEMBERS CM
    WHERE P.PEER_ID = CM.PEER_ID
    AND C.COMMUNITY_ID = CM.COMMUNITY_ID
    </SCRIPT>
    <FOLLOWS>CREATE_PEERS_TABLE</FOLLOWS>
    <FOLLOWS>CREATE_COMMUNITIES_TABLE</FOLLOWS>
    </SQL_SCRIPT>
    </SQL_STATEMENT_LIST>
    Any ideas? Thanks !!!
    J�r�me Verstrynge

    Hi,
    I found the solution in the following post:
    Validate xml with DOM - no grammar found
    Sep 17, 2003 10:58 AM
    The solution is to add a line of code when parsing:
    try {
    Document document;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(true);
    factory.setNamespaceAware(true);
    factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( new File(PathToXml) );
    The errors are gone !!!
    J�r�me Verstrynge

  • Validate XML with Schema?

    So, according to Adobe...
    quote:
    Dreamweaver CS3 continues to support not only the creation
    and editing of XML and XSL files, but it also allows you to import
    DTDs and schemas and to validate XML documents.
    Does anyone know how to accomplish this task? Adobe's
    documentation on this topic seems be less current than their
    marketing material.
    I mean, I'm assuming from the way this is worded it means
    that you can "import DTDs and schemas and ... validate XML
    documents"
    with said schemas. Or is this just some shifty marketing
    trickery which really means you can import (i.e., open) a DTD or
    schema, and, as a completely unrelated task, you can "validate"
    your XML file - to the extent that Dreamweaver will tell you if you
    forgot to close a tag?

    I tried to move all the xml, class and xsd files in the same folder and it still didn't work...
    And I can't hard coded the xsd file on the document... so the only way is to set the xsd location inside the java codes... here's what I have:
    static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
    static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
    static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource";
    File xsdFile = new File("schema.xsd");
    saxParser.setProperty(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
    saxParser.setProperty(JAXP_SCHEMA_SOURCE, xsdFile);
    Please help... thx.

  • Problem parsing XML with schema when extracted from a jar file

    I am having a problem parsing XML with a schema, both of which are extracted from a jar file. I am using using ZipFile to get InputStream objects for the appropriate ZipEntry objects in the jar file. My XML is encrypted so I decrypt it to a temporary file. I am then attempting to parse the temporary file with the schema using DocumentBuilder.parse.
    I get the following exception:
    org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element '<root element name>'
    This was all working OK before I jarred everything (i.e. when I was using standalone files, rather than InputStreams retrieved from a jar).
    I have output the retrieved XML to a file and compared it with my original source and they are identical.
    I am baffled because the nature of the exception suggests that the schema has been read and parsed correctly but the XML file is not parsing against the schema.
    Any suggestions?
    The code is as follows:
      public void open(File input) throws IOException, CSLXMLException {
        InputStream schema = ZipFileHandler.getResourceAsStream("<jar file name>", "<schema resource name>");
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        DocumentBuilder builder = null;
        try {
          factory.setNamespaceAware(true);
          factory.setValidating(true);
          factory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
          factory.setAttribute(JAXP_SCHEMA_SOURCE, schema);
          builder = factory.newDocumentBuilder();
          builder.setErrorHandler(new CSLXMLParseHandler());
        } catch (Exception builderException) {
          throw new CSLXMLException("Error setting up SAX: " + builderException.toString());
        Document document = null;
        try {
          document = builder.parse(input);
        } catch (SAXException parseException) {
          throw new CSLXMLException(parseException.toString());
        }

    I was originally using getSystemResource, which worked fine until I jarred the application. The problem appears to be that resources returned from a jar file cannot be used in the same way as resources returned directly from the file system. You have to use the ZipFile class (or its JarFile subclass) to locate the ZipEntry in the jar file and then use ZipFile.getInputStream(ZipEntry) to convert this to an InputStream. I have seen example code where an InputStream is used for the JAXP_SCHEMA_SOURCE attribute but, for some reason, this did not work with the InputStream returned by ZipFile.getInputStream. Like you, I have also seen examples that use a URL but they appear to be URL's that point to a file not URL's that point to an entry in a jar file.
    Maybe there is another way around this but writing to a file works and I set use File.deleteOnExit() to ensure things are tidied afterwards.

  • IllegalArgumentException - error validating xml with schema

    I'm trying to validate an XML document using the following:
    JAXP 1.2
    Xerces 1.4.4
    JDK 1.4.1
    The xml is valid and I can confirm it with XML Spy when I point it to the schema definition. But, I get an IllegalArgumentException when I try to do it in my class.
    Here's the code...
    public static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
    public static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
    public static final String CIS_SCHEMA = "D:\\dev\\xml\\cis.xsd";
    public static final String[] SCHEMAS = { W3C_XML_SCHEMA, CIS_SCHEMA };
    private static DocumentBuilderFactory dbf;
    private static DocumentBuilder db;
    try {
         dbf.setNamespaceAware(true);
         dbf.setValidating(true);
         dbf.setAttribute(JAXP_SCHEMA_LANGUAGE, SCHEMAS);
    } (catch ...) {
    I get the following error:
    java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
    Any ideas?

    When I tried this with Xerces SAX, I got---
    org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
    Maybe Xerces has not implemented the schemaLanguage property.
    I have been successfully using Xerces-dependent properties to do validation:
    XMLReader parser = saxParser.getXMLReader();
    parser.setFeature( "http://xml.org/sax/features/validation", true);
    parser.setFeature( "http://xml.org/sax/features/namespaces", true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema", true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema-full-checking", true);
    if (noNamespaceSchemaLocation!=null) {
    parser.setProperty(
    "http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
    noNamespaceSchemaLocation);
    if (schemaLocation!=null) {
    parser.setProperty(
    "http://apache.org/xml/properties/schema/external-schemaLocation",
    schemaLocation);
    Also, as DrClap pointed out, for the schema location I use URIs.
    Please let me know if you got the jaxp schemaLocation property to work and how you did it.

  • Doubt about actions.xml with actions and roles

    Hi all,
    we are using a file like actions.xml for use them in Web Dynpro applications describing actions like:
    Is it possible to describe GROUPs assigning roles to them in the same XML instead of doing this using the useradmin application? We need to describe the roles in the XML because we are using around 25 ROLEs and 15 GROUPs.
    We appreciate if you can show us the complete description with an example for defining those GROUPs in the XML with all the tags and properties neccesary.
    Thanks in advance.
    Raú

    This feature is one of the hidden features SAP has for deploying stuff to NW. I'm sure there is a way for that, but its not documented, as the role extension is also not documented. I don't know why SAP is hidding this extremly useful features to normal developers. Especially for product development they are so usefull.
    Did you know, that its possible to deploy database content (not just tables!) with a special DC and an XML file in a special format? Just another example of hidden features in SAP Netweaver.

  • Tow fact assersion problem with BPEL and rule Engine

    I have imported two different xsd for buliding xml fact A and B. I have defined two RuleSetA and RuleSetB that RuleSetA only act on A and RuleSetB only act on B.
    When i call RuleSetA from BPEL decision Service it detects both of the facts A and B as a related fact to RuleSetA and expect that I use both of them for assertion and watch!!
    When this condition occure BPEL can not create ear file for that DecisionService!!
    I have set visible property of fact B to false in ruleAuthor and then Bpel detects only fact A in decisionService creation wizard. I have deployed BPEL but when i run it the DecisionService raise this error "undefined mypackage.B at line and coumn ..."
    It means that Rule engine expects that I should assert fact B too!! but it's irelevent.
    I have checked Decision Service deplyment descriptor files such as decisionservic.desc
    I can not find any name or setting for fact B in assertionlist setting.
    Please Help me what is the problem

    Hi,
    I'm not sure i understand what you're trying to achieve, but let me explain some of the rule engine and decision service concepts.
    The Oracle Rule Engine has the concept of a rule repository (that is what decision service considers a rule engine connection). A rule repository is a container of rule dictionaries (in the decision service world we use the term catalog for this).
    It is the rule dictionary you're selecting when creating a decision service partnerlink.
    So now a rule dictionary comprises of
    - A (common) datamodel.
    The datamodel comprises of the variables, fact types, functions
    - One or more rulesets
    All of the rulesets share the same datamodel of the rule dictionary, there doesn't exist
    a fact type model for a specific ruleset.
    Now, when you create a decision service partnerlink, we let you choose the ruleset
    that is being executed as part of the decision service. Then we query the rule dictionary
    data model for all the fact types that can potentially be used for executing the ruleset
    and assume that you have some knowledge about which fact types to assert and which
    one to query (watch).
    The thing is that the decision service partnerlink wizard doesn't have knowledge that
    your ruleset B uses fact type B and your ruleset A uses fact type A since both fact type
    A and B are part of the datamodel of the rule dictionary. So, when you choose to execute ruleset B, its in your responsibility to select appropriate fact types for assertion
    and query/watch (in this case you would choose fact type B for assertion, eventually the same or some other fact type for watch).
    Best Regards,
    Ralf

  • 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?

  • Partial Validation of XML with Schema

    This might be a quick question with a 'yes' or 'no' answer.
    What I have is a large XML file. It has various tags that are headers to keep groups of information together. I want to create an XML Schema that validates only one section of the overall larger XML file.
    First, is this possible to do, and if so, how exactly do I go about doing it?????
    Any code would be great, but if there I think it would be more useful to see how the XSL might be defined.
    <root>
    <section1>
    </section1>
    <section2>
    <!-- How would I define a W3C Schema to validate only this section? -->
    </section2>
    <section3>
    </section3>
    </root>
    Again, any help would be much appreciated?
    Thanks.
    Tom

    The existing schema validation doesn't let you do that... however you sure can get around it. I wrote some program that let you validate one field at a time, or one record at a time rather than whole document.
    I did so by using directly the DataTypeValidator inside org.apache.xerces.validators.*... it requires some coding, because you will have to write your own validator and some sort of filter... but you should look at the codes in that package to get a better understanding.

  • How to Parse XML with SAX and Retrieving the Information?

    Hiya!
    I have written this code in one of my classes:
    /**Parse XML File**/
              SAXParserFactory factory = SAXParserFactory.newInstance();
              GameContentHandler gameCH = new GameContentHandler();
              try
                   SAXParser saxParser = factory.newSAXParser();
                   saxParser.parse(recentFiles[0], gameCH);
              catch(javax.xml.parsers.ParserConfigurationException e)
                   e.printStackTrace();
              catch(java.io.IOException e)
                   e.printStackTrace();
              catch(org.xml.sax.SAXException e)
                   e.printStackTrace();
              /**Parse XML File**/
              games = gameCH.getGames();And here is the content handler:
    import java.util.ArrayList;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    class GameContentHandler extends DefaultHandler
         private ArrayList<Game> games = new ArrayList<Game>();
         public void startDocument()
              System.out.println("Start document.");
         public void endDocument()
              System.out.println("End document.");
         public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes atts) throws SAXException
         public void endElement(String namespaceURI, String localName, String qualifiedName) throws SAXException
         public void characters(char[] ch, int start, int length) throws SAXException
              /**for (int i = start; i < start+length; i++)
                   System.out.print(ch);
         public ArrayList<Game> getGames()
              return games;
    }And here is the xml i am trying to parse:<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
    <Database>
         <Name></Name>
         <Description></Description>
         <CurrentGameID></CurrentGameID>
         <Game>
              <gameID></gameID>
              <name></name>
              <publisher></publisher>
              <platform></platform>
              <type></type>
              <subtype></subtype>
              <genre></genre>
              <serial></serial>
              <prodReg></prodReg>
              <expantionFor></expantionFor>
              <relYear></relYear>
              <expantion></expantion>
              <picPath></picPath>
              <notes></notes>
              <discType></discType>
              <owner></owner>
              <location></location>
              <borrower></borrower>
              <numDiscs></numDiscs>
              <discSize></discSize>
              <locFrom></locFrom>
              <locTo></locTo>
              <onLoan></onLoan>
              <borrowed></borrowed>
              <manual></manual>
              <update></update>
              <mods></mods>
              <guide></guide>
              <walkthrough></walkthrough>
              <cheats></cheats>
              <savegame></savegame>
              <completed></completed>
         </Game>
    </Database>I have been trying for ages and just can't get the content handler class to extract a gameID and instantiate a Game to add to my ArrayList! How do I extract the information from my file?
    I have tried so many things in the startElement() method that I can't actually remember what I've tried and what I haven't! If you need to know, the Game class instantiates with asnew Game(int gameID)and the rest of the variables are public.
    Please help someone...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    OK, how's this?
    public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes atts) throws SAXException
              current = "";
         public void endElement(String namespaceURI, String localName, String qualifiedName) throws SAXException
              try
                   if(qualifiedName.equals("Game") || qualifiedName.equals("Database"))
                        {return;}
                   else if(qualifiedName.equals("gameID"))
                        {games.add(new Game(Integer.parseInt(current)));}
                   else if(qualifiedName.equals("name"))
                        {games.get(games.size()-1).name = current;}
                   else if(qualifiedName.equals("publisher"))
                        {games.get(games.size()-1).publisher = current;}
                   etc...
                   else
                        {System.out.println("ERROR - Qualified Name found in xml that does not exist as databse field: " + qualifiedName);}
              catch (Exception e) {} //Ignore
         public void characters(char[] ch, int start, int length) throws SAXException
              current += new String(ch, start, length);
         }

Maybe you are looking for

  • Can't set the correct key when converting imported audio to GB loops

    Hi, I feel I am really out of options for this one. I am trying to convert a couple of mp3 files to useful GarageBand loops. This is what I tried first: 1) drag the mp3 file on the timeline. 2) using a steady 4-beat, match the BPM settings to that it

  • Waking up after closing display (lid)

    The problem I am having with my waking PB only happens when I close the display. If I use the sleep command in the menu and don't close the display all the way, my PB stays asleep. If I close the lid all the way, it will eventually wake up and stay a

  • No Dimension Tool in Acrobat 8 or 9

    Hi there, Is it just me, or has the dimension tool dissapeared between versions 7 and 8? We are in a drafting office and use acrobat for all our drawing checking with the markup & comment tools. Out of all the markup and comment tools we use the dime

  • How to migrate a report .SQR to Oracle repots

    I have a problem, I need migrate a report .SQR to Oracle Reports, So, I don't know .SQR. one idea for this

  • Business Catalyst changes for the worst

    I just have to say that I am getting really frustrated with the changes going on with Business Catalyst at the moment. Here are a few things I am finding really frustrating. Does anyone else feel the same? What happened to the www.businesscatalyst.co