Referencing a schema in an XML instance

Hi there,
I have problems referencing an XMLSchema in an XML instance. (The way I do it is like showed below, I reference the XMLSchema-Namespace and my own namespace.) I'm using the Oracle XDK, and develop my app with the JDeveloper. When parsing the XML-Document, the parser says, that the Tags I defined (using Schema-Mechanismn) are 'used but not declared'. Does anybody have advice ?
The other question ist, how can I check, if
the XMLSchema-Declaration I referenced is the valid/latest one. Can it be, that the parser dictates which (XMLSchema-)namespace to use (i.e. that from 1999)?
<BookCatalogue xmlns ="http://www.publishing.org"
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xsi:schemaLocation="http://www.publishing.org
BookCatalogue.xsd">

thanks ... but I was after an ALSB solution as it would be quite expensive to do external callouts to WLI or Java.
There is no out-of-the-box solution for this.
It requires assigning a variable which contains the XML Schema and then refer this variable within ALSB. This is also an expensive process as we have to repeatedly call the variable at element within an XML tree

Similar Messages

  • How to generate XSD schema based on xml instance

    Hi All,
      Am unable to generate valid Xsd schema,i have an XML instances am getting this instance from wcf service.please find the below XML instance file.please help me out its very urgent for me.
    <GetForOneCallResponse xmlns="http://www.abcservices.com/ReferralService">
    <GetForOneCallResult xmlns:a="http://schemas.datacontract.org/2004/07/abc.Services.Cms" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <a:Message i:nil="true" />
    <a:ResponseData xmlns:b="http://schemas.datacontract.org/2004/07/abc.Services.Cms.Data">
    <b:BaseEntity i:type="c:Referral" xmlns:c="http://schemas.datacontract.org/2004/07/abc.Services.Cms.Models">
    <c:CHReferralUniqId />
    <c:CaseData>
    <c:DatAttorneyName i:nil="true" />
    <c:EventDescription i:nil="true" />
    <c:PatAttorneyAddress i:nil="true" />
    <c:PatAttorneyCity i:nil="true" />
    <c:PatAttorneyEmail i:nil="true" />
    <c:PatAttorneyFax i:nil="true" />
    <c:PatAttorneyFirmName i:nil="true" />
    <c:PatAttorneyName i:nil="true" />
    <c:PatAttorneyPhone i:nil="true" />
    <c:PatAttorneyState i:nil="true" />
    <c:PatAttorneyZip i:nil="true" />
    <c:SpecialInstructions>GCC Diagnostic Study: MRI Scan</c:SpecialInstructions>
    <c:TreatingDocAddress1 i:nil="true" />
    <c:TreatingDocCity i:nil="true" />
    <c:TreatingDocFax i:nil="true" />
    <c:TreatingDocFirstName>Dr/ Richard</c:TreatingDocFirstName>
    <c:TreatingDocLastName>Islinger</c:TreatingDocLastName>
    <c:TreatingDocPhone>9</c:TreatingDocPhone>
    <c:TreatingDocState i:nil="true" />
    <c:TreatingDocZip i:nil="true" /></c:CaseData>
    <c:CaseObjective i:nil="true" />
    <c:Claimants>
    <c:Claimant>
    <c:Address>
    <c:AddressOne>313 Liverpool Avenue</c:AddressOne>
    <c:AddressTwo i:nil="true" />
    <c:CellPhone i:nil="true" />
    <c:City>Egg Harbor city</c:City>
    <c:Countrty i:nil="true" />
    <c:County i:nil="true" />
    <c:Email i:nil="true" />
    <c:Fax i:nil="true" />
    <c:HomePhone></c:HomePhone>
    <c:LocationId>7729811</c:LocationId>
    <c:State>NJ</c:State>
    <c:WorkPhone i:nil="true" />
    <c:ZipCode>08215</c:ZipCode>
    </c:Address>
    <c:ClaimantId>1474969</c:ClaimantId>
    <c:Claims>
    <c:Claim>
    <c:Adjuster>
    <c:AddressOne>PO Box 14151</c:AddressOne>
    <c:AddressTwo />
    <c:City>Lexington</c:City>
    <c:Email>[email protected]</c:Email>
    <c:Fax />
    <c:FirstName>Kathleen</c:FirstName>
    <c:LastName>Hand</c:LastName>
    <c:Phone></c:Phone>
    <c:State>KY</c:State>
    <c:Zip>40512-4151</c:Zip>
    </c:Adjuster>
    <c:ClaimId>1637073</c:ClaimId>
    <c:ClaimNumber>002456054730</c:ClaimNumber>
    <c:InjuryDate>2005-06-10T00:00:00</c:InjuryDate>
    <c:StateJurisdiction>NJ</c:StateJurisdiction>
    </c:Claim>
    </c:Claims>
    <c:DOB>1953-07-05T00:00:00</c:DOB>
    <c:FirstName>Joann</c:FirstName>
    <c:Language i:nil="true" />
    <c:LastName>Wise</c:LastName>
    <c:SocialSecurity>142469412</c:SocialSecurity>
    </c:Claimant>
    </c:Claimants>
    <c:Company>
    <c:CustomerName>Sedgwick Claims Management Services, Inc</c:CustomerName>
    <c:PrimaryContact>
    <c:Address>
    <c:AddressOne>800 Ridgelake Blvd</c:AddressOne>
    <c:AddressTwo i:nil="true" />
    <c:CellPhone i:nil="true" />
    <c:City>Memphis</c:City>
    <c:Countrty>US</c:Countrty>
    <c:County i:nil="true" />
    <c:Email i:nil="true" />
    <c:Fax i:nil="true" />
    <c:HomePhone i:nil="true" />
    <c:LocationId>5747510</c:LocationId>
    <c:State>TN</c:State>
    <c:WorkPhone i:nil="true" />
    <c:ZipCode>38120-9427</c:ZipCode>
    </c:Address>
    <c:ContactId>339835</c:ContactId>
    <c:Email i:nil="true" />
    <c:Fax i:nil="true" />
    <c:FirstName>David</c:FirstName>
    <c:LastName>Seay</c:LastName>
    <c:Phone i:nil="true" />
    <c:Title i:nil="true" /></c:PrimaryContact>
    </c:Company>
    <c:CreatedAt>2012-05-14T11:00:06.62</c:CreatedAt>
    <c:Employee>
    <c:Address>
    <c:AddressOne>5795 Widewater Parkway</c:AddressOne>
    <c:AddressTwo />
    <c:CellPhone i:nil="true" />
    <c:City>Dewitt</c:City>
    <c:Countrty i:nil="true" />
    <c:County />
    <c:Email>[email protected]</c:Email>
    <c:Fax />
    <c:HomePhone>gg</c:HomePhone>
    <c:LocationId>6001741</c:LocationId>
    <c:State>NY</c:State>
    <c:WorkPhone i:nil="true" />
    <c:ZipCode>13214</c:ZipCode>
    </c:Address>
    <c:Email></c:Email>
    <c:EmployeeId>11568</c:EmployeeId>
    <c:FirstName>Karlie</c:FirstName>
    <c:LastName>Jarvis</c:LastName>
    </c:Employee>
    <c:Employer i:nil="true" />
    <c:ModifiedAt>2012-05-14T11:33:34.29</c:ModifiedAt>
    <c:Notes />
    <c:ReferralDate i:nil="true" />
    <c:ReferralId>422</c:ReferralId>
    <c:ReferralSource>GCC</c:ReferralSource>
    <c:ReferralType /></b:BaseEntity>
    </a:ResponseData>
    <a:Status>Success</a:Status>
    </GetForOneCallResult>
    </GetForOneCallResponse>
    Regards
    Srinivas reddy

    Hi,
    Can you point out what the error is exactly??
    Also on a general note try the following:
    1)Right click on the project, go to Add> Add generated Items
    2)Select Generate Schemas
    3) Select the required document type and provide the path to the xml and click OK
    If you have not installed the WFX module, you will get below highlighted error.
    'WFX to XSD schema generation module is not installed. Execute 'C:\Program files (X86)\Microsoft Biztalk Server 2010\SDK\Utilities\Schema
    Generator\InstallWFX.vbs to install the WFX to XSD schema generation module.(Path to the Biztalk Installation folder may vary)
    So go ahead and register the module as it needs to be registered for the first time do remember to execute this vbs script as an
    Administrator  if the normal execution fails.
    I tried generating the xsd using your schema and I was successful(I tried it using the Well Formed XML as the document type).
    Hope this helps
    Regards,
    Mandar Dharmadhikari

  • Creating an XML instance from an XML Schema

    Hello,
    Does anyone know how to create a skeleton XML instance from the mandatory fields taken from an XML Schema?
    There might be a way with XSLT, however I cannot find the relevant tutorials for this issue.
    Can you please help me out?
    Thanks.

    Of course I meant how to achieve this "on the fly" using XSLT and Java.

  • Generate XML instance from a given XSD schema

    Is there an Oracle XDK Java API, which given an XSD as input, will
    generate a sample XML instance corresponding to that XSD.
    XMLSpy Tool can do this.
    I know JAXB can be used to generate Java Classes, which can then be used programmatically to generate XML Instances.
    I am looking for a solution other than JAXB where Java classes does not need to be generated.

    In JDeveloper an XML document instance may be generated from an XML Schema.
    Select File>New>General>XML. Select XML Document from XML Schema in Items listed. Click on OK button. The Create XML Document from XML Schema wizard gets started. Click on Next button. In File Location frame, specify XML file name. Select Use Registered Schemas, to create an XML document from a registered schema. Click on Next button. In Options frame, select Root Element and click on Next button. In the Finish frame, click on Finish button. An XML document instance gets added. The XML document has all of the elements defined in the XML Schema from which the XML document is instantiated.

  • XML instance validation against XML schema

    How can I get a reference on the error node object after
    validation against an XML schema ?
    Ex. :
    DOMParser domP = new DOMParser();
    domP.setXMLSchema(schemaDoc); // schemaDoc = ref. on an XMLSchema
    domP.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    domP.parse(reader); // reader contains the XML instance data
    If an error occurred, I only get a message string. What I need is to get a reference on the node object which contains the error in order to retrieve its properties to the schema.
    I could then alert the user with a message such as :
    "Data xxx is not valid ; it must be comprised between yy and zz...".
    Did somebody solve this problem ? May I use the XMLError class to do this ?
    Thank you

    Hi Ray,
    Were you able to resolve this issue? I am encountering a very similar problem where I am not connected to the internet and it fails during the newSchema method on javax.xml.validation.SchemaFactory. I have attempted to implement the suggestions of ExtremeGardener and vidyut with no luck.
    Per ExtremeGardener's suggestion of replacing xmlns:xs="http://www.w3.org/2001/XMLSchema" with xmlns:xs="XMLSchema.xsd" and storing it locally, it gave me an error for trying to set the "xs" or "xsd" prefixes to anything other than "http://www.w3.org/2001/XMLSchema." I forget the exact error. I also tried to use my own prefix and it did not like that either.
    Per vidyut's suggestion of using a catalog resolver, I believe that I have tried that too (if I understand correctly). I created an LSResourceResolver and tied it to the SchemaFactory. I can invoke it for a namespace but that did not resolve the issue because it only invokes the resolver on an import, include, or redefine. I believe that it is trying to reach the internet due to the xmlns:xs="http://www.w3.org/2001/XMLSchema" attribute within the top-level schema element in the XSD and I know of no way to invoke it for that.
    I also created an ErrorHandler and tied it to the SchemaFactory. That shows me the errors and they are all related to the standard XML data types defined in XMLSchema.xsd. The errors that I am seeing are all of this form: "UndeclaredPrefix: Cannot resolve 'xs:string' as a QName: the prefix 'xs' is not declared."
    I am currently using the SchemaFactory in Java 1.5, but I am thinking about trying the Xerces SchemaFactory since they are not exactly the same implementation.
    Does anyone have any other suggestions? Any help you can provide would be greatly appreciated!
    Thanks,
    betzro1

  • DTD + Schema reference in xml file to be inserted

    Hi,
    I am pasting sample code where I want to have schema + DTD reference. Schema file is used for validating the file and DTD is needed for entity resolution.
    <?xml version="1.0" ?>
    <!DOCTYPE html [
    <!ENTITY reg    "®">
    ]>
    <html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.xsd">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Script-Type" content="text/javascript" />
    </head>
    <!-- class="header" -->
    <body>
    Hi all. Register symbol should be displayed now &reg;
    </body>
    </html>I have already registered http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.xsd schema with the DB. But, when I try to insert this xml data in the DB, I'm getting the following error.
    SQL Error: ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00104: Warning: element "html" is not declared in the DTD
    Error at line 5
    ORA-06512: at "SYS.XMLTYPE", line 296
    ORA-06512: at line 1
    31011. 00000 -  "XML parsing failed"
    *Cause:    XML parser returned an error while trying to parse the document.
    *Action:   Check if the document to be parsed is valid.Anyone please help me in resolving this issue..
    Thanks in advance,
    Divya.
    Edited by: user11853430 on Nov 28, 2010 8:45 PM

    Thanks for the information. I assume you are intending using Schema Based Binary XML storage. Attempting to use Object Realtional storage for XHTML is not something we would recommend. I am checking with development to see if we have a way of using the DTD just for entity resolution. In the mean time the only other solution I can think of it to include the full or partial DTD for XHTML in addition to the entity defintion..
    I tried this, but it doesn't seem to work
    SQL> select XMLTYPE(
      2  '<?xml version="1.0" ?>
      3  <!DOCTYPE html [
      4  <!ENTITY reg    "r">
      5  <!ELEMENT html ANY>
      6  ]>
      7  <html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.xsd">
      8    <head>
      9      <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
    10      <meta http-equiv="Content-Style-Type" content="text/css" />
    11      <meta http-equiv="Content-Script-Type" content="text/javascript" />
    12    </head>
    13
    14  <!-- class="header" -->
    15    <body>
    16      Hi all. Register symbol should be displayed now &reg;
    17     </body>
    18  </html>') from dual
    19  /
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00106: Warning: attribute "xmlns:xsi" of element "html" is undefined
    Error at line 6
    ORA-06512: at "SYS.XMLTYPE", line 310
    ORA-06512: at line 1
    no rows selectedWhat you want is the DTD equivilant of
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="html" type="xs:anyType">
              <xs:annotation>
                   <xs:documentation>Comment describing your root element</xs:documentation>
              </xs:annotation>
         </xs:element>
    </xs:schema>I also tried making the xhtml-strict DTD available... but that did not appear to work
    First load the DTD and ENT files into the repository.
    C:\xdb\examples\DTD>sqlplus /nolog @loadDTD %CD%
    SQL*Plus: Release 11.2.0.2.0 Production on Sat Nov 27 10:55:32 2010
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    SQL> spool loadDTD.log
    SQL> --
    SQL> connect system/oracle
    Connected.
    SQL> --
    SQL> create or replace directory XMLDIR as '&1'
      2  /
    old   1: create or replace directory XMLDIR as '&1'
    new   1: create or replace directory XMLDIR as 'C:\xdb\examples\DTD'
    Directory created.
    SQL> --
    SQL> declare
      2    V_RESULT             BOOLEAN;
      3    V_DTD_FOLDER         VARCHAR2(700) := '/sys/DTD';
      4    V_DTD_TRANSITIONAL   VARCHAR2(700) := '/sys/DTD/xhtml1-transitional.dtd';
      5    V_DTD_STRICT         VARCHAR2(700) := '/sys/DTD/xhtml1-strict.dtd';
      6    V_DTD_STRICT_REG     VARCHAR2(700) := '/sys/DTD/xhtml1-strict+reg.dtd';
      7    V_ENT_LAT1           VARCHAR2(700) := '/sys/DTD/xhtml-lat1.ent';
      8    V_ENT_SYMBOL         VARCHAR2(700) := '/sys/DTD/xhtml-symbol.ent';
      9    V_ENT_SPECIAL        VARCHAR2(700) := '/sys/DTD/xhtml-special.ent';
    10  begin
    11    if (not DBMS_XDB.existsResource(V_DTD_FOLDER)) then
    12      V_RESULT := DBMS_XDB.createFolder(V_DTD_FOLDER);
    13    end if;
    14    if (not DBMS_XDB.existsResource(V_DTD_TRANSITIONAL)) then
    15      V_RESULT := DBMS_XDB.createResource(V_DTD_TRANSITIONAL,bfilename('XMLDI
    R','xhtml1-transitional.dtd'));
    16    end if;
    17    if (not DBMS_XDB.existsResource(V_DTD_STRICT)) then
    18      V_RESULT := DBMS_XDB.createResource(V_DTD_STRICT,bfilename('XMLDIR','xh
    tml1-strict.dtd'));
    19    end if;
    20    if (not DBMS_XDB.existsResource(V_DTD_STRICT_REG)) then
    21      V_RESULT := DBMS_XDB.createResource(V_DTD_STRICT_REG,bfilename('XMLDIR'
    ,'xhtml1-strict+reg.dtd'));
    22    end if;
    23    if (not DBMS_XDB.existsResource(V_ENT_LAT1)) then
    24      V_RESULT := DBMS_XDB.createResource(V_ENT_LAT1,bfilename('XMLDIR','xhtm
    l-lat1.ent'));
    25    end if;
    26    if (not DBMS_XDB.existsResource(V_ENT_SYMBOL)) then
    27      V_RESULT := DBMS_XDB.createResource(V_ENT_SYMBOL,bfilename('XMLDIR','xh
    tml-symbol.ent'));
    28    end if;
    29    if (not DBMS_XDB.existsResource(V_ENT_SPECIAL)) then
    30      V_RESULT := DBMS_XDB.createResource(V_ENT_SPECIAL,bfilename('XMLDIR','x
    html-special.ent'));
    31    end if;
    32    commit;
    33  end;
    34  /
    PL/SQL procedure successfully completed.
    SQL> select ANY_PATH
      2    from RESOURCE_VIEW
      3   where under_path(RES,'/sys/DTD') = 1
      4  /
    ANY_PATH
    /sys/DTD/xhtml-lat1.ent
    /sys/DTD/xhtml-special.ent
    /sys/DTD/xhtml-symbol.ent
    /sys/DTD/xhtml1-special.ent
    /sys/DTD/xhtml1-strict+reg.dtd
    /sys/DTD/xhtml1-strict.dtd
    /sys/DTD/xhtml1-symbol.ent
    /sys/DTD/xhtml1-transitional.dtd
    8 rows selected.
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64
    bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:\xdb\examples\DTD>However even after adding the references to the XML document
    SQL> select XMLTYPE(
      2  '<?xml version="1.0" ?>
      3  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      4          "/sys/DTD/xhtml1-strict+reg.dtd">
      5  <html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.xsd">
      6    <head>
      7      <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
      8      <meta http-equiv="Content-Style-Type" content="text/css" />
      9      <meta http-equiv="Content-Script-Type" content="text/javascript" />
    10    </head>
    11
    12  <!-- class="header" -->
    13    <body>
    14      Hi all. Register symbol should be displayed now &reg;
    15     </body>
    16  </html>') from dual
    17  /
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00217: invalid character 402 (U+0192)
    Error at line 3
    Error at line 34
    Error at line 25
    ORA-06512: at "SYS.XMLTYPE", line 310
    ORA-06512: at line 1
    no rows selected
    SQL>

  • Creating schema from an XML file in Java

    I know that there are a lot of tools out that that do this, but I need some special conversion done.
    Is there any source code out there that shows you how to take in an XML file and generate schema for it using Java? The only thing I found used C# and various Microsoft XML classes that don't either exist or do different things in Java.
    Thanks!

    Refer "trang" in http://hacks.oreilly.com/pub/h/2106. The jar will have to be present in Classpath as well.
    But it is always better to first define schema rather than generating constraints(schema) based on a XML instance. A generated schema may not have all the constraints that your application might need for enforcement.

  • Specifying Schema Location in XML file and not in the Java code

    I have a repository of schema xsd files. When I receive my xml file, I need to validate it against the specified schema. The xml file would declare the schema location, using the following syntax:
    <CERD:CERD xsi:schemaLocation = "..\CERD.xsd" xmlns:CERD = "CERD.xsd" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance">
    Is it really necessary to define the schema location again in the JAVA code? Why set the schemaLocation in the xml file at all then?
    Does anybody have any examples where the schema location is not set in the JAVA code? I am using Java 1.6, and at this point in time I only need to validate. Any help would be appreciated.

    Thank you very much for your quick reply. I have made some progress but I am still stumped.
    In my code I am doing this:
    SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema schema = factory.newSchema();
    Validator validator = schema.newValidator();
    validator.validate(XML_SOURCE);
    I find this works if my schema does not have a target namespace. I have downloaded the following simple example from the internet that uses a target namespace and it fails:
    library1.xsd:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://example.org/prod"
    xmlns:prod="http://example.org/prod">
    <xsd:element name="product" type="prod:ProductType"/>
    <xsd:complexType name="ProductType">
    <xsd:sequence>
    <xsd:element name="number" type="xsd:integer"/>
    <xsd:element name="size" type="prod:SizeType"/>
    </xsd:sequence>
    <xsd:attribute name="effDate" type="xsd:date"/>
    </xsd:complexType>
    <xsd:simpleType name="SizeType">
    <xsd:restriction base="xsd:integer">
    <xsd:minInclusive value="2"/>
    <xsd:maxInclusive value="18"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>
    <prod:product xmlns:prod="http://example.org/prod"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="library1.xsd"
    effDate="2001-04-02">
    <number>557</number>
    <size>10</size>
    </prod:product>
    I get the following SAXParseException when I validate:
    [line 4, col 36|
    cvc-elt.1: Cannot find the declaration of element 'prod:product'.
    Am I doing something wrong with the namespace declaration?
    Edited by: alfredamorrissey on Oct 31, 2007 6:34 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Object Oriented XML Instances - existing standard?

    Hi All
    I am in search for a standard/package that can remove
    redundancy and reduce inconsistencies in XML. It ought
    to be done by using object oriented XML instances. I do
    not mean XML schema languages like SOX. The
    concept I refer to is used earlier on in the config-file. I
    have implemented a simple version but as soon as I
    realized its potential I also realized that there has to be
    an existing standard out there. I have searched the web
    without any luck, but since I am new to XML there is a big
    chance that I have missed it. I would be grateful if anyone
    could point me in the right direction.
    To clarify I have an example. Its a small part from the
    config-file used by my database bridge and this part is
    used to define fields and tables. Following two attributes
    are reserved
    1. did - the identity of this instance. The name space for
    this definition is restricted to the tag name, but can be
    seen from anywhere in the project.
    2. eid - the identity of the instance that this instance extends.
    <database did="my database">
      <field_definitions>
        <field did="super" key="no" unique="no" visible="yes" allow_null="no"/>
        <field did="boolean" eid="super" class="ops.dbb.FieldBoolean"
               default="false"/>
        <field did="integer" eid="super" class="ops.dbb.FieldInteger"
               default="0" display_size="10"/>
        <field did="auto_inc" eid="integer" class="ops.dbb.FieldAutoInc"
            key="yes" unique="yes" name="id" visible="no"/>
        <field did="string" eid="super" class="ops.dbb.FieldString"/>
        <field did="string_10" eid="string" size="10"/>
        <field did="note" eid="string" size="50" name="note" allow_null="yes"/>
      </field_definitions>
      <tables>
        <table did="users">
          <field eid="auto_inc"/>
          <field did="username" eid="string_10"/>
          <field did="password" eid="string_10" visible="no"/>
          <field eid="note"/>
        </table>
        <table did="admin_users" eid="users">
          <field did="security_level" eid="integer"/>
        </table>
      </tables>
    </database>If there are only a few tables this might not be
    justified, but used in a project with hundreds of
    tables, this will help considerable.
    As fun as it is to reinvent the wheel, I am trying
    not to.

    Either there are functions in JAXB that I am missing
    or you are misunderstanding me jmwollny. I understand
    that given a valid XSD schema JAXB will generate
    interfaces and classes that I can work with instead of
    working with XML files directly. This is really cool,
    but it is not the concept I am looking for. When I
    write 'Object Oriented XML Instances' I do not
    referring to Java, I mean that the XML elements in the
    config-file are capable of inheritance, creating
    interfaces, creating abstract elements and more. Here
    is a smaller example.
      <field did="super" key="no" unique="no"/>
      <field did="integer" eid="super" unique="yes"/>If we take a look at the second field where
    did="integer", it is inheriting the attribute key="no"
    from the field where did="super" since the attribute
    eid="super" exists. We can also see that since
    polymorphism is supported, unique="yes" in the second
    field is replacing unique="no" in the first field.
    The reason why I think this is helpful is because it
    will reduce redundancy and inconsistencies in the
    config-file.

  • Loading xml instances into repository

    Hello,
    I have successfully registered an xml schema document at the XML DB repository. A table had been created and the storage is object-relational.
    Now I want to load XML instances of the registered schema into the repository using WebDAV or HTTP. How can I tell the repository that these XML documents are schema instances and that they should be rows of the created table?
    Thanks in advance.
    Lars Geldner

    Lars,
    Since no one else has answered this inquiry, I'll give you my opinion. You will need to add the namespace to the XML document when loading it into the repository. This way the XMLDB engine will know where the document needs to go to get shredded.
    I've had trouble when using the drag and drop of WebDav to load up .xml docs into a registered schema. It was easier for me to use the directory entry pointer and load them up to the XMLDB that way. It may have been my expierence only though.

  • TF244069: An error occurred while checking the provisioning status of the reporting database schema for a PWA instance.

    The command TfsAdmin ProjectServer /RegisterPWA causes next error:
    TF244069: An error occurred while checking the provisioning status of the reporting database schema for a PWA instance.
    Project Server returned the following error: "Server was unable to process request. ---> The request failed with HTTP status 401: Unauthorized.".
     (type ProvisionException)
    Exception Stack Trace:    at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionPwaDBSchema.HandleSoapException(SoapException soapException, String errorResourceString)
       at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionPwaDBSchema.IsDBSchemaProvisioned()
       at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionManager.Provision()
    I installed SharePoint 2013 and Project Server 2013 as farm and TFS 2012 and my account has permissions everywhere. I read article
    http://msdn.microsoft.com/en-us/library/gg412653.aspx and gave full permissions for TFS account to SQL and Project, Project app pool account to SQL, but still have an error.
    How can I find out what exactly permissions are not enough???

    The problem was in claims authentication. Changed to Windows and all worked out.

  • Trying to reinstall CS5.5 Master Collection from DVD media on Windows 7 64 bit - setup.exe fails due to msxml3.dll error PDApp message [FATAL] PIM - Failed to Create XML instance : DOMDocument40 ADXML::initWithXMLPath Error:80040154

    If anyone is able to solve this they are a genius (or I am doing something very stupid!)
    I am trying to reinstall CS5.5 Master Collection from DVD media on Windows 7 64 bit PC but setup.exe fails due to a msxml3.dll error.
    Following a big bundle of recent Windows 7 updates, I started getting 'bad image' msxml3.dll error messages when opening any CS5.5 master collection program (Eg Premiere / Photoshop / Illustrator / Dreamweaver). Following advice on some threads here I tried uninstalling and then using the Adobe CC Cleaner Tool to clean up install, then reinstalling from my original DVD media.
    Whenever I try using run setup.exe from installtion disc 1 the installing fails due to 'Missing files'. I have also tried dowloading trial versions and runing setup.exe fro mthe downloaded files but i still get the same message.
    I have searched the forum and others have experienced this error but none of the solutions I have found seem to be working for me - as many seem to relate to download installations whereas I am installing from original DVD media (which worked fine before on the same PC)
    These are the FATAL messages from the PDApp log
    12/11/2014 15:29:27 [FATAL] PIM - Failed to Create XML instance : DOMDocument40 ADXML::initWithXMLPath Error:80040154
    12/11/2014 15:29:27 [FATAL] Setup - Could not initialize ADXML object
    12/11/2014 15:29:27 [FATAL] Setup - Unable to initialize. Error parsing setup.xml file
    The PDApp troubleshooting seems to indicate that this is caused by error in downloads but I am getting it with both original media DVD and downloads.
    I have also tried using my logon (which has admin privileges) and under our main admin account - and I get the same errors.
    Is a clean install of Windows 7 + CS5.5 my only option?
    Any help / info / advice / solutions very much appreciated! I have spent the last 2 days trying to sort this out and seem to be getting nowhere.
    Thanks.

    Thanks for the reply kglad - much appreciated.
    I have already tried that option (along with downloading files) as it was one of the solutions mentioned on other threads, but that also failed.
    Any other ideas?

  • XML SCHEMA registration for XML TYPE (storing XML files in Oracle 10g)

    I have created the XML Schema for the XML file stored in Oracle 10g and also added this Schema into the database. I have related that schema with the column in the table which contains the XML file. When i execute the query to fetch the data from the stored file i am getting a blank resultset. Is registering the XML Schema is necessary, if yes then please let me know the process of doing it. I have tried following steps to register Schema, but it is not working
    Step1:
    DECLARE
    v_return BOOLEAN;
    BEGIN
    v_return := dbms_xdb.createFolder('/home/');
    v_return := dbms_xdb.createFolder('/home/DEV/');
    v_return := dbms_xdb.createFolder('/home/DEV/xsd/');
    v_return := dbms_xdb.createFolder('/home/DEV/messages/');
    v_return := dbms_xdb.createFolder('/home/DEV/employees/');
    COMMIT;
    END;
    STEP 2:
    Connecting To XML DB
    Step3:
    Register XML schema
    I am failing to execute step number 2 and hence not able to register the schema also.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by sudeepk:
    If a java exception is thrown probably during ur install u might have forgotten
    grant javauserpriv to scott;
    grant javasyspriv to scott;
    Thanks
    [email protected]
    <HR></BLOCKQUOTE>
    Thank you!!!

  • How to obtain the encoding scheme for an XML document

    How do you go about reading the encoding scheme for an XML document??
    More specifically how do I read the line:
    <?xml version="1.0" encoding="UTF-8"?>
    (Using Win32 C++ XML Parser 2.0.3 as SAX).
    null

    I work mostly with the Java versions of the parser so you'll have to make the translation to C++. As far as I know, you can't use the SAX API to access to the encoding.
    You need to use the DOM along with Oracle's extension to the basic DOM functionality. Oracle's package, oracle.xml.parser.v2 defines a class which implements the Document interface called XMLDocument. This class has a method, getEncoding(), which returns the encoding. You would use the method in getDocument() in the Parser base class inherited by DOMParser to retrive the XMLDocument.
    Jeff

  • How to validate an xml with a schema w/o specifying the schema in the xml

    I have done xml validation with xml schemas, where the xml points to the xsd to use. However, I would like to not have to specifiy the xml schema in the xml document (and can't ensure that the xml coming to us has that in it). How do I, in the java code, tell it what schema to use in validation?
    Brian

    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));

Maybe you are looking for

  • My MacBook was stolen and I need to know the MAC address

    An emergency question to Apple support. My MacBook was stolen and I need to know the MAC address of its network card. I have a receipt with the serial number of my MacBook. Can you assist? My serial: W8***66D Thank you p.s Any ideas how I can find it

  • Unable to install Oracle 8.0.5 on Caldera Linux 1.3

    Hello, I am getting problem when i run ./orainst from /mount_point/orainst - its giving error' ''sh - ./orainst.cm no such file or directory''. I have done proper user and group creation, environment settings, permissins,path settings etc.. I have ne

  • Searching for the right product.

    Greetings - Please excuse me if this is the wrong forum to post this question to. I am trying to find out which Adobe product is best suited for creating high definition (1080p) slideshows. My requirements are: The ability to import JPEG and/or TIFF

  • How to link a search help to a selection screen field

    Hi All, I am using field PKWRG from PA0017 table in selection screen. I need F4 help there as in Tcode PA30 . But this field does not have value table or check table. However, it has a search help attached 'TRV_PKWRG' . But, I donot know how to assig

  • Pop-up window "Experiencing Connection Problems!"

    The last week or so I have had this window (below) popping up on the top right of my screen. There seems to be no logic to when it appears - it goes away on it's own. Safari is in the forground. "Block Pop-up Windows" is enabled in preferences. I don