Convert DTD to XSD

Hi,
I hold a DTD of OAGIS 7.2 and I need convert this to an XSD for my BPEL process to consume. I would like to know if there is any editor which helps in this conversion. I'd tried using XMLSpy but that doesnt give me the correct version(I mean the tree structure is not correct). I tried the native format builder but that doesnt help as my DTD has references to other DTDs as well. Can someone point me to a method of converting DTD to XSD?
Thanks in advance,
Gayathri

Thanks Marc. It works now.
The option in JDev Tools-> Convert DTD to XSD also creates XSD. But one thing I dont understand is that if I try to validate the generated XSD in XMLSpy it throws some errros, but when imported into the BPEL process, it parses successfully. If someone has an answer to it, please lemme know.
Thanks,
Gayathri

Similar Messages

  • Converting dtd to xsd using java

    Hi,
    please help me i want to convert a dtd file to xml shema file how can i do it using java binding with xml or any api for thise. please send examples if any
    Thanks in advance
    Lokanath
    Message was edited by:
    Akilesh

    I've never used it, but there's this:
    http://jakarta.apache.org/poi/

  • File Adapter - Native XSD - DTD to XSD

    Hello,
    a. I have to read a data file using file adapters, which is sent in the following pattern (dtd below):
    <?xml version="1.0" encoding="US_ASCII"?>
    <!DOCTYPE message SYSTEM "d3l.dtd">
    <message name="ITEM" type="ItemArray" object="ITEM_BO">
    <struct id="ItemRecord">
         <field name="Process_Flag"><limstring delimiter=";"/></field>
         <field name="Item_Number"><limstring delimiter="|"/></field>
         <field name="Attribute2"><limstring delimiter="|"/></field>
    </struct>
    <limarray id="itarray" contchar="*" endchar="!">
         <typeref type="ItemRecord"/>
    </limarray>
    <struct id="ItemArray">
         <field name="ItemLine"><typeref type="itarray"/></field>
    </struct>
    </message>
    b. whose sample data is as below:
    ;P;|00030||TEST1|*;P;|00040||TEST2|!
    c. I am now in the process of designing my native xsd:
    i. I can either use convert dtd to xsd (or)
    ii. create my own sample schema definition which is similar to the above data structure
    In step (i), I could not convert the dtd to xsd, due to reference to d3l.dtd file.
    If anyone can advise where this d3l.dtd file can be found and where I should place it in 'SOA' it would be really helpful.
    In step (ii), I find that through the wizard I am able to create simple csv file styles, but not able to create the above data structure due to different delimiters (; and |) and also due to delimiter-embedding of data.
    It would be really helpful if someone can advise on how I must proceed with this issue.
    Thanks,
    Santhosh

    Hello Ramana,
    As for step one, the 'd3l.dtd' is a file which all Oracle Interconnect DTDs look up to. I am not able to locate it.
    As for step two, the data file the structure is of the following pattern :
    i. entire data is in single line of the data file..
    ii. first element will be embedded with semi colon
    iii. the other elements inside pipes
    iv. end of record is indicated using *
    v. end of file is indicated using !
    These are the rules based on which the data file is built.
    I don't have much experience in creating xsd (except for simple native xsds that I have created using the native xsd wizard of Jdev-BPEL).
    Using the native XSD wizard that is available with JDev-BPEL, I trust I cannot create complex data structure which is of the above pattern.
    If there is a good tool/method through which I can create the xsd as per the above listed rule structure, please advise.
    Thanks,
    Santhosh

  • Converting XML file to DTD or XSD file

    Hi everyone,
    We're currently doing an IDOC to File. The file should be in XML format. Right now, we have a sample XML file. We need to convert the file to DTD or XSD and then upload this in XI to be able to get it structure. We've tried different conversion tools to do this, however, the converted DTD/XSD file still has errors when we load it to XI. What we're thinking is to create a data type to achieve this. These are some of the fields in the file.
    <messageHeader creationDate>
    <catellae:gTTSDataDelivery creationDate="X" (...)>
    */<catellae:(…)>/<txnId>
    */<catellae:(…)>/<items>/<item>/<quantity>
    */<catellae:(…)>/<items>/<item>/<unitOfMea>
    */<catellae:(…)>/<items>/<item>/<prodDesc>/<matType>
    */<catellae:(…)>/<shipToAddress>/<nameAndAddress>/<city>
    */<catellae:(…)>/<shipToAddress>/<contactInformation>/<communicationChannel (…)
    It seems that there are more than 3 nodes. And in XI, only three nodes are allowed. Could you tell us how should we create the data type for this? Thanks in advance!

    Hi Mariel,
              Refer to the below link for conversion of XML to Xsd using Altova XML Spy.
    Re: data type for xml file
    For altova free trial Download:
    http://www.altova.com/download.html
    Please let me know if u need furthur information.
    Thanks,
    Bhargav.
    Note:Award points if found useful

  • Getting error while converting xml to xsd

    I am getting error"The table (citeinfo) cannot be the child table to itself in nested relations"
    at "http://www.flame-ware.com/products/xml-2-xsd/Default.aspx", while converting
    xml into xsd so i can register.
    Wherever citeinfo is there it is giving error.
    Please look at bold and suggest solution
    thank you
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE metadata SYSTEM "http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd">
    <metadata>
    <idinfo>
    <citation>
    *<citeinfo>(1)*<origin>MRF</origin>
    <pubdate>20040512</pubdate>
    <pubtime>09000000</pubtime>
    <title>BAS_EASEMENT</title>
    <edition>1</edition>
    <geoform>vector digital data</geoform>
    <serinfo>
    <sername>One</sername>
    <issue>One</issue>
    </serinfo>
    <pubinfo>
    <pubplace>San Jose</pubplace>
    <publish>CITY</publish>
    </pubinfo>
    <othercit>None</othercit>
    <onlink>www.mrf.com</onlink>
    <lworkcit>
    *<citeinfo>(2)*<pubdate>20040512</pubdate>
    <pubtime>09000000</pubtime>
    <edition>1</edition>
    <geoform>vector digital data</geoform>
    <serinfo>
    <sername>One</sername>
    <issue>One</issue>
    </serinfo>
    <pubinfo>
    <pubplace>San Jose</pubplace>
    <publish>CITY</publish>
    </pubinfo>
    <othercit>None</othercit>
    <onlink>www.mrf.com</onlink>
    *</citeinfo>(2)*</lworkcit>
    *</citeinfo>(1)*</citation>
    <descript>
    <abstract>Easement</abstract>
    <purpose>E911 System</purpose>
    <supplinf>None</supplinf>
    </descript>
    <timeperd>
    <timeinfo>
    <sngdate>
    <caldate>20040512</caldate>
    <time>09000000</time>
    </sngdate>
    </timeinfo>
    <current>publication date</current>
    </timeperd>
    <status>
    <progress>Complete</progress>
    <update>As needed</update>
    </status>
    <spdom>
    <bounding>
    <westbc>
    -122.339</westbc>
    <eastbc>
    -121.0716</eastbc>
    <northbc>
    37.4900</northbc>
    <southbc>
    36.9086</southbc>
    </bounding>
    </spdom>
    <keywords>
    <theme>
    <themekt>Easement</themekt>
    <themekey>Easement</themekey>
    </theme>
    <place>
    <placekt>San Jose</placekt>
    <placekey>San Jose</placekey>
    </place>
    <stratum>
    <stratkt>None</stratkt>
    <stratkey>None</stratkey>
    </stratum>
    <temporal>
    <tempkt>None</tempkt>
    <tempkey>None</tempkey>
    </temporal>
    </keywords>
    <accconst>None</accconst>
    <useconst>None</useconst>
    <ptcontac>
    <cntinfo>
    <cntperp>
    <cntper>Earl Harris</cntper>
    <cntorg>City of San Jose</cntorg>
    </cntperp>
    <cntpos>Project Manager</cntpos>
    <cntaddr>
    <addrtype>Actual Address</addrtype>
    <address>801 N 1 ST</address>
    <city>San Jose</city>
    <state>CA</state>
    <postal>90000</postal>
    <country>USA</country>
    </cntaddr>
    <cntvoice>408.277.5626</cntvoice>
    <cnttdd>408.277.5626</cnttdd>
    <cntfax>408.298.8382</cntfax>
    <cntemail>[email protected]</cntemail>
    <hours>9-5</hours>
    <cntinst>None</cntinst>
    </cntinfo>
    </ptcontac>
    <browse>
    <browsen>None</browsen>
    <browsed>None</browsed>
    <browset>None</browset>
    </browse>
    <datacred>Unknown</datacred>
    <secinfo>
    <secsys>FGDC</secsys>
    <secclass>Confidential</secclass>
    <sechandl>Confidential Information</sechandl>
    </secinfo>
    <native>Microsoft Windows NT Version 4.0 (Build 1381) Service Pack 6; ESRI ArcCatalog 8.3.0.800</native>
    <crossref>
    *<citeinfo>(3)*<origin>MRF</origin>
    <pubdate>20040512</pubdate>
    <pubtime>09000000</pubtime>
    <title>BAS_EASEMENT</title>
    <edition>1</edition>
    <geoform>vector digital data</geoform>
    <serinfo>
    <sername>one</sername>
    <issue>one</issue>
    </serinfo>
    <pubinfo>
    <pubplace>San Jose</pubplace>
    <publish>CITY</publish>
    </pubinfo>
    <othercit>None</othercit>
    <onlink>www.mrf.com</onlink>
    <lworkcit>
    *<citeinfo>(*4)
    <origin>MRF</origin>
    <pubdate>20040512</pubdate>
    <pubtime>09000000</pubtime>
    <title>BAS_EASEMENT</title>
    <edition>1</edition>
    <geoform>vector digital data</geoform>
    <serinfo>
    <sername>one</sername>
    <issue>one</issue>
    </serinfo>
    <pubinfo>
    <pubplace>San Jose</pubplace>
    <publish>CITY</publish>
    </pubinfo>
    <othercit>None</othercit>
    <onlink>www.mrf.com</onlink>
    *</citeinfo>(*3)
    </lworkcit>
    *</citeinfo*>(4)
    </crossref>
    </idinfo>
    <dataqual>
    <attracc>
    <attraccr>All the related attributes are populated 100%.</attraccr>
    <qattracc>
    <attraccv>100%</attraccv>
    <attracce>All the related attributes are populated 100%.</attracce>
    </qattracc>
    </attracc>
    <logic>100% adjusted,modified and captured easements.</logic>
    <complete>100%</complete>
    <posacc>
    <horizpa>
    <horizpar>Easement accuracy is 2 ft for 3" pixel Orthophoto, 5 ft for 9" pixel Orthophoto.</horizpar>
    <qhorizpa>
    <horizpav>2 ft for 3" pixel Orthophoto, 5 ft for 9" pixel Orthophoto.</horizpav>
    <horizpae>Easement accuracy is 2 ft for 3" pixel Orthophoto, 5 ft for 9" pixel Orthophoto.</horizpae>
    </qhorizpa>
    </horizpa>
    <vertacc>
    <vertaccr>Easement accuracy is 2 ft for 3" pixel Orthophoto, 5 ft for 9" pixel Orthophoto.</vertaccr>
    <qvertpa>
    <vertaccv>2 ft for 3" pixel Orthophoto, 5 ft for 9" pixel Orthophoto.</vertaccv>
    <vertacce>Easement accuracy is 2 ft for 3" pixel Orthophoto, 5 ft for 9" pixel Orthophoto.</vertacce>
    </qvertpa>
    </vertacc>
    </posacc>
    <lineage>
    <srcinfo>
    <srccite>
    <*citeinfo>(5)*<origin>MRF</origin>
    <pubdate>20040512</pubdate>
    <pubtime>09000000</pubtime>
    <title>BAS_EASEMENT</title>
    <edition>1</edition>
    <geoform>vector digital data</geoform>
    <serinfo>
    <sername>one</sername>
    <issue>one</issue>
    </serinfo>
    <pubinfo>
    <pubplace>San Jose</pubplace>
    <publish>CITY</publish>
    </pubinfo>
    <othercit>None</othercit>
    <onlink>www.mrf.com</onlink>
    <lworkcit>
    *</citeinfo>(5*)*<citeinfo>(6)*
    <origin>MRF</origin>
    <pubdate>20040512</pubdate>
    <pubtime>09000000</pubtime>
    <title>BAS_EASEMENT</title>
    <edition>1</edition>
    <geoform>vector digital data</geoform>
    <serinfo>
    <sername>one</sername>
    <issue>one</issue>
    </serinfo>
    <pubinfo>
    <pubplace>San Jose</pubplace>
    <publish>CITY</publish>
    </pubinfo>
    <othercit>None</othercit>
    <onlink>www.mrf.com</onlink>
    *</citeinfo>(5)*
    </lworkcit>
    *</citeinfo>(6)*
    </srccite>
    <srcscale>24000</srcscale>
    <typesrc>FTP</typesrc>
    <srctime>
    <timeinfo>
    <sngdate>
    <caldate>20040512</caldate>
    <time>09000000</time>
    </sngdate>
    </timeinfo>
    <srccurr>publication date</srccurr>
    </srctime>
    <srccitea>Unknown</srccitea>
    <srccontr>MGE dgn contains easement data.</srccontr>
    </srcinfo>
    <procstep>
    <procdesc>Easement data is reprojected from NAD27 to NAD83.
    Further it is adjusted as per the spatial alignment shown in MGE input dgn.</procdesc>
    <srcused>Easement</srcused>
    <procdate>20040512</procdate>
    <proctime>09000000</proctime>
    <srcprod>BAS_EASEMENT</srcprod>
    <proccont>
    <cntinfo>
    <cntperp>
    <cntper>Mahesh P Choudhury</cntper>
    <cntorg>Rolta International Inc.</cntorg>
    </cntperp>
    <cntpos>Project Manager</cntpos>
    <cntaddr>
    <addrtype>mailing address</addrtype>
    <address>5865 North Point Parkway</address>
    <city>Alpharetta</city>
    <state>GA</state>
    <postal>30022</postal>
    <country>USA</country>
    </cntaddr>
    <cntvoice>678.942.5015</cntvoice>
    <cnttdd>678.942.5015</cnttdd>
    <cntfax>678.942.5001</cntfax>
    <cntemail>[email protected]</cntemail>
    <hours>8-5</hours>
    <cntinst>None</cntinst>
    </cntinfo>
    </proccont>
    </procstep>
    </lineage>
    <cloud>Unknown</cloud>
    </dataqual>
    <spdoinfo>
    <indspref>unknown</indspref>
    <direct>Vector</direct>
    <ptvctinf>
    <sdtsterm>
    <sdtstype>String</sdtstype>
    <ptvctcnt>2203</ptvctcnt>
    </sdtsterm>
    </ptvctinf>
    </spdoinfo>
    <spref>
    <horizsys>
    <geograph>
    <latres>5.5</latres>
    <longres>5.5</longres>
    <geogunit>Decimal degrees</geogunit>
    </geograph>
    <geodetic>
    <horizdn>North American Datum of 1983</horizdn>
    <ellips>Geodetic Reference System 80</ellips>
    <semiaxis>1</semiaxis>
    <denflat>2</denflat>
    </geodetic>
    </horizsys>
    <vertdef>
    <altsys>
    <altdatum>North American Vertical Datum of 1988</altdatum>
    <altres>0.002</altres>
    <altunits>sf</altunits>
    <altenc>Attribute values</altenc>
    </altsys>
    <depthsys>
    </depthsys>
    </vertdef>
    </spref>
    <eainfo>
    <detailed>
    <enttyp>
    <enttypl>
    BAS_EASEMENT</enttypl>
    <enttypd>Contains geometry and attributes for easement segments</enttypd>
    <enttypds>Data Model Dictionary</enttypds>
    </enttyp>
    <attr>
    <attrlabl>BAS_EASEMENT_ID</attrlabl>
    <attrdef>Migrated from STREET table ID column. After all the existing IDs have been migrated, assign ID #70,001 onwards for the new easement (or what ever # is available sequentially using, street centerline #) ID's.</attrdef>
    <attrdefs>ESRI</attrdefs>
    <attrdomv>
    <udom>Sequential unique whole numbers that are automatically generated.</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>SURVEY_LENGTH</attrlabl>
    <attrdef>Actual length of easement (international foot).This DOES take into account the State Plane Coordinate System.</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>Surveyed segment length</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>ROW_WIDTH</attrlabl>
    <attrdef>Width of right-of-way (international feet)</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>Right-of-way width</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Updated from ROW files</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>FROM_EASEMENT_ID</attrlabl>
    <attrdef>Self-referential key to BAS_EASEMENT table, that contains locational information about the easement that the easement is digitized from. "FROM" is the starting point of digitization</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>IDs of an easement to which FROM side of this easement is connected.</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>FROM_STREET_ID</attrlabl>
    <attrdef>Foreign key to BAS_STREET_SEGMENT table, that contains locational information about street segment that the easement is digitized from. "FROM" is the starting point of digitization</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>IDs of an street segment to which FROM side of this easement is connected.</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>TO_EASEMENT_ID</attrlabl>
    <attrdef>Self-referential key to BAS_EASEMENT table, that contains locational information about the easement that the easement is digitized to. "TO" is the ending point of digitization.</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>IDs of an easement to which TO side of this easement is closely located.</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>TO_STREET_ID</attrlabl>
    <attrdef>Foreign key to BAS_STREET_SEGMENT table, that contains locational information about street segment that the easement is digitized to. "TO" is the ending point of digitization.</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>IDs of an street segment to which TO side of this easement is closely located.</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>OTH_PROCESSING_STATUS_ID</attrlabl>
    <attrdef>ID of the status/result of last run batch job.</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>Migrated from PLAN_1 in MGE tables and GIS_TRACKING.MDB Access Database</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>MUNICIPALITY_NAME</attrlabl>
    <attrdef>Name of municipality in which the easement primarily resides.</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <codesetd>
    <codesetn>MUNICIPALITY_NAME_DOMAIN</codesetn>
    <codesets>Data Model Dictionary</codesets>
    </codesetd>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Updated using Municipal boundary source data.</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>RECORD_DRAWING_FLAG</attrlabl>
    <attrdef>Engineering plan that has been accepted by the City of San Jose (Y or N).</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>USERNAME who last modified this record</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Updated using source data.</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>ACQUISITION_DATE</attrlabl>
    <attrdef>Official date engineering plan accepted by the City of San Jose on this date</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>Date/Time stamp of last record modification</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Updated using source data.</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>GEO_MOD_DATE</attrlabl>
    <attrdef>Time stamp when GEOMETRY column was last modified.</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>Time stamp when GEOMETRY column was last modified.</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Data modified date.</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>GDO_GEOMETRY</attrlabl>
    <attrdef>Contains spatial data with true arc geometry.</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>Oracle Spatial Geometry Data - True Arcs</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>MAN_OVERRIDE</attrlabl>
    <attrdef>This flag is 'N' by default. If this flag is set to 'Y' no unattended batch process will touch it ever again.</attrdef>
    <attrdefs>Data Model Dictionary</attrdefs>
    <attrdomv>
    <udom>Flag set for batch process</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>MESSAGE</attrlabl>
    <attrdef>Message from automated batch process to operator; can be "OK", or error message, or "to be checked", etc.</attrdef>
    <attrdefs>data model dictionary</attrdefs>
    <attrdomv>
    <udom>GDO_GEOMETRY.LEN</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>OTH_PLAN_CREATED</attrlabl>
    <attrdef>PLAN_1 in STREET table should be migrated to BAS_EASEMENT table OTH_PLAN_ID_CREATED column. This value should also be entered into the OTH_PLAN table PLAN_NAME column if not present.</attrdef>
    <attrdefs>Data Dictionary</attrdefs>
    <attrdomv>
    <codesetd>
    <codesetn>OTH_PLAN_DOMAIN</codesetn>
    <codesets>data model dictionary</codesets>
    </codesetd>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>OTH_PLAN_MODIFIED</attrlabl>
    <attrdef>PLAN_2 in STREET table should be migrated to BAS_EASEMENT table OTH_PLAN_ID_MODIFIED column. This value should also be entered into the OTH_PLAN table PLAN_NAME column if not present</attrdef>
    <attrdefs>Data dictionary</attrdefs>
    <attrdomv>
    <codesetd>
    <codesetn>OTH_PLAN_DOMAIN</codesetn>
    <codesets>data model dictionary</codesets>
    </codesetd>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>LINEAGE_ID</attrlabl>
    <attrdef>Artificial Numeric Identifier; Assigned to any graphical object; Unique throughout the system. Shared among tables. This column would also be used by EDL Administrator for lineage.</attrdef>
    <attrdefs>Data dictionary</attrdefs>
    <attrdomv>
    <udom>Artificial Numeric Identifier</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    <attr>
    <attrlabl>GDO_GEOMETRY.LEN</attrlabl>
    <attrdef>Created default</attrdef>
    <attrdefs>Data model</attrdefs>
    <attrdomv>
    <udom>unknown</udom>
    </attrdomv>
    <begdatea>20040512</begdatea>
    <enddatea>20040512</enddatea>
    <attrvai>
    <attrva>100</attrva>
    <attrvae>Unknown</attrvae>
    </attrvai>
    <attrmfrq>As needed</attrmfrq>
    </attr>
    </detailed>
    <overview>
    <eaover>Populated using MRF Tools</eaover>
    <eadetcit>Various sources</eadetcit>
    </overview>
    </eainfo>
    <distinfo>
    <distrib>
    <cntinfo>
    <cntperp>
    <cntper>Earl Harris</cntper>
    <cntorg>City of San Jose</cntorg>
    </cntperp>
    <cntpos>Project Manager</cntpos>
    <cntaddr>
    <addrtype>Actual Address</addrtype>
    <address>801 N 1 ST</address>
    <city>San Jose</city>
    <state>CA</state>
    <postal>90000</postal>
    <country>USA</country>
    </cntaddr>
    <cntvoice>408.277.5626</cntvoice>
    <cnttdd>408.277.5626</cnttdd>
    <cntfax>408.298.8382</cntfax>
    <cntemail>[email protected]</cntemail>
    <hours>9-5</hours>
    <cntinst>None</cntinst>
    </cntinfo>
    </distrib>
    <resdesc>Unknown</resdesc>
    <distliab>Unknown</distliab>
    <stdorder>
    <digform>
    <digtinfo>
    <formname>GM Pro Access</formname>
    <formvern>5.1</formvern>
    <formspec>GM Pro 5.1</formspec>
    <formcont>Easement data</formcont>
    <filedec>no compression applied</filedec>
    <transize>60</transize>
    </digtinfo>
    <digtopt>
    <onlinopt>
    <computer>
    <networka>
    <networkr>FTP</networkr>
    </networka>
    </computer>
    <accinstr>FTP</accinstr>
    <oncomp>FTP server</oncomp>
    </onlinopt>
    <offoptn>
    <offmedia>None</offmedia>
    <reccap>
    <recden>1</recden>
    <recdenu>None</recdenu>
    </reccap>
    <recfmt>None</recfmt>
    <compat>None</compat>
    </offoptn>
    </digtopt>
    </digform>
    <fees>Unknown</fees>
    <ordering>Unknown</ordering>
    <turnarnd>Unknown</turnarnd>
    </stdorder>
    <custom>Unknown</custom>
    <techpreq>Unknown</techpreq>
    <availabl>
    <timeinfo>
    <sngdate>
    <caldate>20040512</caldate>
    <time>09000000</time>
    </sngdate>
    </timeinfo>
    </availabl>
    </distinfo>
    <metainfo>
    <metd>20040512</metd>
    <metrd>20040512</metrd>
    <metfrd>20040519</metfrd>
    <metc>
    <cntinfo>
    <cntperp>
    <cntper>Mahesh P Choudhury</cntper>
    <cntorg>Rolta International Inc</cntorg>
    </cntperp>
    <cntpos>Project Manager</cntpos>
    <cntaddr>
    <addrtype>mailing address</addrtype>
    <address>5865 North Point Parkway</address>
    <city>Alpharetta</city>
    <state>GA</state>
    <postal>30022</postal>
    <country>USA</country>
    </cntaddr>
    <cntvoice>678.942.5015</cntvoice>
    <cnttdd>678.942.5015</cnttdd>
    <cntfax>678.942.5001</cntfax>
    <cntemail>[email protected]</cntemail>
    <hours>8-5</hours>
    <cntinst>None</cntinst>
    </cntinfo>
    </metc>
    <metstdn>FGDC Content Standards for Digital Geospatial Metadata</metstdn>
    <metstdv>FGDC-STD-001-1998</metstdv>
    <mettc>local time</mettc>
    <metac>Unknown</metac>
    <metuc>Unknown</metuc>
    <metsi>
    <metscs>Unknown</metscs>
    <metsc>Confidential</metsc>
    <metshd>Unknown</metshd>
    </metsi>
    <metextns>
    <onlink>http://www.esri.com/metadata/esriprof80.html</onlink>
    <metprof>ESRI Metadata Profile</metprof>
    </metextns>
    </metainfo>
    </metadata>

    I am having error while registering as undefined element for citeinfo, timeinfo and cntinfo as shown below
    Please could you help me solve.
    thanks
    </xs:appinfo>
              </xs:annotation>
    </xs:element>     
    <xs:complexType name="citationType">          
    <xs:sequence>               
    *<xs:element ref="citeinfo"/>*          
    </xs:sequence>     
    </xs:complexType>
    SQL> BEGIN
    2 DBMS_XMLSCHEMA.registerSchema(
    3 SCHEMAURL => 'fgdc-std-001-1998-sect011.xsd',
    4 SCHEMADOC => bfilename('XMLDIR','fgdc-std-001-1998-sect011.xsd'),
    5 CSID => nls_charset_id('UTF8'));
    6 END;
    7 /
    BEGIN
    ERROR at line 1:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00021: undefined element "citeinfo"
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
    ORA-06512: at line 2
    </xs:appinfo>          
    </xs:annotation>     
    </xs:element>     
    <xs:complexType name="timeperdType">          
    <xs:sequence>               
    *<xs:element ref="timeinfo"/>     *          
    <xs:element ref="current"/>          
    </xs:sequence>     
    </xs:complexType>     
    <xs:element name="current" type="currentType">
    </xs:appinfo>          
    </xs:annotation>     
    </xs:element>     
    <xs:complexType name="ptcontacType">          
    <xs:sequence>               
    *<xs:element ref="cntinfo"/>     *
    </xs:sequence>
         </xs:complexType>     
    <xs:element name="browse" type="browseType">          
    <xs:annotation>

  • DTD 2 XSD

    Hello,
    how can i convert a DTD into an XSD easily?
    (i want to use JAXB .. therefore i need an XSD but only have a DTD)
    thx

    I put "convert dtd to schema" into this Internet search engine I use for finding things out. It suggested that Stylus Studio and Altova both have that capability. Looked there might be some other possibilities as well.

  • Importing converted dtd into XI

    I am unable to import the following converted dtd into XI. Can someone assist?
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!W3C Schema generated by XMLSpy v2006 rel. 3 sp1 (http://www.altova.com)>
    <!Please add namespace attributes, a targetNamespace attribute and import elements according to your requirements>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
         <xs:import namespace="http://www.w3.org/XML/1998/namespace"/>
         <xs:element name="LoadTenderMotor">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Header"/>
                        <xs:element ref="LoadTenderMotorBody"/>
                   </xs:sequence>
                   <xs:attribute name="Version" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="2.0.2"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="Header">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="ThisDocumentIdentifier"/>
                        <xs:element ref="ThisDocumentDateTime"/>
                        <xs:element ref="RequestingDocumentIdentifier" minOccurs="0"/>
                        <xs:element ref="RequestingDocumentDateTime" minOccurs="0"/>
                        <xs:element ref="From"/>
                        <xs:element ref="To"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="LoadTenderMotorBody">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="LoadTenderMotorProperties"/>
                        <xs:element ref="LoadTenderMotorPartners"/>
                        <xs:element ref="LoadTenderMotorDetails"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ThisDocumentIdentifier">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DocumentIdentifier"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ThisDocumentDateTime">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DateTime"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="RequestingDocumentIdentifier">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DocumentIdentifier"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="RequestingDocumentDateTime">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DateTime"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="From">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="PartnerInformation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="To">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="PartnerInformation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="LoadTenderMotorProperties">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="LoadTenderNumber"/>
                        <xs:element ref="LoadTenderDateTime"/>
                        <xs:element ref="ShipmentMethodofPaymentCode"/>
                        <xs:element ref="TransportMethodCode"/>
                        <xs:element ref="LoadTenderStatus"/>
                        <xs:element ref="LanguageCode" minOccurs="0"/>
                        <xs:element ref="CurrencyCode" minOccurs="0"/>
                        <xs:element ref="MarketPlaceInformation" minOccurs="0"/>
                        <xs:element ref="ReferenceInformation" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="SpecialInstructions" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="ShipmentTerms"/>
                        <xs:element ref="RespondByDateTime" minOccurs="0"/>
                        <xs:element ref="CustomsInformation" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="RequestedDocument" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="LoadTenderMotorPartners">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Shipper" minOccurs="0"/>
                        <xs:element ref="Consignee" minOccurs="0"/>
                        <xs:element ref="ShipFrom"/>
                        <xs:element ref="Carrier" minOccurs="0"/>
                        <xs:element ref="ShipTo"/>
                        <xs:element ref="OtherPartner" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="LoadTenderMotorDetails">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="EquipmentDetails" maxOccurs="unbounded"/>
                        <xs:element ref="LoadTenderMotorLineItem" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="DocumentIdentifier">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="DateTime">
              <xs:complexType mixed="true">
                   <xs:attribute name="DateTimeQualifier" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="On"/>
                                  <xs:enumeration value="After"/>
                                  <xs:enumeration value="Before"/>
                                  <xs:enumeration value="OnOrAfter"/>
                                  <xs:enumeration value="OnOrBefore"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="PartnerInformation">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="PartnerName" maxOccurs="unbounded"/>
                        <xs:element ref="PartnerIdentifier"/>
                        <xs:element ref="ContactInformation" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="AddressInformation" minOccurs="0"/>
                        <xs:element ref="TaxInformation" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="URL" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="LoadTenderNumber">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DocumentIdentifier"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="LoadTenderDateTime">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DateTime"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ShipmentMethodofPaymentCode">
              <xs:complexType mixed="true">
                   <xs:attribute name="Domain" use="required" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="TransportMethodCode">
              <xs:complexType mixed="true">
                   <xs:attribute name="Domain" use="required" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="LoadTenderStatus">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="LanguageCode">
              <xs:complexType mixed="true">
                   <xs:attribute name="Domain" use="required" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="CurrencyCode">
              <xs:complexType mixed="true">
                   <xs:attribute name="Domain" use="required" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="MarketPlaceInformation">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="MarketPlaceIdentifier"/>
                        <xs:element ref="MarketPlaceDocumentReference"/>
                        <xs:element ref="MarketPlaceSellerIdentifier"/>
                        <xs:element ref="MarketPlaceBuyerIdentifier"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ReferenceInformation">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DocumentReference"/>
                   </xs:sequence>
                   <xs:attribute name="ReferenceType" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="VehicleID"/>
                                  <xs:enumeration value="SalesOrderReference"/>
                                  <xs:enumeration value="EngineeringChangeOrderNumber"/>
                                  <xs:enumeration value="DeliveryNote"/>
                                  <xs:enumeration value="PurchaseOrderNumber"/>
                                  <xs:enumeration value="ShipmentIdentifier"/>
                                  <xs:enumeration value="ContractNumber"/>
                                  <xs:enumeration value="LoadPlanningNumber"/>
                                  <xs:enumeration value="SupplierARNumber"/>
                                  <xs:enumeration value="EndCustomerPONumber"/>
                                  <xs:enumeration value="ShipmentNumber"/>
                                  <xs:enumeration value="BollaDiConsegna"/>
                                  <xs:enumeration value="ShipperPONumber"/>
                                  <xs:enumeration value="CustomerOrderNumber"/>
                                  <xs:enumeration value="RequestForQuoteNumber"/>
                                  <xs:enumeration value="LoadTenderNumber"/>
                                  <xs:enumeration value="CustomerMasterRecordNumber"/>
                                  <xs:enumeration value="BookingNumber"/>
                                  <xs:enumeration value="WaybillNumber"/>
                                  <xs:enumeration value="LineItemNumber"/>
                                  <xs:enumeration value="LetterOfCredit"/>
                                  <xs:enumeration value="PickUpNumber"/>
                                  <xs:enumeration value="CarrierReferenceNumber"/>
                                  <xs:enumeration value="PRONumber"/>
                                  <xs:enumeration value="SellersInvoiceNumber"/>
                                  <xs:enumeration value="SupplierOrderNumber"/>
                                  <xs:enumeration value="Counter"/>
                                  <xs:enumeration value="AppointmentNumber"/>
                                  <xs:enumeration value="Authorization"/>
                                  <xs:enumeration value="RequisitionNumber"/>
                                  <xs:enumeration value="ReleaseNumber"/>
                                  <xs:enumeration value="ChangeSequenceNumber"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="SpecialInstructions">
              <xs:complexType mixed="true">
                   <xs:attribute name="InstructionType" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="EmptyReturnInstructions"/>
                                  <xs:enumeration value="InvoiceInstructions"/>
                                  <xs:enumeration value="PostingInstructions"/>
                                  <xs:enumeration value="ShipperInstructions"/>
                                  <xs:enumeration value="ShortLeadTime"/>
                                  <xs:enumeration value="RoutingInstructions"/>
                                  <xs:enumeration value="Tolerances"/>
                                  <xs:enumeration value="PaymentInstructions"/>
                                  <xs:enumeration value="AmountDescription"/>
                                  <xs:enumeration value="BollaDiConsegna"/>
                                  <xs:enumeration value="DriverInstructions"/>
                                  <xs:enumeration value="ImportInstructions"/>
                                  <xs:enumeration value="ConsigneeInstructions"/>
                                  <xs:enumeration value="CustomerRequiredInstructions"/>
                                  <xs:enumeration value="CertifiedInvoiceText"/>
                                  <xs:enumeration value="TrademarkInformation"/>
                                  <xs:enumeration value="CoAInstructions"/>
                                  <xs:enumeration value="InspectionInstructions"/>
                                  <xs:enumeration value="CustomerServiceInstructions"/>
                                  <xs:enumeration value="General"/>
                                  <xs:enumeration value="LoaderInstructions"/>
                                  <xs:enumeration value="CarrierInstructions"/>
                                  <xs:enumeration value="MarkingInstructions"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="ShipmentTerms">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="ShipmentTermsIdentifier"/>
                        <xs:element ref="ShipmentTermsLocation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="RespondByDateTime">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DateTime"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="CustomsInformation">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="CountryOfOriginCode"/>
                        <xs:element ref="CountryOfFinalDestinationCode" minOccurs="0"/>
                        <xs:element ref="BondedWarehouseStatus" minOccurs="0"/>
                        <xs:element ref="BondedWarehouseRelease" minOccurs="0"/>
                        <xs:element ref="DutyDrawback" minOccurs="0"/>
                        <xs:element ref="USGoodsReturned" minOccurs="0"/>
                        <xs:element ref="TransportInBond" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="RequestedDocument">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="RequestedDocumentTypeCode"/>
                        <xs:element ref="DocumentRecipientInformation" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Shipper">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="PartnerInformation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Consignee">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="PartnerInformation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ShipFrom">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="PartnerInformation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Carrier">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="PartnerInformation"/>
                        <xs:element ref="StandardCarrierAlphaCode" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ShipTo">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="PartnerInformation"/>
                        <xs:element ref="UnloadingPoint" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="OtherPartner">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="PartnerInformation"/>
                   </xs:sequence>
                   <xs:attribute name="PartnerRole" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="AlternateCarrier"/>
                                  <xs:enumeration value="Shipper"/>
                                  <xs:enumeration value="Bank"/>
                                  <xs:enumeration value="CustomsBroker"/>
                                  <xs:enumeration value="FreightForwarder"/>
                                  <xs:enumeration value="NotifyParty"/>
                                  <xs:enumeration value="LetterOfCreditBank"/>
                                  <xs:enumeration value="Sender"/>
                                  <xs:enumeration value="Manufacturer"/>
                                  <xs:enumeration value="ShipTo"/>
                                  <xs:enumeration value="Payer"/>
                                  <xs:enumeration value="Seller"/>
                                  <xs:enumeration value="Surveyor"/>
                                  <xs:enumeration value="Marketplace"/>
                                  <xs:enumeration value="CareOfParty"/>
                                  <xs:enumeration value="Supplier"/>
                                  <xs:enumeration value="Inspection"/>
                                  <xs:enumeration value="ShipFrom"/>
                                  <xs:enumeration value="ThirdPartyLogistics"/>
                                  <xs:enumeration value="AdditionalCarrier"/>
                                  <xs:enumeration value="TransportationBroker"/>
                                  <xs:enumeration value="Consignee"/>
                                  <xs:enumeration value="CommodityBroker"/>
                                  <xs:enumeration value="Scales"/>
                                  <xs:enumeration value="Receiver"/>
                                  <xs:enumeration value="BillToParty"/>
                                  <xs:enumeration value="Buyer"/>
                                  <xs:enumeration value="BeneficialOwner"/>
                                  <xs:enumeration value="UltimateConsignee"/>
                                  <xs:enumeration value="AgencyOrDealer"/>
                                  <xs:enumeration value="FinancialInstitution"/>
                                  <xs:enumeration value="SoldTo"/>
                                  <xs:enumeration value="Carrier"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="EquipmentDetails">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="LineNumber"/>
                        <xs:element ref="ProductLineItemLineNumber" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="EquipmentIdentifier" minOccurs="0"/>
                        <xs:element ref="CarrierEquipmentCode" minOccurs="0"/>
                        <xs:element ref="EquipmentOwnershipCode" minOccurs="0"/>
                        <xs:element ref="NumberOfUnits" minOccurs="0"/>
                        <xs:element ref="SpecialInstructions" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="Height" minOccurs="0"/>
                        <xs:element ref="Width" minOccurs="0"/>
                        <xs:element ref="Length" minOccurs="0"/>
                        <xs:element ref="NetWeight" minOccurs="0"/>
                        <xs:element ref="TareWeight" minOccurs="0"/>
                        <xs:element ref="GrossWeight" minOccurs="0"/>
                        <xs:element ref="NetVolume" minOccurs="0"/>
                        <xs:element ref="GrossVolume" minOccurs="0"/>
                        <xs:element ref="SealNumber" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="EquipmentLoadEmptyStatus" minOccurs="0"/>
                        <xs:element ref="AssociatedEquipment" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="LoadTenderMotorLineItem">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="LineNumber"/>
                        <xs:element ref="EquipmentDetailsLineNumber" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="LadingIdentification" minOccurs="0"/>
                        <xs:element ref="ProductIdentification" minOccurs="0"/>
                        <xs:element ref="PercentActive" minOccurs="0"/>
                        <xs:element ref="ReferenceInformation" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="TransportTemperature" minOccurs="0"/>
                        <xs:element ref="ProductQuantity"/>
                        <xs:element ref="NumberPackagingUnits" minOccurs="0"/>
                        <xs:element ref="VolumetricInformation" minOccurs="0"/>
                        <xs:element ref="GrossVolume" minOccurs="0"/>
                        <xs:element ref="NetVolume" minOccurs="0"/>
                        <xs:element ref="NetWeight" minOccurs="0"/>
                        <xs:element ref="GrossWeight" minOccurs="0"/>
                        <xs:element ref="CountryOfOriginCode" minOccurs="0"/>
                        <xs:element ref="CustomsInformation" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="RequestedDeliveryDateTime"/>
                        <xs:element ref="RequestedPickupDateTime" minOccurs="0"/>
                        <xs:element ref="ControlledTemperature" minOccurs="0"/>
                        <xs:element ref="ProductLabel" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="QuoteIdentifier"/>
                        <xs:element ref="ShipmentTerms" minOccurs="0"/>
                        <xs:element ref="ShipFrom" minOccurs="0"/>
                        <xs:element ref="ShipTo" minOccurs="0"/>
                        <xs:element ref="HazardousGoods" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="PartnerName">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="PartnerIdentifier">
              <xs:complexType mixed="true">
                   <xs:attribute name="Agency" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="AssignedBySupplier"/>
                                  <xs:enumeration value="AssignedByBuyer"/>
                                  <xs:enumeration value="D-U-N-S"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="ContactInformation">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="ContactName" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="ContactDescription" minOccurs="0"/>
                        <xs:choice maxOccurs="unbounded">
                             <xs:element ref="TelephoneNumber"/>
                             <xs:element ref="FaxNumber"/>
                             <xs:element ref="EmailAddress"/>
                             <xs:element ref="AlternativeCommunicationMethod"/>
                        </xs:choice>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="AddressInformation">
              <xs:complexType>
                   <xs:sequence>
                        <xs:choice>
                             <xs:element ref="AddressLine" maxOccurs="unbounded"/>
                             <xs:element ref="PostBoxNumber"/>
                        </xs:choice>
                        <xs:element ref="CityName"/>
                        <xs:element ref="StateOrProvince" minOccurs="0"/>
                        <xs:element ref="PostalCode" minOccurs="0"/>
                        <xs:element ref="PostalCountry"/>
                        <xs:element ref="LocationCode" minOccurs="0"/>
                        <xs:element ref="Comment" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="TaxInformation">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="TaxIdentifierNumber"/>
                        <xs:element ref="Jurisdiction" minOccurs="0"/>
                        <xs:element ref="TaxCertificateType" minOccurs="0"/>
                        <xs:element ref="TaxCertificateNumber" minOccurs="0"/>
                        <xs:element ref="TaxBasis" minOccurs="0"/>
                        <xs:element ref="TaxRate" minOccurs="0"/>
                        <xs:element ref="EffectiveDates" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="URL">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="MarketPlaceIdentifier">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="MarketPlaceDocumentReference">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DocumentReference"/>
                   </xs:sequence>
                   <xs:attribute name="ReferenceType" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="SalesOrderReference"/>
                                  <xs:enumeration value="DeliveryNote"/>
                                  <xs:enumeration value="PurchaseOrderNumber"/>
                                  <xs:enumeration value="ShipmentIdentifier"/>
                                  <xs:enumeration value="ContractNumber"/>
                                  <xs:enumeration value="LoadPlanningNumber"/>
                                  <xs:enumeration value="CustomerOrderNumber"/>
                                  <xs:enumeration value="RequestForQuoteNumber"/>
                                  <xs:enumeration value="LoadTenderNumber"/>
                                  <xs:enumeration value="CustomerMasterRecordNumber"/>
                                  <xs:enumeration value="BookingNumber"/>
                                  <xs:enumeration value="WaybillNumber"/>
                                  <xs:enumeration value="LineItemNumber"/>
                                  <xs:enumeration value="LetterOfCredit"/>
                                  <xs:enumeration value="PickUpNumber"/>
                                  <xs:enumeration value="CarrierReferenceNumber"/>
                                  <xs:enumeration value="PRONumber"/>
                                  <xs:enumeration value="SellersInvoiceNumber"/>
                                  <xs:enumeration value="AppointmentNumber"/>
                                  <xs:enumeration value="Authorization"/>
                                  <xs:enumeration value="RequisitionNumber"/>
                                  <xs:enumeration value="ReleaseNumber"/>
                                  <xs:enumeration value="ChangeSequenceNumber"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="MarketPlaceSellerIdentifier">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="MarketPlaceBuyerIdentifier">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="DocumentReference">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DocumentIdentifier"/>
                        <xs:element ref="DateTime" minOccurs="0"/>
                        <xs:element ref="ReferenceItem" minOccurs="0"/>
                        <xs:element ref="ReleaseNumber" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ShipmentTermsIdentifier">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="ShipmentTermsLocation">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="CountryOfOriginCode">
              <xs:complexType mixed="true">
                   <xs:attribute name="Domain" use="required" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="CountryOfFinalDestinationCode">
              <xs:complexType mixed="true">
                   <xs:attribute name="Domain" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="3166ISO"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="BondedWarehouseStatus">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="BondedWarehouseRelease">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="DutyDrawback">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="USGoodsReturned">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="TransportInBond">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="RequestedDocumentTypeCode">
              <xs:complexType mixed="true">
                   <xs:attribute name="Domain" use="required" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="DocumentRecipientInformation">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DocumentRecipientPartner"/>
                        <xs:element ref="DocumentDeliveryMethod" minOccurs="0"/>
                        <xs:element ref="LanguageCode" minOccurs="0"/>
                        <xs:element ref="NumberOfOriginals" minOccurs="0"/>
                        <xs:element ref="NumberOfCopies" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="DeliveryMethodQualifier" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="Mail"/>
                                  <xs:enumeration value="Email"/>
                                  <xs:enumeration value="Telex"/>
                                  <xs:enumeration value="Fax"/>
                                  <xs:enumeration value="Print"/>
                                  <xs:enumeration value="WithDriver"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="StandardCarrierAlphaCode">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="UnloadingPoint">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="LineNumber">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="ProductLineItemLineNumber">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="EquipmentIdentifier">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="CarrierEquipmentCode">
              <xs:complexType mixed="true">
                   <xs:attribute name="Domain" use="required" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="EquipmentOwnershipCode">
              <xs:complexType mixed="true">
                   <xs:attribute name="Domain" use="required" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="NumberOfUnits">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="SpecifiedMeasurement"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Height">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="MeasurementInformation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Width">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="MeasurementInformation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Length">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="MeasurementInformation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="NetWeight">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="SpecifiedMeasurement"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="TareWeight">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="SpecifiedMeasurement"/>
                   </xs:sequence>
                   <xs:attribute name="TareWeightQualifierCode">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="Marked"/>
                                  <xs:enumeration value="Actual"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="GrossWeight">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="SpecifiedMeasurement"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="NetVolume">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="SpecifiedMeasurement"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="GrossVolume">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="SpecifiedMeasurement"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="SealNumber">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="EquipmentLoadEmptyStatus">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="AssociatedEquipment">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="EquipmentIdentifier"/>
                        <xs:element ref="NumberOfUnits" minOccurs="0"/>
                        <xs:element ref="MeasurementInformation"/>
                        <xs:element ref="SpecialInstructions" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="EquipmentDetailsLineNumber">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="LadingIdentification">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="LadingDescription"/>
                        <xs:element ref="LadingIdentifier"/>
                   </xs:sequence>
                   <xs:attribute name="Agency">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="GlobalMaterialIdentifier"/>
                                  <xs:enumeration value="HarmonizedSystemBasedSchedule"/>
                                  <xs:enumeration value="EAN"/>
                                  <xs:enumeration value="ShipperDefined"/>
                                  <xs:enumeration value="ODETTE"/>
                                  <xs:enumeration value="NMFC"/>
                                  <xs:enumeration value="ScheduleB"/>
                                  <xs:enumeration value="STCC"/>
                                  <xs:enumeration value="UN-NA"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="ProductIdentification">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="ProductIdentifier"/>
                        <xs:element ref="ProductName" minOccurs="0"/>
                        <xs:element ref="ProductDescription" minOccurs="0"/>
                        <xs:element ref="ProductGradeDescription" minOccurs="0"/>
                        <xs:element ref="ProductClassification" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="Agency" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="AssignedBySeller"/>
                                  <xs:enumeration value="ISO"/>
                                  <xs:enumeration value="ANSI"/>
                                  <xs:enumeration value="EAN"/>
                                  <xs:enumeration value="Other"/>
                                  <xs:enumeration value="EDIFACT"/>
                                  <xs:enumeration value="AssignedByBuyer"/>
                                  <xs:enumeration value="GBABA"/>
                                  <xs:enumeration value="AssignedByManufacturer"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="PercentActive">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="TransportTemperature">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="MeasurementInformation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ProductQuantity">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Measurement"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="NumberPackagingUnits">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="VolumetricInformation">
              <xs:complexType>
                   <xs:choice>
                        <xs:element ref="Density"/>
                        <xs:element ref="SpecificGravity"/>
                   </xs:choice>
              </xs:complexType>
         </xs:element>
         <xs:element name="RequestedDeliveryDateTime">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DateTimeInformation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="RequestedPickupDateTime">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DateTimeInformation"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ControlledTemperature">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="SpecifiedMeasurement"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ProductLabel">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="QuoteIdentifier">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="HazardousGoods">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="HazardousShipment"/>
                        <xs:element ref="HazardousInfor

    This file is an XSD and not a DTD, and I was able to load it as XSD into the Message Mapping Tool.
    At the question:
    <i>"Imported scheme has multiple global elements. Select the global element to be used in the source or target message"</i>
    I choosed "LoadTenderMotorBody"
    Hope this helps.
    Regards,
    Sandro

  • Convert Pojo to XSD using Java

    Dear Sir,
    how to convert POJO to XSD format using Java...? give me some clue about conversion....
    Thank you,
    Boss134

    XSD is XML schema definition. You probably want to serialize to XML.
    Find in the Javadoc [http://java.sun.com/javase/6/docs/api/] the JAXBContext class...

  • External dependency on remote dtd and xsd files

    The question bugs me for years, please help.
    Should we download external dtd and xsd files declared for web.xml and faces-config.xml and pack them in the war files to eliminate the external dependency.
    e.g.
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
    http://java.sun.com/dtd/web-facesconfig_1_0.dtd
    Thanks

    Hi Srikanth,
    Have you done this?
    SAP HELP
    <i>You want to import an XSD document myMessage to the Integration Repository; this document references three other XSD documents myStr1, myStr2, and myStr3 by using the <include> statement. One option is to first import myMessage. The External References tab page then shows that three documents are referenced and that these documents are not yet in the Integration Repository.  Next, create further external definitions for myStr1, myStr2, and myStr3 in the same namespace and specify the source for each of these documents. If the source is not contained in the document itself, you will find it in the referencing document. If you refresh the display of the external definition for myMessage, the External References tab page shows that the documents have been found in the Integration Repository. You can then navigate to the other referenced external definitions in the Integration Repository by double clicking.</i>
    Also, try activating just in case you haven't.
    Regards
    Vijaya

  • Is site STE file DTD or XSD available?

    Dreamweaver enables you to export your site definition into a
    special file with a .ste extension. You can then share your site
    definition with other developers by allowing them to import the
    .ste file to recreate the site on their machines.
    Do you know where the DTD or XSD specification for how the
    .ste file is structured?

    The *.ste file is only meaningful to DW. But you can open one
    and look at
    its structure. It's a bog-standard XML file....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "losWebFXs" <[email protected]> wrote in
    message
    news:gcfrbq$jnq$[email protected]..
    > Dreamweaver enables you to export your site definition
    into a special file
    > with
    > a .ste extension. You can then share your site
    definition with other
    > developers
    > by allowing them to import the .ste file to recreate the
    site on their
    > machines.
    >
    > Do you know where the DTD or XSD specification for how
    the .ste file is
    > structured?
    >

  • DTD and XSD Validation for xml file

    hi kindly reply to this mail guru'ssss
    i am facing a problem in parising a xml file against dtd and xsd.
    i have the dtd which contains only enitities that can be present in the xml file and the xsd file for validation against elements and attribute.
    when DTD is present then it is throwing errors like the elements should be declared.
    when i take out the doctype line and validate against schema its throwing the error that particular entity is not found or declared.
      public Vector validateSchema(String SchemaUrl, String XmlDocumentUrl)  
          SAXParser parser =new SAXParser();
         try{
             //parser.setNamespaceAware (true);     
             //parser.s
             parser.setFeature("http://xml.org/sax/features/validation",true);
             parser.setFeature("http://apache.org/xml/features/validation/schema",true);
             parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
            // parser.setProperty("http://xml.org/sax/properties/declaration-handler", new DTDHandl());
             parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",SchemaUrl);
            // parser.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
            // System.out.println(parser.getDTDHandler());
            // UnparsedCache cache = new UnparsedCache();
           //  parser.setDTDHandler(cache);
             InputSource inputSource =new InputSource(new java.io.FileInputStream(new java.io.File(XmlDocumentUrl)));
           //  parser.setDTDHandler(new myDTDHandler());
             //parser.setEntityResolver(new CustomResolver());
         //  parser.setContentHandler(this);
             Validator handler=new Validator();
             parser.setErrorHandler(handler); 
             parser.parse(inputSource);
             if(handler.validationError==true)
               System.out.println("XML Document is not valid");
             else                  
               System.out.println("XML Document is valid");
             for(int i=0;i<ErrorLines.size();i++){
                 System.out.println(ErrorLines.elementAt(i));
       }catch(java.io.IOException ioe){  
         System.out.println("IOException"+ioe.getMessage());   
       }catch (SAXParseException e) {
         System.out.println("SAXParseException "+e.getMessage());   
      }catch (SAXException e) {
         System.out.println("SAXException"+e.getMessage());   
         return ErrorLines;
    what could be soln to this.

    Hi
    Venky_Ferrari.
    Based on your description, your case related to XMLXSD, SO I will move your thread to
    Data Platform Development > XML, System.Xml, MSXML and XmlLite      
    forum for better support.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to convert wsdl to xsd with detail steps?

    Hi All,
    Please explain me how to convert wsdl to xsd or any tools are there to convert. If so please tell me step by step procedure.
    Thanks in Advance,
    Sreenu.

    Hi Sreenivas,
    I doubt if this is possible.
    WSDLs are web services definitions while XSDs are XML structure definitions. I dont think its possible convert between the two.
    Maybe [this link|http://www.mail-archive.com/[email protected]/msg19446.html//www.mail-archive.com/[email protected]/msg19446.html] gives a clue for a manual method.
    Regards,
    Riyaz
    Edited by: Riyaz Sayyad on Jul 14, 2008 2:52 PM

  • How to convert XML file into DTD or XSD

    Hi Folks,
    This is the output structure I need to get. My interface is file to file. Can u please let me know How do I create a data type or any XSD to get below Structure.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <Command xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Command.xsd">
    - <WriteTagData readerID="EasyDP">
    - <Item>
    - <FieldList format="C:\Documents and Settings\wlee\Desktop\Format_4A.btw" jobName="Test1" quantity="1">
      <Field name="PlantNo">4012</Field>
      <Field name="PlantName">ANE</Field>
      <Field name="SKU">12000001</Field>
      <  </FieldList>
      </Item>
      </WriteTagData>
      </Command>
    Please help me How would I create Data type for this. Your help is highly apreciated
    Thanks,
    Enivass

    Hi Enivas,
    >>>>>>>>>Please help me how would I delete ns0.
    For  remove ns0,  you have to do use XMLAnonymizerBean module  in adpater module (In Communication channel).
    Insert the XMLAnonymizerBean before the CallSapAdapter .
    The module name u2018CallSapAdapteru2019 is default one that can be left as it is.
    Module Name : AF_Modules/XMLAnonymizerBean
    Type: Local Enterprise Bean
    Module Key: 0  
    Add Parameters in the Module Configuration
    2.       Module Key: 0
    Parameter Name: anonymizer.acceptNamespaces
    Parameter Value: <namespace> u2018u2019  
    Enter a list of namespaces and their prefixes that are to be kept in the target XML document and to result a namespace without a prefix, enter u2018 u2018 (two single quotation marks).   In your case like namespace http://www.w3.org/2001/XMLSchema-instance follow with two single quotation marks.
    3.       Module Key: 0
    Parameter Name: anonymizer.quote
    Parameter Value: u2018
    Here specify the character to be used to enclose the attribute values.  The default value is u2018.  
    When scenario is executed, the target message contains the namespace with no prefix.  
    Then, you are not facing any issue in target messages.
    Regards,
    Rajesh

  • Dtd to xsd

    i wish to convert a dtd to an xsd. how would i go about this? would I use xsl?

    You can't use XSL because DTDs AREN'T valid XML. (That's one reason why XSDs have come along.) DTD elements are either PCDATA or DATA - there's no information about types in there.
    No way around it: unless one of the tools on the market support such a thing, you'll have to get into your text editor and start hammering away on it. - MOD

  • High Priority:-How to convert XMLSchema file (.xsd ) into .rtf file

    Hi...
    Hope you are doing well.
    I request you to help us with an issue encountered on 'generating reports using XML Publisher', which is described as followed.
    We have taken report from Oracle Apps and stored as XML file , then converted into XML Schema (.xsd) through Stylus Studio and uploaded that file into XML Publisher Desktop.
    Now, we want to convert .xsd into .rtf file for the requirement.
    Please revert back if the issue is not clear enough.
    Your help is needed and appreciated.
    Thanks&Regards,
    Suresh.

    Hi Suresh,
    XSD file is an XML Schema Definition file, it is used to validate and XML file in making sure elements are of the correct datatype, mandatory elements exist etc...
    It cannot be used to create an RTF file, as there is no layout definition within an XSD.
    You will need to create the RTF manually in this case using MS Word and Template Builder.
    I don't fully understand what you are trying to acheive, so maybe you could clarify further, and I may be able to help a little more.
    Many Thanks,
    Cj

Maybe you are looking for