on 04-11-2008 8:19 PM
I am able to generate xsd but one of my dtd is referencing other
dtd .I created External def for xsd1 and created External definition for xsd2.
In xsd2 for source i gave xsd1 .
In xsd1 I have PurchaseOrder confirmation
in xsd2 i have xsd1 Message header Purchase order
How to link the xsd in tree types.
No tree structure is found.
PurchaseOrderConfirmation
Message Header
PurcahseOrder
It should be like below:
-PurchaseOrderConfirmation
-Message Header(Tree structure)
-
-
-
-PurcahseOrder(Tree structure)
-
-
-
Can somebody give me clues to define dtd with the sample file attached?
Thanks,
<?xml version="1.0" encoding="utf-8"?>
<nr2:PurchaseOrderConfirmation xmlns:nr2="http://sap.com/xi/SAPGlobal/Global" xmlns:nr1="http://sap.com/xi/SRM/SupplierEnablement/Global" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sap.com/xi/SAPGlobal/Global c:\kiran_docs\xi_proxyfiles\po_confirmation\test.xsd">
<MessageHeader>
<ID schemeID="0104">92000000000000000020080320191609</ID>
<CreationDateTime>2008-03-20T19:16:09Z</CreationDateTime>
<SenderParty>
<InternalID schemeID="PartyID" schemeAgencyID="SAPEBP_MPX_100_X">0000008536</InternalID>
</SenderParty>
<RecipientParty>
<InternalID schemeID="PartyID" schemeAgencyID="SAPEBP_MPX_100_X">0000000031</InternalID>
</RecipientParty>
</MessageHeader>
<PurchaseOrder>
<ID schemeID="BTD" schemeAgencyID="SAPEBP_MPX_100_X" schemeAgencySchemeAgencyID="ZZZ">630000050</ID>
<SellerID schemeID="BTD" schemeAgencyID="SAPEBP_MPX_200_X" schemeAgencySchemeAgencyID="ZZZ">9100000002</SellerID>
<BuyerPostingDateTime>2008-02-26T12:00:00Z</BuyerPostingDateTime>
<BuyerLastChangeDateTime>2008-03-20T19:13:14Z</BuyerLastChangeDateTime>
<AcceptanceStatusCode>AJ</AcceptanceStatusCode>
<Note>SP47 02/26/2008 13:18</Note>
<ItemListCompleteTransmissionIndicator>false</ItemListCompleteTransmissionIndicator>
<BuyerParty>
<BuyerID>0000000031</BuyerID>
<SellerID>0001000003</SellerID>
</BuyerParty>
<SellerParty>
<BuyerID>0000008536</BuyerID>
<SellerID>0001000001</SellerID>
</SellerParty>
<ProductRecipientParty>
<BuyerID>0001001362</BuyerID>
<Address>
<OrganisationFormattedName>IS BSD</OrganisationFormattedName>
<OrganisationFormattedName>IS Business Systems</OrganisationFormattedName>
<PersonName>
<FormattedName>Annette Westmoreland</FormattedName>
<LegalName>Annette Westmoreland</LegalName>
<GivenName>Annette</GivenName>
<PreferredGivenName>Annette</PreferredGivenName>
<Family>
<FamilyName>Westmoreland</FamilyName>
<PrimaryIndicator>true</PrimaryIndicator>
</Family>
</PersonName>
<Office>
<BuildingID>66A</BuildingID>
<FloorID>3</FloorID>
<RoomID>343-7</RoomID>
</Office>
<PhysicalAddress>
<CountryCode>US</CountryCode>
<RegionCode listID="WI"/>
<StreetPostalCode>53201</StreetPostalCode>
<CityName>XYZ</CityName>
<StreetName>3939 W Highland Blvd</StreetName>
</PhysicalAddress>
<Communication>
<Telephone>
<Number>
<SubscriberID>XYZ</SubscriberID>
</Number>
<NumberDefaultIndicator>true</NumberDefaultIndicator>
<NumberUsageDenialIndicator>false</NumberUsageDenialIndicator>
</Telephone>
<Facsimile>
<Number>
<SubscriberID>XYZ</SubscriberID>
</Number>
<NumberDefaultIndicator>true</NumberDefaultIndicator>
<NumberUsageDenialIndicator>false</NumberUsageDenialIndicator>
</Facsimile>
<Email>
<Address>SP47aXYZ</Address>
<AddressDefaultIndicator>true</AddressDefaultIndicator>
<AddressUsageDenialIndicator>false</AddressUsageDenialIndicator>
</Email>
</Communication>
</Address>
</ProductRecipientParty>
<ShipToLocation>
<BuyerID>0001004747</BuyerID>
<Address>
<OrganisationFormattedName>XYZ</OrganisationFormattedName>
<OrganisationFormattedName>XYZing Company</OrganisationFormattedName>
<PhysicalAddress>
<CountryCode>US</CountryCode>
<RegionCode listID="WI"/>
<StreetPostalCode>53201</StreetPostalCode>
<CityName>XYZ</CityName>
<DistrictName>XYZ</DistrictName>
<StreetName>3939 W. Highland Blvd.</StreetName>
</PhysicalAddress>
<Communication>
<Telephone>
<Number>
<SubscriberID>XYZ</SubscriberID>
</Number>
<NumberDefaultIndicator>true</NumberDefaultIndicator>
<NumberUsageDenialIndicator>false</NumberUsageDenialIndicator>
</Telephone>
<Email>
<Address>nowhereambco.com</Address>
<AddressDefaultIndicator>true</AddressDefaultIndicator>
<AddressUsageDenialIndicator>false</AddressUsageDenialIndicator>
</Email>
</Communication>
</Address>
</ShipToLocation>
<DeliveryTerms>
<MaximumLeadTimeDuration>000</MaximumLeadTimeDuration>
</DeliveryTerms>
<CashDiscountTerms>
<MaximumCashDiscount>
<DaysValue>30</DaysValue>
<Percent>0.0</Percent>
</MaximumCashDiscount>
</CashDiscountTerms>
<Price>
<NetAmount currencyCode="USD">77.0</NetAmount>
</Price>
<Item>
<ID schemeID="BTDItemID">1</ID>
<SellerID schemeID="BTDItemID">20</SellerID>
<ActionCode>04</ActionCode>
<AcceptanceStatusCode>AP</AcceptanceStatusCode>
<UnplannedItemPermissionCode>01</UnplannedItemPermissionCode>
<UnconfirmedQuantityCancelledIndicator>true</UnconfirmedQuantityCancelledIndicator>
<Product>
<SellerID>99419948</SellerID>
<ManufacturerID>3CSKBR</ManufacturerID>
<TypeCode>1</TypeCode>
<Note>Wire Stripping Tools, Maximum Wire Size</Note>
</Product>
<ConfirmedPrice>
<NetUnitPrice>
<Amount currencyCode="USD">38.5</Amount>
<BaseQuantity unitCode="EA">1.0</BaseQuantity>
</NetUnitPrice>
</ConfirmedPrice>
<DeliveryTerms>
<MaximumLeadTimeDuration>000</MaximumLeadTimeDuration>
</DeliveryTerms>
<FollowUpPurchaseOrderConfirmation>
<RequirementCode>02</RequirementCode>
</FollowUpPurchaseOrderConfirmation>
<FollowUpDespatchedDeliveryNotification>
<RequirementCode>04</RequirementCode>
</FollowUpDespatchedDeliveryNotification>
<FollowUpServiceAcknowledgementRequest>
<RequirementCode>02</RequirementCode>
</FollowUpServiceAcknowledgementRequest>
<FollowUpInvoiceRequest>
<RequirementCode>01</RequirementCode>
<EvaluatedReceiptSettlementIndicator>false</EvaluatedReceiptSettlementIndicator>
</FollowUpInvoiceRequest>
<ConfirmedScheduleLine>
<ID>1</ID>
<DeliveryPeriod>
<StartDateTime>2008-03-22T12:00:00Z</StartDateTime>
<EndDateTime>2008-03-22T12:00:00Z</EndDateTime>
</DeliveryPeriod>
<Quantity unitCode="EA">2.0</Quantity>
</ConfirmedScheduleLine>
</Item>
</PurchaseOrder>
</nr2:PurchaseOrderConfirmation>
hi,
Try with ALtova XML spy tool. you will definetly get.
You will get it for one month trail free. Get it dowload and try
Regards,
Krishnaraju
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar
The purpose of a DTD (Document Type Definition) is to define the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes.
kindly follow these links to know DTD
http://www.w3schools.com/DTD/default.asp
this link contains example code
http://www.xmlfiles.com/dtd/dtd_examples.asp
DTD - Examples from the Net
TV Scedule DTD
<!DOCTYPE TVSCHEDULE [
<!ELEMENT TVSCHEDULE (CHANNEL+)>
<!ELEMENT CHANNEL (BANNER, DAY+)>
<!ELEMENT BANNER (#PCDATA)>
<!ELEMENT DAY ((DATE, HOLIDAY) | (DATE, PROGRAMSLOT))>
<!ELEMENT HOLIDAY (#PCDATA)>
<!ELEMENT DATE (#PCDATA)>
<!ELEMENT PROGRAMSLOT (TIME, TITLE, DESCRIPTION?)>
<!ELEMENT TIME (#PCDATA)>
<!ELEMENT TITLE (#PCDATA)>
<!ELEMENT DESCRIPTION (#PCDATA)>
<!ATTLIST TVSCHEDULE NAME CDATA #REQUIRED>
<!ATTLIST CHANNEL CHAN CDATA #REQUIRED>
<!ATTLIST PROGRAMSLOT VTR CDATA #IMPLIED>
<!ATTLIST TITLE RATING CDATA #IMPLIED>
<!ATTLIST TITLE LANGUAGE CDATA #IMPLIED>
]>
A Report DTD
<!DOCTYPE REPORT [
<!ELEMENT REPORT (TITLE,(SECTION|SHORTSECT)+)>
<!ELEMENT SECTION (TITLE,%BODY;,SUBSECTION*)>
<!ELEMENT SUBSECTION (TITLE,%BODY;,SUBSECTION*)>
<!ELEMENT SHORTSECT (TITLE,%BODY;)>
<!ELEMENT TITLE %TEXT;>
<!ELEMENT PARA %TEXT;>
<!ELEMENT LIST (ITEM)+>
<!ELEMENT ITEM (%BLOCK;)>
<!ELEMENT CODE (#PCDATA)>
<!ELEMENT KEYWORD (#PCDATA)>
<!ELEMENT EXAMPLE (TITLE?,%BLOCK;)>
<!ELEMENT GRAPHIC EMPTY>
<!ATTLIST REPORT security (high | medium | low ) "low">
<!ATTLIST CODE type CDATA #IMPLIED>
<!ATTLIST GRAPHIC file ENTITY #REQUIRED>
<!ENTITY xml "Extensible Markup Language">
<!ENTITY sgml "Standard Generalized Markup Language">
<!ENTITY pxa "Professional XML Authoring">
<!ENTITY % TEXT "(#PCDATA|CODE|KEYWORD|QUOTATION)*">
<!ENTITY % BLOCK "(PARA|LIST)+">
<!ENTITY % BODY "(%BLOCK;|EXAMPLE|NOTE)+">
<!NOTATION GIF SYSTEM "">
<!NOTATION JPG SYSTEM "">
<!NOTATION BMP SYSTEM "">
]>
hope this will clarify you DTD
regards
Sandeep Sharma
Ps if helpful kindly reward points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.