No priviliges to parse as schema

I have upgraded from 1.5 to 1.6. I checked the log and it shows no errors. I can access HTMLDB 1.6 without any problems however when I try to run any of the applications that I developed in 1.5 I get error "Error Workspace XXXXXX has no priviliges to parse as schema HR". When I go in as ADMIN and check the mapping between the workspace and the schema I can only see "invalid" schema. I tried to change the schema but when I select the LOV I only get few schemas displayed for selection. I can't see HR or OE schemas that do exist in my database and that I used for creating my applications.

165127,
From Part III, Administration, of the 1.6 User's Guide:
Understanding Oracle Default Schema Restrictions
When Oracle HTML DB installs, the Oracle HTML DB administrator does not have the ability to assign Oracle default schemas to workspaces. Default schemas (such as SYS, SYSTEM, and RMAN) are reserved by Oracle for various product features and for internal use. Access to a default schema can be a very powerful privilege. For example, a workspace with access to the default schema SYSTEM can run applications that parse as the SYSTEM user. In order for an Oracle HTML DB administrator to have the ability to assign Oracle default schemas, the database administrator (DBA) must explicitly grant the privilege. The DBA can remove this restriction and grant the privilege using SQL*Plus to run the HTMLDB_SITE_ADMIN_PRIVS.ALLOW procedure within the HTML DB engine schema. For example:  EXEC HTMLDB_SITE_ADMIN_PRIVS.ALLOW;The DBA can reimpose this restriction and revoke this privilege using the HTMLDB_SITE_ADMIN_PRIVS.RESTRICT procedure within the HTML DB engine schema. For example:  EXEC HTMLDB_SITE_ADMIN_PRIVS.RESTRICT;The DBA can determine the current status of the privilege using SQL*Plus to run the HTMLDB_SITE_ADMIN_PRIVS.REPORT procedure within the HTML DB engine schema. For example:  SET SERVEROUTPUT ON
  EXEC HTMLDB_SITE_ADMIN_PRIVS.REPORT;EXEC HTMLDB_SITE_ADMIN_PRIVS.REPORT returns number of rows in the wwv_flow_restrict_admin table. 0 rows means that the Oracle HTML DB administrator is restricted and may not assign Oracle default schemas to workspaces. One or more rows means that the Oracle HTML DB administrator may assign Oracle default schemas to workspaces.
Scott

Similar Messages

  • 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 Workspace 1655429769781901 has no privileges to parse as schema BUDGE

    Hi,
    i imported an old Application (HTMLDB 2.0) into the user old_schema (owner of the table) using SQL*Plus into APEX 4.0.2. After defining the security grup by the procedure set_security_group_id I couls import the old application.
    When I tried to start the application as ADMIN or as OLD_SCHEMA I got the error "Error Workspace 1655429769781901 has no privileges to parse as schema BUDGET_INT"
    How can I do the privileges of BUDCET_INT to user OLD_SCHEMA or what can I do to prevent this error
    Regards
    Siegwin

    Hello Siegwin,
    >> i imported an old Application (HTMLDB 2.0) into the user old_schema (owner of the table) using SQL*Plus
    Is there a reason to use SQL*Plus over the APEX built-in import mechanism? The latter allows you to import the exported application into any workspace (without the need to know its ID), use current or new application ID and define the parsing (owner) schema. All that without manually editing the exported file.
    If possible, this should be your preferred option.
    >> How can I do the privileges of BUDCET_INT to user OLD_SCHEMA or what can I do to prevent this error
    Is BUDGET_INT the original schema of the application? If so, it’s hard coded in the exported file. You should look for the wwv_flow_api.create_flow procedure and change the p_owner parameter to your target schema.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How to parse a schema

    Hi
    I try to parse a xml-schema file.
    I know that a xml-schema is a XML , so I could use any XML parser to parse XML-schema.
    But I still want to find a paser specific for xml-schema.
    thanks:)

    Why do you need to parse the XML Schema? If you want to get the metadata info from the XML Schema, please use the XSDBuilder to build the XML Schema Object instead of using the XML Parser.
    For example:
    XSDBuilder builder = new XSDBuilder();
    URL url = createURL(args[0]);
    // Build XML Schema Object
    XMLSchema schemadoc = (XMLSchema)builder.build(url);

  • Workspace 10 has no privileges to parse as schema APEX_030200.

    I'm installing apex 3.2 into a 10.2.0.3 database and the install went fine. I've followed the same procedures to install apex in several other database with the same characteristics and they are all running fine. But in this install I get the "Workspace 10 has no privileges to parse as schema APEX_030200." message with I try to load the Admin page for the first time.
    Any help is greatly appreciated!
    Ken
    PS. I just ran apxremov.sql and reinstalled and all is good now. I had no error messages in the original install, so don't know what that was all about. That a couple hours I'll never get back! :)
    Edited by: kenkrug on Jan 7, 2010 3:55 PM

    At your place, I would go through Upgrade Guide again, with special attention on grants and privileges.

  • Workspace has no privileges to parse as schema

    Hi,
    when i try to run the application appear this error Workspace has no privileges to parse as schema XXX
    Apex version = 3.2.0.00.27
    DB verison = 11g
    the workspace worked well until now
    please help
    regards

    Hi
    I think that after database upgrade from 9i to 11g the grants of the APEX users changed, and today to solve my first problem (i could't create new workspace) i grant some privilege to the user APEX_030200 and the user that now didn´t work.
    this is the grants
    GRANT CREATE CLUSTER TO "APEX_030200" WITH ADMIN OPTION;
    GRANT CREATE CLUSTER TO "XXX" WITH ADMIN OPTION;
    GRANT CREATE JOB TO "XXX" WITH ADMIN OPTION;
    GRANT CREATE JOB TO "APEX_030200" WITH ADMIN OPTION;
    GRANT CREATE ANY CONTEXT TO"XXX" WITH ADMIN OPTION;
    GRANT CREATE ANY CONTEXT TO"APEX_030200" WITH ADMIN OPTION;
    GRANT CREATE MATERIALIZED VIEW TO"XXX" WITH ADMIN OPTION;
    GRANT CREATE MATERIALIZED VIEW TO"APEX_030200" WITH ADMIN OPTION;
    revoke this grants?
    Note: the user XXX has the DBA role
    Thanks

  • Memory Leakage while parsing and schema validation

    It seems there is some kind of memory leakage. I was using xdk 9.2.0.2.0. Later i found that from this forum which contain a Topic on this and they (oracle ) claim they have memory leakage. And they have fixes this bugs in 9.2.0.6.0 xdk. When i used truss command, for each call to parser and schame validation, it was opening file descriptor for lpxus and lsxus file. And this connections were not close. And keep on openning it with each call to parser. I was able to diagonise this using truss command on on solaris. After making many calls, i was error message could not open file Result.xsd (0202). I am using one instance of Parser and Schema. And i am doing clean up for parser after each parse.
    Later i downloaded, 9.2.0.6.0,
    Above problem for the parser was solvedm but still the problem continued for schema validation. And even i tried with latest beta release 10.
    And this has caused great troubles to us. Please can u look whether there is come sort of leakage. Please advice if u have any solution.
    Code---
    This below code is called multiple times
    char* APIParser::execute(const char* xmlInput) {
              char* parseResult = parseDocument(xmlInput);
              //if(strcmp(parseResult,(const char*)"")==0) {
    if(parseResult == NULL) {
                   parseResult = getResult();
    parser.xmlclean();
         return parseResult;
              } else {
                   return parseResult;
    Parser and schema are intialised in Construtor and terminated in Destructor.

    Hi, here is the complete test case
    #include<iostream>
    #ifndef ORAXML_CPP_ORACLE
    # include <oraxml.hpp>
    #endif
    using namespace std;
    #define FAIL { cout << "Failed!\n"; return ; }
    void mytest(int count)
         uword ecode;
         XMLParser parser;
         Document *doc;
         Element root, elem;
         if (ecode = parser.xmlinit())
              cout << "Failed to initialze XML parser, error " << ecode << "\n";
              return ;
         cout << "\nCreating new document...\n";
         if (!(doc = parser.createDocument((oratext *) 0, (oratext *) 0,(DocumentType *) 0)))
         FAIL
         if (!(elem = doc->createElement((oratext *) "ROOT")))
                   FAIL
         string test="Elem";
         for(int i=0;i<count;i++)
              //test="Elem"+string(ltoa(i));
              if (!(elem = doc->createElement((oratext *) "element")))
                   FAIL
              if (!doc->appendChild(elem))
                   FAIL
         //doc ->print();
         //parser.xmlclean();
         parser.xmlterm();
    int main(int argc,char* argv[])
         int count=atol(argv[1]);
         mytest(count);
         char c;
         cout<<"check memory usage n press any key"<<endl;
         cin>>c;
         return 0;
    -------------------------------------------cut here-----
    Now, i cant use the xdk 10g because i work on a hpux machine. I have tried the above program with a count of 1000000. the memory usage at the end was around 2 gigabytes.
    Could someone please please help me? :(
    Thank you.

  • Workspace 940406121245604 has no privileges to parse as schema MYAPP.

    When I try to run the application, I get the error message
    Workspace 940406121245604 has no privileges to parse as schema MYAPP.
    Anyone know how to grant the privileges?
    Thanks in advance.
    MKBH

    Hi
    As Varad said you need to use the name of the schema followed by a full stop, followed by the package synonym followed by a full stop, followed by the procedure name like this (in your case it is FLOWS_030000)
    BEGIN
    FLOWS_030000.APEX_INSTANCE_ADMIN.REMOVE_WORKSPACE('MY','Y','Y');
    END;Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Weired "IllegalArgumentException", while i try to parse my schema.

    Here is the stack trace.
    Any one of you encountered this before? I am totally confused about this... any idea what it is all about?
    parsing a schema...
    Exception in thread "main" java.lang.IllegalArgumentException
    at com.sun.xml.xsom.impl.ElementDecl.<init>(ElementDecl.java:40)
    at com.sun.xml.xsom.impl.parser.state.elementDeclBody.makeResult(element
    DeclBody.java:615)
    at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBo
    dy.java:419)
    at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.revertToParentFromText
    (NGCCRuntime.java:503)
    at com.sun.xml.xsom.impl.parser.state.occurs.text(occurs.java:127)
    at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.processPendingText(NGC
    CRuntime.java:188)
    at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime
    .java:248)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:595)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:595)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:595)
    at org.iso_relax.verifier.impl.VerifierFilterImpl.endElement(Unknown Sou
    rce)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXPar
    ser.java:585)
    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
    ractXMLDocumentParser.java:222)
    at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNames
    paceBinder.java:874)
    at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
    nder.java:591)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
    t(XMLDocumentFragmentScannerImpl.java:747)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
    Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
    LDocumentFragmentScannerImpl.java:329)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
    a:525)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
    a:581)
    at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
    ava:1175)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.
    java:151)
    at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java:116)
    at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:511)
    at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
    at com.sun.tools.xjc.Driver.run(Driver.java:268)
    at com.sun.tools.xjc.Driver.main(Driver.java:88)

    This error is mostly due to a missing type in an element or attribute.
    like: <xsd:element name="foo"/>
    I ran into this also a couple of times. XMLSPY validates a schema
    without the type. quit confusing...

  • Error in XML Parsing  through Schema doc.

    I know this is not the correct group for XML related queries. I had posted the query in XML forum but could not get any reply. I have been in the forum and know this is very active forum.
    Please help if you can..
    Hi Friends,
    I am trying to validate XML file as per the defined schema document through JAXB parser.
    Following is my xml. schema and java class code.
    XML File*
    <?xml version="1.0"?>
    <notify xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="NotificationDetailsSchema.xsd">
    <notification>
    <alertname>Alert1</alertname>
    <deletable>Y</deletable>
    <descurl>Alert1URL</descurl>
    </notification>
    <notification>
    <alertname>Alert2</alertname>
    <deletable>Y</deletable>
    <descurl>Alert2URL</descurl>
    </notification>
    </notify>
    Schema file_
    <?xml version="1.0" encoding="windows-1252"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xsd:element name="notify">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="notification" maxOccurs="unbounded">
    <xsd:complexType mixed="true">
    <xsd:sequence>
    <xsd:element name="alertname">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="deletable">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="Y|N"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="descurl">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Java Class_
    SAXSource source = new SAXSource (xmlInputSource);
    SchemaFactory sf = SchemaFactory.newInstance (XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema schema = sf.newSchema(schemaFileObj);
    Validator validator = schema.newValidator ();
    validator.setErrorHandler (new ParserErrorHandler());
    validator.validate (source);
    I tried to execute the validation through stand along java class and it worked correctly.
    However when I added this class into my Fusion web application, I am getting following error.
    org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Alert1'._
    Can you please help me to figure out this problem?
    Edited by: Jaykishan on Jul 20, 2011 10:04 AM

    earlier it was
    org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'USAVER'.anmd now it is
    org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Alert1'.some problem in this Alert1 message is what i guess.. some parsing error.. look closely..
    i guess some of the xml characters are not rendered properly in forum software.. or it may be truncated.. so i believe something wrong which is not visible..

  • Error in XML Parsing  through Schema doc.MalformedURLException

    Hi,
    I need to validate xml file before parsing it through XML schema validation. My XML file and schema files are in the same directory and I need am validation it using below code.
    Java Code_
    String rbBasePath = ConfigurationFactory.getInstance().getConfigurations("ConfigParam").get("config.rb.properties", DEFAULT_RB_PATH);
    InputSource xmlInputSource = new InputSource (rbBasePath + ConfigConstants.XML_FILE_NAME);
    File schemaFileObj = new File (rbBasePath + ConfigConstants.XML_SCHEMA_FILE_NAME);
    SAXSource source = new SAXSource (xmlInputSource);
    SchemaFactory sf = SchemaFactory.newInstance (XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema schema = sf.newSchema (schemaFileObj);
    Validator validator = schema.newValidator ();
    validator.setErrorHandler (new ParserErrorHandler());
    validator.validate (source);
    But, I am getting following error.
    java.net.MalformedURLException: unknown protocol: c_
    After some google, I found there may be some bug which does not read the file if file path contains some space in between. But in my case schema path does not contain any space in between.
    Please help to figure out this issue.
    Edited by: Jaykishan on Jul 20, 2011 12:17 PM
    Edited by: Jaykishan on Jul 20, 2011 12:18 PM

    Error occurs at below line of code.
    validator.validate (source);
    Error message: MalformedURLException. java.net.MalformedURLException: unknown protocol: c
    My xml and xsd file is located at: C:\config\resources\AlertData.xml, C:\config\resources\AlertDataSchema.xsd.

  • 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

  • Parsing with schema

    Applying this code            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                factory.setValidating(true);
                factory.setIgnoringElementContentWhitespace(true);
                factory.setAttribute(
                        "http://java.sun.com/xml/jaxp/properties/schemaLanguage",
                        "http://www.w3.org/2001/XMLSchema");
                //factory.setFeature("http://xml.org/sax/features/validation", true);
                DocumentBuilder builder = factory.newDocumentBuilder();
                relDoc = builder.parse(relFileName);on this xml file (excerpt)
    <?xml version="1.0" encoding="UTF-8"?>
    <album_artist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="musicbox_neu.xsd">
    <album-artist><album>333544981</album><artist>2569160</artist>with the schema here
    <?xml version="1.0"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:element name="album_artist"><xs:complexType><xs:sequence maxOccurs="unbounded">
    <xs:element name="album-artist">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="albumid" type="ID"/>
    <xs:element name="artistid" type="ID"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element></xs:sequence>
    </xs:complexType>
    </xs:element>I get this error message
    Error: URI = "file:///C:/Dev/Lab/MusicBox/Resources/album-artist.xml", Line = "2
    ", : cvc-elt.1: Cannot find the declaration of element 'album_artist'. Any help appreciated!!!

    Thanks for replying - I was just trying to validate it using a site I found for now - eventually I will be using JAXB to create a document from the schema. (That is another story) What should I be doing to get the XML document to try and validate against the schema. I have, using different combinations in the namespace, etc gotten the xml doc to validate, but incorrectly - it didn't use the data validations from the schema, which I am pretty sure are correct. Any help you can provide is much appreciated.
    Thanks!
    KG

  • 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

  • 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

Maybe you are looking for

  • How to populate right side of Shuttle with display/return values?

    Hello, I know, that the proper way to populate the right side of shuttle is that: declare      v_list     apex_application_global.vc_arr2; begin      select profile_name return_value        bulk     collect        into     v_list        from     user

  • How to Upgrade your notebooks OS to Windows 8.1?

    Dear all, Please be noticed on this update, it's not like regular Windows update, because of some drivers compatibility issue, please follow up below actions to prevent your systam problem. Please follow up below instructions, or you could go to belo

  • .avi files acting weird inside of premiere

    So I have some lovely videos that I have edited that require some screen capturing. The .avi motion JPEG files we used from the Black Magic Design Intensity capture PCI Cards looks GREAT........until I drop it into premiere and it looks like some jan

  • Hyper links work in i-web but when site is published it does not....HELP!!

    Hi group. I am fairly new to I-web and I mus tsay I love the program. It cam with my new I-mac and this is my first mac as I am a "swticher" from the PC days!! I was surprised that the mac came with such a good program as -i-web. Anyway.... Ok, I del

  • How to make a payment term as Default in Credit note in certain Sales Orgs.

    Hello experts, Kindly provide your valuable inputs as How can i make the payment terms( say AU00 =Due Immediately) default for  a few sales organizations. As checked, Depending on the type of Credit notes( i.e. WITH OR WITHOUT reference to an invoice