Sitemap

Amicuk Programming Answers

QUERY IN XSD WHILE IMPORTING INTO IR

-0001-11-30   Views:0

Advertisement

Dear Collegues,             I am trying to import extensible xsd into IR.After importing i am having a issue. <u><b>BookCatalogue.xsd (first xsd)</b></u> <?xml version="1.0" encoding="UTF-8"?> <xsd:sche

Dear Collegues,
            I am trying to import extensible xsd into IR.After importing i am having a issue.
<u><b>BookCatalogue.xsd (first xsd)</b></u>
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"  elementFormDefault="qualified">
<!--> <xsd:element name="Book" type="CardCatalogueEntry"/> -->
<xsd:element name="Book">
    <xsd:complexType>
        <xsd:sequence>
            <xsd:element name="Title" type="xsd:string"/>
            <xsd:element name="Author" type="xsd:string"/>
            <xsd:element name="Date" type="xsd:string"/>
            <xsd:element name="ISBN" type="xsd:string"/>
            <xsd:element name="Publisher" type="xsd:string" />
        </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
</xsd:schema>
<u><b>MainSchema.xsd</b></u>
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"  targetNamespace="http://www.library.org" xmlns="http://www.library.org" elementFormDefault="qualified">
    <xsd:include schemaLocation="BookCatalogue.xsd"/>
    <xsd:element name="BBook" type="Library12"/>
<xsd:complexType name="Library12">
     <xsd:sequence>
          <xsd:element name="BookID" type="xsd:string"/>
          <xsd:element name="Domain" type="xsd:string"/>
                    <xsd:element name="BookCatalogue">
                         <xsd:complexType>
                             <xsd:sequence>
    <b> <xsd:element ref="Book" minOccurs="0" maxOccurs="unbounded"/></b>                                </xsd:sequence>
                         </xsd:complexType>
                     </xsd:element>    
     </xsd:sequence>
</xsd:complexType>
</xsd:schema>
In XMLSPY when i generate xml ,i could see
<?xml version="1.0" encoding="UTF-8"?>
<!Sample XML file generated by XMLSpy v2006 sp2 U (http://www.altova.com)>
<BBook xmlns="http://www.library.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.library.org
C:\DOCUME~1\cshekar\Desktop\XSLTMAPPING\Bookcatalogue\MainSchema2.xsd">
     <BookID>String</BookID>
     <Domain>String</Domain>
     <BookCatalogue>
          <b><Book>
               <Title>String</Title>
               <Author>String</Author>
               <Date>String</Date>
               <ISBN>String</ISBN>
               <Publisher>String</Publisher>
          </Book>
          <Book>
               <Title>String</Title>
               <Author>String</Author>
               <Date>String</Date>
               <ISBN>String</ISBN>
               <Publisher>String</Publisher>
          </Book></b>     </BookCatalogue>
</BBook>
when i import the main schema.xsd.
while maping i could see
only
     <<b>BookID>String</BookID>
     <Domain>String</Domain>
     <BookCatalogue>
          <b><Book></b> the elements under Book are not appearing.
Any pointers to this.
Regards
chandra

The replay answer
Advertisement
Hi,
take a look at this thread. It has a similar problem.
Re: External definition for XSD files and import element in the XSD files
The solution is interesting,
<i>The main XSD file had a default namespace, and also an element that is referring to an element in another XSD file (Import). After changing the default namespace, to a prefix and accordingly manipulating the elements, and then importing them to external definitions the problem got fixed.</i>
Try this.
Regards,
bhavesh

Go to See the other 6 answers

QUERY IN XSD WHILE IMPORTING INTO IR

Category:DefaultRelease time:-0001-11-30Views:130

Dear Collegues,             I am trying to import extensible xsd into IR.After importing i am having a issue. <u><b>BookCatalogue.xsd (first xsd)</b></u> <?xml version="1.0" encoding="UTF-8"?> <xsd:sche[More]

Custom xsd document validation referencing child xsd via import/include

Category:DefaultRelease time:2015-10-11Views:130

Hi, I need to build an ebXML 2.0 agreement which will use multiple xsd's. I have a root xsd document(Company.xsd) which imports two child xsd document(Product.xsd and Person.xsd). I've validated the xsd's and it seems to work. I even built a composit[More]

Generated schema on a query returns xsd:string for date data type

Category:DefaultRelease time:-0001-11-30Views:130

I'm a complete newbie to oracle's xml generation and have encountered the following problem. But first the important details: select * from v$version Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod PL/SQL Release 10.2.0.2.0 - Product[More]

Error in XSD Parsing - Imported XSD not being loaded

Category:DefaultRelease time:2015-10-11Views:130

I am trying to validate XML with XSD. The XML has elements in two different namespaces:- 1-"http://schemas.xmlsoap.org/soap/envelope/" 2-urn:Hotel_Reserve So in Schema I have defined elements Envelop, Header and Body in "http://schemas.xmls[More]

Validate XML against XSD with imported xsd's

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I'm stuck for a while attempting to validate a xml against some xsd's. In the code below you can find my xsd's structure: (I need to use this structure in order to reuse the baseXsd's files. CommonTypes.xsd <?xml version="1.0" encoding[More]

A handy query which lists all important DG related init parameters

Category:DefaultRelease time:-0001-11-30Views:130

Version : 11.2/10.2 Do you guys have a handy query which I could run at Primary and Standby sites which will lists all important Data Guard related init parameters. Something like below but a query that list important Dataguard related init.ora param[More]

How to Query an XSD

Category:DefaultRelease time:-0001-11-30Views:130

Is there a way of getting element names and attributes from a registered Schema in 10gR2. During the load we are building up the extract query by hardcoding the attribute names. As the XSD changes I want to do this dynamically based on the schemaloca[More]

Unable to create web service from wsdl that contains xsd as import

Category:DefaultRelease time:-0001-11-30Views:130

I have written a WSDL and tried to create the web services by weblogic workshop. Prior to that I have created the war file and able to deploy them properly. Also able to access any wsdl by hitting the server. But when I am trying to create the web se[More]

Query generated program not imported to Quality server

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, I am working on a query. It is an existing query which has been converted to an ABAP program in Z. The requirement was to make some minor changes in the existing report, like change in the selection screen and include an extra column in the o[More]

Query size by scheduling(IMPORTANT)

Category:DefaultRelease time:-0001-11-30Views:130

If a user will schedule a report in user edition he receives the following error "Exceeded maximum query size". But if the user executes immediately (without scheduling) the query is working.....? How can i solve this problem. I tried many thing[More]

Query Regarding XSD Mapping

Category:DefaultRelease time:-0001-11-30Views:130

Hi Experts, I 've the following requirement: My Source XSD is of the form: <element name="source" ....> <complextype> <element name="customNode" minoccurs=*0* maxoccurs=20> <complextype> <sequence> <ele[More]

Hot
Hi, I have a few reports with hyperlinks to other reports that contain multiple input parameters, which makes the links very long. ( greater than 400 characters ) When the reports are saved as excel, I am unable to invoke the child report on clicking [More]
Greetings (and help me please, I'm at the end of my rope :-)) Recently, I discovered my HP CP4005n would no longer print - documents would just remain queued. To make a long story short, I think the networking portion of this printer has died, but I [More]
Sorry, solved! Message was edited by: xixiaoHi Chris, Thanks for your reply. I said that it worked but looks like I still have a question. Can I use an interface type as an instance member. If I do, I get an exception Exception Description: [MySample [More]
Hi folks, I am puzzled when looking at my itunes account. I bought a store office 365 package for $100, and in the process of installing it, somehow ended up with fees for smart converter, ms office package and pack for ms office, totalling another $ [More]
We just installed 9iAS 1.0.2 and Discoverer 3i on an NT box. We also use NAT IP Translation at our agency. Everything works fine if we're connecting to the Discoverer server using the local IP, but if we're outside the network, we have to connect usi [More]
Hi Folks,    I am facing a high priority issue in work flow in PRD, User has created certain PR's for which system has raised required events to tirgger the workflow items and the whole approval job is completely done. Accidentally, the same work flo [More]
When exporting a photo to photo library, all EXIF data is lost. What rational is behind this?Thanks for your reply on this! One issue seems to be with Foto Library app itself. When running an auto-correct there it looks like EXIF will be stripped mor [More]
Hi, I have the directory server's admin username, admin password, system ip and port along with the BaseDN, how do i check whether the BaseDN that was entered by the user is valid one using JNDI..? thanks, Barani> gopalkrishna baliga wrote: > The fi [More]
According to the lastest update for Muse which is now Muse CC that I am using at my current job it says that it includes Forms Anywhere. However nothing on the Adobe site with videos, or FAQs or anything else expounds upon this. I want to know exactl [More]
design the output of every tool we use to look like merge-able chains in a DSCM. this is something i've been thinking about long before i came to Arch.  i want to see next-generation package/configuration/change management in a distributed distributi [More]