Group:  General ยป microsoft.public.office.xml
Thread: WordML

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

WordML
redog6[ at ]hotmail.com 17.10.2005 15:52:12
My own XSD contains structural data only whereas when it is added to
the Word XML this data content is mixed with WordML Schema and the
boilerplate text of my Word template and it resembles XHTML. If I save
as data only I don't just get the data as specified by my schema but
also get the elements include the boilerplate text.

For example:
<myschema:data_set>
This is my data item:<myschema:data_item1>904</myschema:data_item1>
<myschema:data_set>

Here the boilerplate text "This is my data item:" is a text value of
<myschema:data_set>. This would not be valid in my original schema
which doesn't allow mixed content here.

My question is, what is the best way produce a pure data xml file from
a Word XML file excluding the boilerplate text as well as the WordML
schema content.

Any suggestions would be much appreciated.

Thanks
Redge.

Re: WordML
redog6[ at ]hotmail.com 18.10.2005 15:00:43
OK - I have worked it out myself: XML options > XML structure pane and
check 'Ignore Mixed content' and check 'Allow saving as XML even if not
valid'. This provides you with just your custom XML without any WordML
or boilerplate text.
Redge

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net