9.0.3 validates an invalid XML document as valid

JDeveloper 9.0.3 validates the XML document below with no errors, although it contains several. It also insists on a namespare (even a blank one) before the validator will run, even though it has an internal DTD.
Also, there is no DTD file type in JDeveloper. Why?
-----------------------Clip here-----------
<?xml version="1.0"?>
<!DOCTYPE todo [
<!ATTLIST description priority NMTOKEN "low">
<!ELEMENT description (#PCDATA)>
<!ELEMENT task (description)>
<!ELEMENT todo (task)+>
]>
<todo xmlns="">
<task>
<description priority="high">Backup sales data for last month</description>
</task>
<task>
<description priority="l ow">Complete end of month report</description>
</task>
<task>xxx</task>
</todo>

Ed,
JDev 9.0.3 supports validation based on XML Schema only, not DTD.
DTD validation is being considered for a future release, but has not
been scheduled yet so I cannot give you an idea of when it's coming.
I'll try to encourage the team to write a little Extension we could
put up on OTN to restore this validate against the DTD feature that
JDeveloper 3.2 did support.

Similar Messages

  • Invalid XML Document in BPEL Human Task - TaskService

    Hi Experts
    I am getting the following run time error in BPEL console in my bpel process which has got a human task.
    ==================================================================
    Invalid xml document.*
    According to the xml schemas, the xml document is invalid. The reason is: Error::cvc-datatype-valid.1.2.1: '' is not a valid value for 'dateTime'.*
    Error::cvc-type.3.1.3: The value '' of element 'expirationDate' is not valid.*
    Please make sure that the xml document is valid against your schemas.*
    ==================================================================
    BPEL console is validating all incoming and outgoing XML document against the relevant schema since the configuration property, validateXML has
    set to strict in the BPE console domain, which it has to be.
    This complain is regarding the element expirationDate in the response message of the human task, which cannot be explicitly set in the bpel process.
    Please help me to resolve this issue.
    Thanks
    Jamith

    Hi
    This has been escalated to Oracle and has been identified as a bug.
    Anyway, can you please explain bit more about you workaround?
    Thanks
    Jamith

  • Invalid XML document can be inserted

    Hi,
    I'm using Oracle 10g Enterprise Edition Release 10.1.0.4.0. I have a schema based (XSD) database where I'm trying to insert invalid document and it works :(
    Here is an extract of the schema :
         <xsd:element name="quantity">
              <xsd:simpleType>
                   <xsd:restriction base="xsd:positiveInteger">
                        <xsd:maxExclusive value="100"/>
                   </xsd:restriction>
              </xsd:simpleType>
         </xsd:element>
    If I put a XML document with invalid data like "<quantity>230</quantity>" I have not error message from Oracle. The XML is inserted !
    Is this error corresponding to "Bug 4329431 DBMS_XMLPARSER ignores errors while parsing invalid XML document" or is it another bug ?
    Thanks

    Try doing a search on schemaValidate() in this forum. The gist of it is that you need to invoke the schemaValidate() method. By default we do a lax validation that checks things like mandatory elements are present etc.To perform a full schema validation use a trigger or procedure to invoke this method on the XMLType
    Eg
    create or replace trigger validate_xml before insert on my_xml_table
    for each row
    begin
       :new.object_value.schemaValidate();
    end;
    /

  • Invalid xml document for BPEL Process.

    Hi everyone,
    I am getting below error after i set validateXML=strict
    Invalid xml document.
    According to the xml schemas, the xml document is invalid. The reason is: Error::cvc-datatype-valid.1.2.1: '' is not a valid value for 'decimal'.
    Error::cvc-type.3.1.3: The value '' of element 'ns1:p_person_id' is not valid.
    Please make sure that the xml document is valid against your schemas.
    Kindly help me with the steps. I am just a SOA admin, not developer.
    Regards
    Lammeki.

    Ummmm Vikas,
    Lemme bring out a better picture, so u get more clear on this one.
    The developer has upgraded an already deployed BPEL process.
    Since then, she has been facing problem. When she invoke those process they simply end up as faulted with a yellow color ! mark.
    Now i as an admin, i tried everything to help her cos she escalated the issue to me, thinking maybe there is sumthing i could do to assists her.
    Now i am not sure, how to help her, but yes i started with the logs. Both the oc4j container log for SOA and the domain log show the similar error.
    But till then, i didn't know black and white of it. so i tried doing all testing possible from my end.
    When i check on the faulted instances i see there is a Assign activity after Transform followed by Invoked being highlighted in red color. and when i clicked on it i get to see the error
    Assign_41
    [2011/07/21 02:26:15]
    Error in evaluate <from> expression at line "315". The result is empty for the XPath expression : "/ns6:QueryPerAllPeopleOutputCollection/ns6:QueryPerAllPeopleOutput/ns6:EMPLOYEE_NUMBER".
    oracle.xml.parser.v2.XMLElement@1ee216f
    Copy details to clipboard
    [2011/07/21 02:26:15]
    "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "/ns6:QueryPerAllPeopleOutputCollection/ns6:QueryPerAllPeopleOutput/ns6:EMPLOYEE_NUMBER" is empty at line 315, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns6:QueryPerAllPeopleOutputCollection/ns6:QueryPerAllPeopleOutput/ns6:EMPLOYEE_NUMBER" is not empty.
    Possible reasons behind this problems are: some xml elements/attributes are optional or the xml data is invalid according to XML Schema.
    To verify whether XML data received by a process is valid, user can turn on validateXML switch at the domain administration page.
    </summary>
    </part>
    </selectionFailure>
    Copy details to clipboard
    So because of that instruction i went ahead and set validateXML=strict
    and that is when i got the error message as below
    Invoke_PerAllPeople
    [2011/07/21 11:47:12]
    Invalid data: The value for variable "Invoke_PerAllPeople_QueryPerAllPeople_InputVariable", part "QueryPerAllPeopleInput_msg" does not match the schema definition for this part.The invalid xml document is shown below:
    oracle.xml.parser.v2.XMLElement@17f54ff
    Copy details to clipboard
    [2011/07/21 11:47:12]
    Faulted while invoking operation "QueryPerAllPeople" on provider "QueryPerAllPeople".
    - <messages>
    - <input>
    - <Invoke_PerAllPeople_QueryPerAllPeople_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="QueryPerAllPeopleInput_msg">
    - <QueryPerAllPeopleInput xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/QueryPerAllPeople" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/QueryPerAllPeople">
    <ns1:p_person_id/>
    </QueryPerAllPeopleInput>
    </part>
    </Invoke_PerAllPeople_QueryPerAllPeople_InputVariable>
    </input>
    - <fault>
    - <invalidVariables xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    <code>
    9710
    </code>
    </part>
    - <part name="summary">
    <summary>
    Invalid xml document.
    According to the xml schemas, the xml document is invalid. The reason is: Error::cvc-datatype-valid.1.2.1: '' is not a valid value for 'decimal'.
    Error::cvc-type.3.1.3: The value '' of element 'ns1:p_person_id' is not valid.
    Please make sure that the xml document is valid against your schemas.
    </summary>
    </part>
    </invalidVariables>
    </fault>
    </messages>
    Copy details to clipboard
    [2011/07/21 11:47:12]
    "{http://schemas.oracle.com/bpel/extension}invalidVariables" has been thrown.
    - <invalidVariables xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    <code>
    9710
    </code>
    </part>
    - <part name="summary">
    <summary>
    Invalid xml document.
    According to the xml schemas, the xml document is invalid. The reason is: Error::cvc-datatype-valid.1.2.1: '' is not a valid value for 'decimal'.
    Error::cvc-type.3.1.3: The value '' of element 'ns1:p_person_id' is not valid.
    Please make sure that the xml document is valid against your schemas.
    </summary>
    </part>
    </invalidVariables>
    Copy details to clipboard
    The main problem was we were observing many SOA inactive threads in one particular database, and they keep building up minutes by minutes.
    I suspect, that in the code connections were open but were not closed, there4 there were inactive threads in the database.
    I had to stop the SOA application, to stop threads from building up. I guess they got build up when they were invoked. There is definitely some fault with the code. or tell me am wrong. tell me its sumthing else.
    However other domains processes were working fine.
    and oh, yes the developer also made changes in the database. when i asked her to revert back and see if it works, she say thats a huge amount of work.
    Finally she end up saying that maybe it could be a problem with the new version.
    Now as a learner, I want to know what is going on, and how do we go about solving it.
    Am not much of a SOA techie. that u can make out. but yes ready to learn things. so there4 i beg you to explain to me like am a standard 3 or 4 kid. any more information needed plz feel free to write back.
    regards
    Lammeki.

  • XML Document not Valid

    Hi Techies,
    I m making a xml document and that is validated on xml schema. But it is giving error that document is not valid because it is not deg\fining DOCTYPE element. Is it necessary to define it

    It is not nesessary, but you have probably made your parser validating. In Java validating parsers use DTD to validate, and while schema validation is possibly those parsers are non-validating.

  • Invalid XML document

    I'd like to ask about some problem with desktop profile xml file. When I log into the amconsole as amadmin, go to the Services/Portal Desktop/Edit Display Profile, and after changing nothing press OK, the following message arises:
    Error at line 1,569 and column 105 reported by parser was
    The reference to entity "launch" must end with the ';' delimiter
    After this I found the word "launch" only in this fragment of profile xml:
    <Collection name="targets">
    <String value="Instant Messenger (Java Web Start)|IMLaunch?provider=IMChannel&launch=jnlp&last=false^this.href=this.href+&apos;&src_url=&apos;+window.location.protocol+&apos;//&apos;+window.location.host;"/>
    <String value="Instant Messenger (Browser)|IMLaunch?provider=IMChannel&launch=plugin&last=false^this.href=this.href+&apos;&src_url=&apos;+window.location.protocol+&apos;//&apos;+window.location.host;"/>
    <String value="Instant Messenger (Java Web Start/Secure)|IMLaunch?provider=IMChannel&launch=jnlp&secure=yes&last=false^this.href=this.href+&apos;&src_url=&apos;+window.location.protocol+&apos;//&apos;+window.location.host;"/>
    <String value="Instant Messenger (Browser/Secure)|IMLaunch?provider=IMChannel&launch=plugin&secure=yes&last=false^this.href=this.href+&apos;&src_url=&apos;+window.location.protocol+&apos;//&apos;+window.location.host;"/>
    <String value="NetMail Lite|/portal/NetMailServlet?nsid=newHTMLSession"/>
    <String value="NetMail|/portal/NetMailServlet?nsid=newAppletSession"/>
    </Collection>
    So I thing that somewhere in this code must be the error. Can somebody find it, please?

    What browser are you using?
    There are known issues with editing XML using IE. You might actually be hitting a browser bug.
    To ensure that the problem you are observing is due to a browser issue:
    Click the Download button, save the XML to your local filesystem, make changes and try to upload it using the Upload button.
    If the Upload of your modified XML fails then your XML is not conforming to the DTD. If it succeds then you are facing a browser issue with EditXML.

  • Invalid XML document - "&" character in dp-xml

    Hi guys,
    Do anyone know how to avoid XML parser exception
    in admin console throwed because one of the
    attributes in dp.xml has "&" sign in the value string (e.g. URL) ?!
    PS: I am talking about editing dp xml via amconsole.
    Thanks,
    Alex :-)

    Did this work for you? When I try & amp; it works the first time, but when I go back in to edit, it's resolved back to plain '&' and gets an error again. I certainly don't want to change it every time! Same thing happened with the entity reference.
    When I use '%26', it doesn't resolve in the browser view.
    Thanks,

  • Problem to validate XML document if the type of root element is abstract

    I have the following XML document:
    <?xml version="1.0" encoding="UTF-8"?>
    <ct013/>
    It corresponds to the following XSD Schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <xs:element name="ct013" type="foo"/>
         <xs:complexType abstract="true" name="foo"/>
         <xs:complexType name="fixedType">
              <xs:complexContent>
                   <xs:restriction base="foo"/>
              </xs:complexContent>
         </xs:complexType>
    </xs:schema>
    Please take attention to the fact that the type of root element of that BDD is abstract.
    XML Schema provides a mechanism to force substitution for a particular element or type. When an element or type is declared to be "abstract", it cannot be used in an instance document. When an element is declared to be abstract, a member of that element's substitution group must appear in the instance document. When an element's corresponding type definition is declared as abstract, all instances of that element must use xsi:type to indicate a derived type that is not abstract.
    Declaring an element as abstract requires the use of a substitution group. Declaring a type as abstract simply requires the use of a type derived from it (and identified by the xsi:type attribute) in the instance document.
    For more information of using abstract types please see chapter 4.7 Abstract Elements and Types of XML Schema Part 0: Primer Second (http://www.w3.org/TR/xmlschema-0/#abstract).
    In this case there is Oracle bug when I try to validate this XML document using Oracle XDK:
    String validate(String xml, String schema)
    throws XSDException, XMLParseException, SAXException, IOException
    System.setPropert("oracle.xml.parser.debugmode", "true");
    XSDValidator xsdValidator = new XSDValidator();
    XMLError xmlError = new XMLError();
    xmlError.setErrorHandler(new DocErrorHandler());
    XMLDocument xmlDocument = parseXMLDocument(xml);
    XMLDocument schemaXMLDocument = parseXMLDocument(schema);
    XMLSchema xmlSchema = (XMLSchema) new XSDBuilder().build(schemaXMLDocument, null);
    xsdValidator.setError(xmlError);
    xsdValidator.setSchema(xmlSchema);
    xsdValidator.validate(xmlDocument);
    return getValidationError(xsdValidator);
    I get the following error:
    Can't find resource for bundle oracle.xml.mesg.XMLResourceBundle, key XSD-2046.
    I tried to validate this XML document using two other libraries - XSD Schema Validator (http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx) and xsdvalid-29 (http://www.w3.org/XML/Schema#XSDValid). Both libraries pointed me on the error that the type of root element is abstract and it cannot be used for doing validation.
    I think that Oracle should return me explaining message but not to throw exception.
    Am I right? Is there really Oracle bug or I miss something?
    Any help, hits, advices would be gratfully apriciated.

    Define Element1 as follows:
    <xs:element name="Element1">
    <xs:complexType>
    <xs:complexContent>
    <xs:restriction base="xs:string"/>
    </xs:complexContent>
    </xs:complexType>
    </xs:element>
    Does the XML document get validated if the element is specified as
    <Element1></Element1>

  • Validate and update a XML document with rules

    Hi,
    In my project work, I am thinking about using oracle rules BRMS (business rule management system) to validate certain rules on xml document.
    Since I am new to the oracle rules, I want to know the feasibility of doing this with oracle rules.
    I have a specific question...
    I have XML documents that are in different schema versions. these schema are fixed but can add them in future as well.
    I have two things to do:
    1. transform a given XML document (in a one version) to another version
    2. Validate the new XML document against the rules defined in the oracle business rules.
    1.I can do the 1st task using XSLT transformation. But there is one challenge. Assume that there are new tags are added in the target schema compared to the source schema of the XML document.
    If there are optional tags to be added, I want to know if oracle rules can be used for that. Because I want to make these things done without changing the code (java) or the application internals.
    2. I have few questions on the 2nd issue. They are:
    a) can I create rules in oracle BRMS based on target schemas. (or to all of them. If so, what needs to be done if I add a new schema in future. How to update the rules?)
    b) is it possible to group the rules created above in oracle BRMS.
    Lets say
    R1, R2 rules are created against schema1 (version 1)
    R3, R4, R5 rules are created against schema2 (version 2)
    R6, R7 rules are created against schema3(version 3)
    Can I create group R1, R2 and R6 rules in to a one group (G1) and R1, R2 and R7 rules in to another group (G2).
    What are the APIs available in oracle BRMS to retrieve above defined groups at run time? (because business user can define any rules, ad group them at run time)
    Once I have the groups, How can I validate a XML document against a group created above? What are the APIs available for this.
    c) is it possible to add/update/delete tags to a XML document based on rules in oracle BRMS? if so, how?
    appreciate your valuable feedback on this..

    Hi Hareendra,
    I think you should post your question in this other forum:
    Forum Home » SOA & Process Management » SOA Suite
    Oracle Business Rules is a component used in SOA Suite
    Regards!
    Jorge

  • Validation of XML document % DTD

    I need method which allows to check if an XML document is valid regards its DTD. is it possible?
    I use JDOM.
    thanks,

    I need method which allows to check if an XML
    document is valid regards its DTD. is it possible?
    I use JDOM.But it would be the parser that validates the XML against its DTD. JDOM is not a parser, it uses some other product (which you can specify, I believe) to do the parsing. So the answer would be yes, since parsers do exist that can validate against a DTD.

  • Error serializing XML document.

    We are trying to serialize XML document using Oracle XML Parser (9.2.0.5.0).
    Here is the code used for serialization
    public static void write(Document doc, File resultFile) {
    try {
    // Create a TransformerFactory
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    // Create a new Transformer for Identity Transformation
    Transformer transformer = transformerFactory.newTransformer();
    // Make passed document the DOM source
    DOMSource source = new DOMSource(doc);
    // Make result file the Stream Result
    StreamResult result = new StreamResult(new FileOutputStream(resultFile));
    // Write the document by means of Identity Transformation
    transformer.transform(source, result);
    } catch (Exception exc) {
    exc.printStackTrace();
    Document to be serialized
    test.xml
    <?xml version="1.0"?>
    <!DOCTYPE test SYSTEM "test.dtd">
    <!-- This is a comment -->
    <Test>
    <TestElement>Test Data</TestElement>
    </Test>
    test.dtd
    <!-- DTD -->
    <!ELEMENT Test (TestElement)>
    <!ELEMENT TestElement (#PCDATA)>
    The serialized document looked like
    <?xml version = '1.0'?>
    <?#comment This is a comment ?><Test>
    <TestElement>Test Data</TestElement>
    </Test>
    First of all the DOCTYPE declaration was not present in the serialized document.
    Secondly the comments appeared in a wrong way, which even made it an invalid XML document.
    How do we get this to work?
    Thanks
    Sagar

    On 9.2.0.3.0 you can try dbms_xdb.deleteResource(Path,4)

  • Invalid Character in XML document

    Hello,
    I'm parsing an XML document using Apache SAX parser implementation, and I got the Exception below.
    After looking around, I found that it happened cause by the symbol " &#65533; " in one of the element.
    How should I handle this? Thanks in advance for the help.
    <Unexpected exception (org.xml.sax.SAXParseException: Invalid byte 2
    of 2-byte UTF-8 sequence.). Restarting parsing process in 4 minute(s).>
    org.xml.sax.SAXParseException: Invalid byte 2 of 2-byte UTF-8 sequence.
         at WW1Events$TrafficEventHandler.fatalError(WW1Events.java:1232)
         at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
    Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
    Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
    Source)
         at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
    her.dispatch(Unknown Source)
         at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)

    Let's say the data provided said that they "can't do
    anything about it". What do you suggest I should
    handle this problem when it occurs again sometimes in
    the future?
    Thanks for the help.Are you aware of the "Garbage in, garbage out" principle?
    That said, if the data is only slightly garbaged-up, and if you really can't get the source to provide non-garbage data, then you'd have to implement a transformation process to take the data in the raw (not thru an XML API, as remember it is malformed to begin with) and produce a well-formed XML piece of data from it. Then operate on the latter.

  • How to validate generated XML-Document in Memory by XML-Schema?

    Hi all!
    I have the following problem:
    I am generating a Document using the DOM delivered with Xerces 2.6.2.
    Before I'll send the generated xml-document through network to another system I have to check with my xml-schema if the document is correct.
    In the DOM-FAQ I found an "example" trying to explain how it should work. But with this example the problems begin.
    I am creating my document with this method:
         public void createDocument() {
              myDOM = DOMImplementationImpl.getDOMImplementation();
              doc = myDOM.createDocument("", "documentData", null);
              root = doc.getDocumentElement();
              root.setAttribute(
                   "xmlns:xsi",
                   "http://www.w3.org/2001/XMLSchema-instance");
              //          root.setAttribute("xsi:noNamespaceSchemaLocation", "myScheme.xsd");
              domConfig = ((DocumentImpl) doc).getDomConfig();
              domConfig.setParameter(
                   "schema-location",
                   "file:///d:/workspace/XMLProject/WebContent/WEB-INF/myScheme.xsd");
              domConfig.setParameter("error-handler", new EHandler());
              domConfig.setParameter("validate", Boolean.TRUE);
         }In the line getting the domConfig, it is getting differeing to the example: The example is like this:
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMConfiguration;
    import org.w3c.dom.ls.LSParser;
    Document document = builder.parseURI("data/personal-schema.xml");
    DOMConfiguration config = document.getConfig();
    config.setParameter("error-handler",new MyErrorHandler());
    config.setParameter("validate", Boolean.TRUE);
    document.normalizeDocument();They get the DOM-Configuration from the document-Object, but my document-Object has no "getConfig()" and only after type-casting I get a getDomConfig()-Method to get the configuration.
    Then I fill my document and call                
    ((DocumentImpl) doc).normalizeDocument();When I run my Application I get the following error:
    org.w3c.dom.DOMException: FEATURE_NOT_SUPPORTED: The parameter schema-location is recognized but the requested value cannot be set.
         at org.apache.xerces.dom.DOMConfigurationImpl.setParameter(Unknown Source)
         at xmlProject.createDocument(Convert.java:63)
         at xmlProject.Convert.main(Convert.java:154)I tried several ways to get the validation without success.
    The next question is how I should refer to my xml-schema (which path) and where to place it relative to my jar I will generate, because I will have no webserver I could place it on.
    Has anyone any experience with validating a document created and not placed on disc?
    I have also another question to SAX: I read, that it is reading a document without saving it in the memory. I think this means that if I am validating it by SAX it will be read once and for parsing it will be read a second time. If I would transfer the document over an tcp-connection, I only have the document once in my inputstream and after validation it would be consumed I think. But what can I parse then? Or did I missed a detail with the function of the SAX?
    Thank you for your help!
    Yours
    Christian

    static final String schemaSource = argv[0];
    static final String JAXP_SCHEMA_SOURCE =
    "http://java.sun.com/xml/jaxp/properties/schemaSource";
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    factory.setAttribute(JAXP_SCHEMA_SOURCE,
    new File(schemaSource));

  • XML Document Insert fails : NULL is an invalid

    Hi,
    I am trying to inseert a valid Oracle Canonical XML document
    into my table . But i get the following error :
    2001-07-01 19:50:16,167 <ERROR>
    NULL is an invalid column name.</ERROR>
    The table definition is as follows :
    create or replace table Internal_Message_Impl (
    processId &ID_TYPE primary key,
    transactionHeader THeader_t,
    payloadCollection clob,
    manifest clob,
    messageHeader MessageHeader_t
    In my input XML document I have columns corresponding to the processId (primary
    key) and transactionHeader. But I don't any xml tags for the remaining columns.
    In the OracleSaveXML java API I am setting which columns should be inserted or
    updated :
    OracleXMLSave save = new OracleXMLSave(_conn, DB_TABLE_NAME);
    save.setIgnoreCase(true);
    // default Oracle Date format is 'MM/dd/yyyy HH:mm:ss' . See JDBC
    documentation on
    // java.text.SimpleDateFormat to get the list of valid date formats.
    // save.setDateFormat(java.lang.String mask);
    String[] columnNames = new String[3];
    columnNames[0] = IM_PRIMARY_KEY;
    columnNames[1] = TRANSACTION_HEADER_COLUMN_NAME;
    String[] keyColumnNames = new String[2];
    keyColumnNames[0] = IM_PRIMARY_KEY;
    save.setUpdateColumnList(columnNames);
    save.setKeyColumnList(keyColumnNames); // ignored in the case of insert and
    delete
    if(isNew()) {
    save.insertXML(oraXmlStr);
    } else {
    save.updateXML(oraXmlStr);
    Can somebody tell me whether this approach is o.k. ?
    Here is the xml document I am trying to insert :
    Oracle Canonical XML string for TransactionHeader :
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
    <ROW>
    <processId>1</processId>
    <TransactionHeader>
    <process>
    <listId>-99</listId>
    <revisionId>-9</revisionId>
    <packetId>-9</packetId>
    </process>
    <providerId>10001</providerId>
    <serviceId>12</serviceId>
    <adapterId>-9</adapterId>
    <customerId>7</customerId>
    <transactionElement>
    <name/>
    <value>1</value>
    </transactionElement>
    <transactionKind>
    <tKind>
    <value>-9</value>
    <name/>
    </tKind>
    <subKind>
    <value>-9</value>
    <name/>
    </subKind>
    </transactionKind>
    <state>
    <code>
    <value>-9</value>
    <name/>
    </code>
    <subCode>
    <value>-9</value>
    <name/>
    </subCode>
    <value/>
    </state>
    <trackingNumber>7UDZED</trackingNumber>
    <controllerNumber/>
    <completionTime>2001-07-08T19:50:05</completionTime>
    <creationTime>2001-07-04T19:50:05</creationTime>
    </TransactionHeader>
    </ROW>
    </ROWSET>
    Appreciate any responses for this problem.
    Thanks
    Mahesh
    null

    Hallo,
    I have same problem but all parameters seems ok...
    <Table> is an invalid table element or appears in the wrong order.
    <variant>
      <Table xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0" xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid5:tablestyle="Art.-Table" aid:table="table" aid:trows="64" aid:tcols="7">
        <cell aid5:cellstyle="Art.-Cell" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="58">
    I am using Indesign CC 2014

  • Validate XML Document

    Hi I was wondering how I could validate a document based on a hard coded string representing a dtd in my program. basically I have:
    private static final String DTD =  // dtd that the animation xml file must follow
                "<?xml version='1.0' encoding='utf-8'?>" +
                "<!ELEMENT animation (frame+)>" +
                "<!ELEMENT frame (#PCDATA)>" +
                "<!ATTLIST frame duration CDATA #REQUIRED>";
    Document doc;doc has allready been filled with xml data:
    DOMResult result = new DOMResult(doc);
    StreamSource source = new StreamSource(zip.getInputStream(zip.getEntry("animation.xml")));
    TransformerFactory tfactory = TransformerFactory.newInstance();
    Transformer transformer = tfactory.newTransformer();
    transformer.transform(source, result); // transform the animation.xml file into our domnow i simply want to validate the document against my hard coded dtd. Thanks :)

    Add a <!DOCTYPE root_element SYSTEM "dtdFile.dtd"> to the xml document.

Maybe you are looking for

  • External preview display via. Mini-DVI to video adapter QUESTION

    Hello, I have been browsing this forum for a while, and this is my first question. I have a Macbook Core2duo running Final Cut Pro. I purchased a Mini-DVI to S-video/composite video adapter. I cannot get my work to preview on this external monitor. I

  • Ldap Sync: User is not able to create in Active Directory through OIM

    Hi , I have enabled the ldap sync between OIM and Active Directory. Option 1: with password While creating the new user in OIM , I am getting the below error . 80eeb34d89d5ed80:18bc05bb:1403be9d7e6:-8000-000000000008f710,0] [APP: oim#11.1.2.0.0] Coul

  • Cannot save opened tabs before closing the browser

    Cannot save opened tabs before closing the browser. I do not know if there is such a feature (should be), and how to activate it. It was very useful with previous version.

  • Error when syncing groups

    I've got a test install of Vibe, and when I try to do an LDAP sync, with the option to automatically create group profiles, I get an error in catalina.out: 2014-01-21 21:07:27,272 WARN [http-8080-1] [org.kablink.teaming.spring.web.portlet.DispatcherP

  • Cannot download any Technet Eval Center software evaluations.

    I tried to download Windows Server 2012 RS eval last night (October 2nd) and this morning (3rd) with Internet Explorer or Firefox from Win 7 and also from Win XP (different PC's) using IE and Firefox.  I never get the POP-UP and 'save as box' even af