30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 18 Extensible Markup Language (XML) 879<br />

37<br />

38 <br />

39 http://www.Example.com/clothes/index.jpg<br />

40 <br />

41<br />

42 Clearance sale<br />

43<br />

44 <br />

45 This is a clearance sale<br />

46 <br />

47<br />

48 Free Shipping<br />

49<br />

50 <br />

51 Clothes that you would love <strong>to</strong> wear.<br />

52 <br />

53<br />

54 <br />

55<br />

56 <br />

57 http://www.example.com/action.htm<br />

58 <br />

59<br />

60 <br />

61 <br />

62<br />

63 <br />

64 <br />

65 <br />

66<br />

67 <br />

68 <br />

69 <br />

70 <br />

Fig. 18.24 BizTalk markup using an offer Schema (part 2 of 2).<br />

All Biztalk documents have the root element BizTalk (line 2). Line 3 defines a default<br />

namespace for the BizTalk framework elements. Element Route (lines 8–14) contains the<br />

routing information, which is manda<strong>to</strong>ry for all BizTalk documents. Element Route also<br />

contains elements To and From (lines 9–12), which specify the document’s destination and<br />

source, respectively. This makes it easier for the receiving application <strong>to</strong> communicate with<br />

the sender. Attribute locationType specifies the type of business that sends or receives<br />

the information, and attribute locationID specifies a business identity (the unique identifier<br />

for a business). These attributes facilitate source and destination organization. Attribute<br />

handle provides information <strong>to</strong> routing applications that handle the document.<br />

Element Body (lines 16–69) contains the actual message, whose Schema is defined by<br />

the businesses themselves. Lines 17–18 specify the default namespace for element<br />

Offers (lines 17–68), which is contained in element Body (note that line 18 wraps—if<br />

we split this line, Internet Explorer cannot locate the namespace). Each offer is marked up<br />

using an Offer element (lines 19–67) that contains elements describing the offer. For<br />

additional information on BizTalk, visit www.biztalk.com.

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

Saved successfully!

Ooh no, something went wrong!