18.04.2013 Views

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

172 <strong>B2B</strong> <strong>Integration</strong> — A <strong>Practical</strong> <strong>Guide</strong> <strong>to</strong> <strong>Collaborative</strong> E-<strong>commerce</strong><br />

Continued from page 171<br />

The DTD is interpreted like this:<br />

lELEMENT order (in line 2) defines the element 'order' as having<br />

a buyer element and one or more occurrences of 'lineltem' element.<br />

lELEMENT buyer (in line 3) defines the 'buyer' as having elements<br />

'name, address, city, state and zip'.<br />

!ELEMENT name (in line 4) is defined <strong>to</strong> be of the type 'PCDATA<br />

and so on ...<br />

Example of an XML document with an external DTD:<br />

<br />

<br />

<br />

]><br />

<br />

<br />

Beautiful Home Departmental S<strong>to</strong>re <br />

18 Middlesex Mall <br />

Edison <br />

NJ <br />

08817 <br />

<br />

<br />

Hand-painted lamp <br />

50 <br />

29.95 <br />

<br />

<br />

Table-mat <br />

100 <br />

5.95 <br />

<br />

<br />

The file order.dtd contains the DTD.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!