Word Document Properties


Chapter 11: VBA Programming with XML



Download 8,82 Mb.
Pdf ko'rish
bet204/207
Sana16.03.2022
Hajmi8,82 Mb.
#496217
1   ...   199   200   201   202   203   204   205   206   207
Bog'liq
VBA For Dummies 5th Ed.pdf ( PDFDrive )

Chapter 11: VBA Programming with XML
17_046500 ch11.qxp 12/5/06 5:37 PM Page 247


Listing 11-4
Creating an XSD File to Export a Letter

targetNamespace=”http://www.mysite.com”
xmlns=”http://www.mysite.com”
elementFormDefault=”qualified”>


















This example doesn’t require a collection of items, such as those found in a
database, so it doesn’t require a complex structure. Each of the elements
appears only one time except for the 
Body
element, which can appear once
for each paragraph in the letter. Notice that this XSD file includes a
targetNamespace
. Think of this as the default namespace for the XSD file.
Word requires this entry. Word also requires that you include the
mixed=”true”
attribute for the 

tag. Otherwise, it con-
tinually reports that the 
MyLetter
element can’t contain text.
After you create the template and the XSD file, you need to link the two. The
procedure for accomplishing this task is different from working with an indi-
vidual file. Here are the steps that you need to follow:

Download 8,82 Mb.

Do'stlaringiz bilan baham:
1   ...   199   200   201   202   203   204   205   206   207




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish