Group:  General » microsoft.public.office.xml
Thread: Problem in Word XML

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

Problem in Word XML
"Abhishek" <abhishekbagga_at_hotmail.com> 19.10.2005 11:31:48
Hi!

I saved a doc as xml and was referring to the XML thrugh my code , and I
found a problem
The styles tag of the XML is defined in this manner
-
- <w:style w:type="paragraph" w:styleId="WW-NormalWeb">
<w:name w:val="WW-Normal (Web)" />
<w:basedOn w:val="Normal" />
- <w:pPr>
<w:pStyle w:val="WW-NormalWeb" />
<w:spacing w:before="280" w:after="280" />
</w:pPr>
- <w:rPr>
<w:rFonts w:ascii="Verdana" w:h-ansi="Verdana" />
<wx:font wx:val="Verdana" />
<w:sz w:val="20" />
<w:sz-cs w:val="20" />
</w:rPr>
</w:style>


The text shows up like

<w:p>
- <w:pPr>
<w:pStyle w:val="WW-NormalWeb" />
- <w:rPr>
<w:color w:val="333333" />
</w:rPr>
</w:pPr>
- <w:r>
- <w:rPr>
<w:color w:val="333333" />
</w:rPr>
<w:br />
<w:t>This release involves capturing presentations and producing output in
different formats using authorGEN For PowerPoint plug-in and Content Manager
with additional features given below in this note.</w:t>
</w:r>
</w:p>


Here the run property shows only bold and color.
How do I get to know the size of this text
I I read the style it says the size as 20 whereas the size of the text in
the doc is 10
Can someone please tell me how do I get to know the size of the text from
the XML


Re: Problem in Word XML
"Bob Buckland ?:-\)" <75214.226(At Beautiful Downtown)compuserve.com> 19.10.2005 13:18:59
Hi Abhishek,

For a number of the values in the fileit appears that the
values are in TWIPS (1/1440th of an inch)
<w:sz w:val="20" />
but for the font sizes it appears that 1/2-points (1/144th
of an inch) is being used. (1/2 point is the granularity
you can use from the Word U.I.) to set point sizes.

=====
<<"Abhishek" <abhishekbagga_at_hotmail.com> wrote in message news:O%23GBDBK1FHA.1032[ at ]TK2MSFTNGP12.phx.gbl...
Hi!

I saved a doc as xml and was referring to the XML thrugh my code , and I
found a problem
The styles tag of the XML is defined in this manner
-
- <w:style w:type="paragraph" w:styleId="WW-NormalWeb">
<w:name w:val="WW-Normal (Web)" />
<w:basedOn w:val="Normal" />
- <w:pPr>
<w:pStyle w:val="WW-NormalWeb" />
<w:spacing w:before="280" w:after="280" />
</w:pPr>
- <w:rPr>
<w:rFonts w:ascii="Verdana" w:h-ansi="Verdana" />
<wx:font wx:val="Verdana" />
<w:sz w:val="20" />
<w:sz-cs w:val="20" />
</w:rPr>
</w:style>


The text shows up like

<w:p>
- <w:pPr>
<w:pStyle w:val="WW-NormalWeb" />
- <w:rPr>
<w:color w:val="333333" />
</w:rPr>
</w:pPr>
- <w:r>
- <w:rPr>
<w:color w:val="333333" />
</w:rPr>
<w:br />
<w:t>This release involves capturing presentations and producing output in
different formats using authorGEN For PowerPoint plug-in and Content Manager
with additional features given below in this note.</w:t>
</w:r>
</w:p>


Here the run property shows only bold and color.
How do I get to know the size of this text
I I read the style it says the size as 20 whereas the size of the text in
the doc is 10
Can someone please tell me how do I get to know the size of the text from
the XML >>



Re: Problem in Word XML
David Thielen <david[ at ]windward.net> 19.10.2005 13:43:32
Yes and yes. A lot of WordML comes from the rtf spec and things like
this they just copied across.

- dave

On Wed, 19 Oct 2005 06:18:59 -0700, "Bob Buckland ?:-\)"
<75214.226(At Beautiful Downtown)compuserve.com> wrote:

[Quoted Text]
>Hi Abhishek,
>
>For a number of the values in the fileit appears that the
>values are in TWIPS (1/1440th of an inch)
> <w:sz w:val="20" />
>but for the font sizes it appears that 1/2-points (1/144th
>of an inch) is being used. (1/2 point is the granularity
>you can use from the Word U.I.) to set point sizes.
>
>=====
> <<"Abhishek" <abhishekbagga_at_hotmail.com> wrote in message news:O%23GBDBK1FHA.1032[ at ]TK2MSFTNGP12.phx.gbl...
>Hi!
>
>I saved a doc as xml and was referring to the XML thrugh my code , and I
>found a problem
>The styles tag of the XML is defined in this manner
>-
>- <w:style w:type="paragraph" w:styleId="WW-NormalWeb">
> <w:name w:val="WW-Normal (Web)" />
> <w:basedOn w:val="Normal" />
>- <w:pPr>
> <w:pStyle w:val="WW-NormalWeb" />
> <w:spacing w:before="280" w:after="280" />
> </w:pPr>
>- <w:rPr>
> <w:rFonts w:ascii="Verdana" w:h-ansi="Verdana" />
> <wx:font wx:val="Verdana" />
> <w:sz w:val="20" />
> <w:sz-cs w:val="20" />
> </w:rPr>
> </w:style>
>
>
>The text shows up like
>
> <w:p>
>- <w:pPr>
> <w:pStyle w:val="WW-NormalWeb" />
>- <w:rPr>
> <w:color w:val="333333" />
> </w:rPr>
> </w:pPr>
>- <w:r>
>- <w:rPr>
> <w:color w:val="333333" />
> </w:rPr>
> <w:br />
> <w:t>This release involves capturing presentations and producing output in
>different formats using authorGEN For PowerPoint plug-in and Content Manager
>with additional features given below in this note.</w:t>
> </w:r>
> </w:p>
>
>
>Here the run property shows only bold and color.
>How do I get to know the size of this text
>I I read the style it says the size as 20 whereas the size of the text in
>the doc is 10
>Can someone please tell me how do I get to know the size of the text from
>the XML >>
>
>


david[ at ]at-at-at[ at ]windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
Page 2 Stage -- http://www.Page2Stage.com
Enemy Nations -- http://www.EnemyNations.com
me -- http://dave.thielen.com
Barbie Science Fair -- http://www.BarbieScienceFair.info
(yes I have lots of links)
Re: Problem in Word XML
"Abhishek" <abhishekbagga_at_hotmail.com> 20.10.2005 05:39:09
Thanks Bob
you mean to say that whereevr I get the value for
w:sz w:val="20" /> =10 or
w:sz w:val="24" /> =12

Thanks
Abhishek


"Bob Buckland ?:-)" <75214.226(At Beautiful Downtown)compuserve.com> wrote
in message news:OImvX9K1FHA.268[ at ]TK2MSFTNGP09.phx.gbl...
[Quoted Text]
> Hi Abhishek,
>
> For a number of the values in the fileit appears that the
> values are in TWIPS (1/1440th of an inch)
> <w:sz w:val="20" />
> but for the font sizes it appears that 1/2-points (1/144th
> of an inch) is being used. (1/2 point is the granularity
> you can use from the Word U.I.) to set point sizes.
>
> =====
> <<"Abhishek" <abhishekbagga_at_hotmail.com> wrote in message
> news:O%23GBDBK1FHA.1032[ at ]TK2MSFTNGP12.phx.gbl...
> Hi!
>
> I saved a doc as xml and was referring to the XML thrugh my code , and I
> found a problem
> The styles tag of the XML is defined in this manner
> -
> - <w:style w:type="paragraph" w:styleId="WW-NormalWeb">
> <w:name w:val="WW-Normal (Web)" />
> <w:basedOn w:val="Normal" />
> - <w:pPr>
> <w:pStyle w:val="WW-NormalWeb" />
> <w:spacing w:before="280" w:after="280" />
> </w:pPr>
> - <w:rPr>
> <w:rFonts w:ascii="Verdana" w:h-ansi="Verdana" />
> <wx:font wx:val="Verdana" />
> <w:sz w:val="20" />
> <w:sz-cs w:val="20" />
> </w:rPr>
> </w:style>
>
>
> The text shows up like
>
> <w:p>
> - <w:pPr>
> <w:pStyle w:val="WW-NormalWeb" />
> - <w:rPr>
> <w:color w:val="333333" />
> </w:rPr>
> </w:pPr>
> - <w:r>
> - <w:rPr>
> <w:color w:val="333333" />
> </w:rPr>
> <w:br />
> <w:t>This release involves capturing presentations and producing output
> in
> different formats using authorGEN For PowerPoint plug-in and Content
> Manager
> with additional features given below in this note.</w:t>
> </w:r>
> </w:p>
>
>
> Here the run property shows only bold and color.
> How do I get to know the size of this text
> I I read the style it says the size as 20 whereas the size of the text in
> the doc is 10
> Can someone please tell me how do I get to know the size of the text from
> the XML >>
>
>
>


Re: Problem in Word XML
"Abhishek" <abhishekbagga_at_hotmail.com> 20.10.2005 06:02:18
One more thing
If you could please explain me how do we get (or can we get?) the pagebreaks
within the doc in the XML
Are the pagebreaks listed anywhere in the XML generated by word 2003
Are both hard and soft page breaks available in the XML?

Thanks


"Bob Buckland ?:-)" <75214.226(At Beautiful Downtown)compuserve.com> wrote
in message news:OImvX9K1FHA.268[ at ]TK2MSFTNGP09.phx.gbl...
[Quoted Text]
> Hi Abhishek,
>
> For a number of the values in the fileit appears that the
> values are in TWIPS (1/1440th of an inch)
> <w:sz w:val="20" />
> but for the font sizes it appears that 1/2-points (1/144th
> of an inch) is being used. (1/2 point is the granularity
> you can use from the Word U.I.) to set point sizes.
>
> =====
> <<"Abhishek" <abhishekbagga_at_hotmail.com> wrote in message
> news:O%23GBDBK1FHA.1032[ at ]TK2MSFTNGP12.phx.gbl...
> Hi!
>
> I saved a doc as xml and was referring to the XML thrugh my code , and I
> found a problem
> The styles tag of the XML is defined in this manner
> -
> - <w:style w:type="paragraph" w:styleId="WW-NormalWeb">
> <w:name w:val="WW-Normal (Web)" />
> <w:basedOn w:val="Normal" />
> - <w:pPr>
> <w:pStyle w:val="WW-NormalWeb" />
> <w:spacing w:before="280" w:after="280" />
> </w:pPr>
> - <w:rPr>
> <w:rFonts w:ascii="Verdana" w:h-ansi="Verdana" />
> <wx:font wx:val="Verdana" />
> <w:sz w:val="20" />
> <w:sz-cs w:val="20" />
> </w:rPr>
> </w:style>
>
>
> The text shows up like
>
> <w:p>
> - <w:pPr>
> <w:pStyle w:val="WW-NormalWeb" />
> - <w:rPr>
> <w:color w:val="333333" />
> </w:rPr>
> </w:pPr>
> - <w:r>
> - <w:rPr>
> <w:color w:val="333333" />
> </w:rPr>
> <w:br />
> <w:t>This release involves capturing presentations and producing output
> in
> different formats using authorGEN For PowerPoint plug-in and Content
> Manager
> with additional features given below in this note.</w:t>
> </w:r>
> </w:p>
>
>
> Here the run property shows only bold and color.
> How do I get to know the size of this text
> I I read the style it says the size as 20 whereas the size of the text in
> the doc is 10
> Can someone please tell me how do I get to know the size of the text from
> the XML >>
>
>
>


Re: Problem in Word XML
"Bob Buckland ?:-\)" <75214.226(At Beautiful Downtown)compuserve.com> 21.10.2005 11:46:30
Hi Abhishek,

That appears to be correct from the limited testing I've tried.

======
<<"Abhishek" <abhishekbagga_at_hotmail.com> wrote in message news:eTZiogT1FHA.2540[ at ]TK2MSFTNGP09.phx.gbl...
Thanks Bob
you mean to say that whereevr I get the value for
w:sz w:val="20" /> =10 or
w:sz w:val="24" /> =12

Thanks
Abhishek >>
--
Let us know if this helped you,

Bob Buckland ?:-)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*

For Everyday MS Office tips to "use right away" -
http://microsoft.com/events/series/administrativetipsandtricks.mspx




Re: Problem in Word XML
"Bob Buckland ?:-\)" <75214.226(At Beautiful Downtown)compuserve.com> 21.10.2005 12:31:06
Hi Abishek,

'Soft' page breaks from a Word document wouldn't normally be represented
as where Word 'breaks' a page is determined, on the fly, by looking
at the printer driver and its settings that are currently in use when
a Word document is opened/viewed.

The page size, margins etc are present
(those you'd achieve through File=>Page Setup in Word,
initially as document properties but then also as Word document section
properties/parameters <w:xxxPr> at the *end* of each section as Word can have
different page layouts specified for each section of a document.

Manual or hard breaks (the seven types you can choose, for
example from Insert=>Break,

1. Continuous Section Break
2. Text Wrapping Break
3. Column Break
4. Odd Page Section Break
5. Even Page Section Break
6. Next Page Section Break
7. Page Break

do have indications in the documents.
Those breaks that are section breaks, include, as mentioned
the page layout parameters for the setting.

Below is a an example that includes only the 7. paragraphs listed
above, with the break type named created immediately following its name.

As Dave pointed out previously, if you look at the RTF specification
(not always an easy read <g>) for Word you can see some of the 'how did they
come up with this approach' information for contents <g>.

=========
<<"Abhishek" <abhishekbagga_at_hotmail.com> wrote in message news:%23Mp%23ktT1FHA.664[ at ]tk2msftngp13.phx.gbl...
One more thing
If you could please explain me how do we get (or can we get?) the pagebreaks
within the doc in the XML
Are the pagebreaks listed anywhere in the XML generated by word 2003
Are both hard and soft page breaks available in the XML?

Thanks >>
--
Let us know if this helped you,

Bob Buckland ?:-)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*

For Everyday MS Office tips to "use right away" -
http://microsoft.com/events/series/administrativetipsandtricks.mspx

'============= 102005 - Word document with 7 break types - .xml =========
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?mso-application progid="Word.Document"?>
<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core"
xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" w:macrosPresent="no"
w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve">
<o:DocumentProperties>
<o:Title>1</o:Title>
<o:Author>Bob Buckland ?:-)</o:Author>
<o:LastAuthor>Bob Buckland ?:-)</o:LastAuthor>
<o:Revision>1</o:Revision>
<o:TotalTime>1</o:TotalTime>
<o:Created>2005-10-21T12:01:00Z</o:Created>
<o:LastSaved>2005-10-21T12:01:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>24</o:Words>
<o:Characters>141</o:Characters>
<o:Company>Available</o:Company>
<o:Lines>1</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>164</o:CharactersWithSpaces>
<o:Version>11.6568</o:Version>
</o:DocumentProperties>
<w:fonts>
<w:defaultFonts w:ascii="Times New Roman" w:fareast="MS Mincho" w:h-ansi="Times New Roman" w:cs="Times New Roman"/>
<w:font w:name="MS Mincho">
<w:altName w:val="MS 明朝"/>
<w:panose-1 w:val="02020609040205080304"/>
<w:charset w:val="80"/>
<w:family w:val="Modern"/>
<w:pitch w:val="fixed"/>
<w:sig w:usb-0="A00002BF" w:usb-1="68C7FCFB" w:usb-2="00000010" w:usb-3="00000000" w:csb-0="0002009F" w:csb-1="00000000"/>
</w:font>
<w:font w:name="[ at ]MS Mincho">
<w:panose-1 w:val="02020609040205080304"/>
<w:charset w:val="80"/>
<w:family w:val="Modern"/>
<w:pitch w:val="fixed"/>
<w:sig w:usb-0="A00002BF" w:usb-1="68C7FCFB" w:usb-2="00000010" w:usb-3="00000000" w:csb-0="0002009F" w:csb-1="00000000"/>
</w:font>
</w:fonts>
<w:styles>
<w:versionOfBuiltInStylenames w:val="4"/>
<w:latentStyles w:defLockedState="off" w:latentStyleCount="156"/>
<w:style w:type="paragraph" w:default="on" w:styleId="Normal">
<w:name w:val="Normal"/>
<w:rPr>
<wx:font wx:val="Times New Roman"/>
<w:sz w:val="24"/>
<w:sz-cs w:val="24"/>
<w:lang w:val="EN-US" w:fareast="JA" w:bidi="AR-SA"/>
</w:rPr>
</w:style>
<w:style w:type="character" w:default="on" w:styleId="DefaultParagraphFont">
<w:name w:val="Default Paragraph Font"/>
<w:semiHidden/>
</w:style>
<w:style w:type="table" w:default="on" w:styleId="TableNormal">
<w:name w:val="Normal Table"/>
<wx:uiName wx:val="Table Normal"/>
<w:semiHidden/>
<w:rPr>
<wx:font wx:val="Times New Roman"/>
</w:rPr>
<w:tblPr>
<w:tblInd w:w="0" w:type="dxa"/>
<w:tblCellMar>
<w:top w:w="0" w:type="dxa"/>
<w:left w:w="108" w:type="dxa"/>
<w:bottom w:w="0" w:type="dxa"/>
<w:right w:w="108" w:type="dxa"/>
</w:tblCellMar>
</w:tblPr>
</w:style>
<w:style w:type="list" w:default="on" w:styleId="NoList">
<w:name w:val="No List"/>
<w:semiHidden/>
</w:style>
<w:style w:type="paragraph" w:styleId="HiddenHeaderforACT">
<w:name w:val="Hidden Header for ACT!"/>
<w:basedOn w:val="Normal"/>
<w:next w:val="Normal"/>
<w:pPr>
<w:pStyle w:val="HiddenHeaderforACT"/>
<w:jc w:val="right"/>
</w:pPr>
<w:rPr>
<wx:font wx:val="Times New Roman"/>
<w:vanish/>
<w:sz w:val="16"/>
</w:rPr>
</w:style>
</w:styles>
<w:shapeDefaults>
<o:shapedefaults v:ext="edit" spidmax="2050"/>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout>
</w:shapeDefaults>
<w:docPr>
<w:view w:val="print"/>
<w:zoom w:val="best-fit" w:percent="88"/>
<w:doNotEmbedSystemFonts/>
<w:activeWritingStyle w:lang="EN-US" w:vendorID="64" w:dllVersion="131078" w:nlCheck="on" w:optionSet="0"/>
<w:attachedTemplate w:val=""/>
<w:defaultTabStop w:val="720"/>
<w:drawingGridHorizontalSpacing w:val="120"/>
<w:displayHorizontalDrawingGridEvery w:val="2"/>
<w:displayVerticalDrawingGridEvery w:val="2"/>
<w:punctuationKerning/>
<w:characterSpacingControl w:val="DontCompress"/>
<w:doNotRelyOnCSS/>
<w:pixelsPerInch w:val="300"/>
<w:validateAgainstSchema/>
<w:saveInvalidXML w:val="off"/>
<w:ignoreMixedContent w:val="off"/>
<w:alwaysShowPlaceholderText w:val="off"/>
<w:compat>
<w:dontAllowFieldEndSelect/>
<w:useWord2002TableStyleRules/>
<w:useFELayout/>
</w:compat>
</w:docPr>
<w:body>
<wx:sect>
<w:p>
<w:pPr>
<w:sectPr>
<w:pgSz w:w="12240" w:h="15840"/>
<w:pgMar w:top="864" w:right="720" w:bottom="1008" w:left="720" w:header="720" w:footer="720" w:gutter="0"/>
<w:cols w:space="720"/>
<w:docGrid w:line-pitch="360"/>
</w:sectPr>
</w:pPr>
<w:r>
<w:t>1. Continuous Section Break</w:t>
</w:r>
</w:p>
</wx:sect>
<wx:sect>
<w:p>
<w:r>
<w:t>2. Text Wrapping Break</w:t>
</w:r>
<w:r>
<w:br w:type="text-wrapping" w:clear="all"/>
<w:t>3. Column Break</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:sectPr>
<w:type w:val="continuous"/>
<w:pgSz w:w="12240" w:h="15840"/>
<w:pgMar w:top="864" w:right="720" w:bottom="1008" w:left="720" w:header="720" w:footer="720" w:gutter="0"/>
<w:cols w:space="720"/>
<w:docGrid w:line-pitch="360"/>
</w:sectPr>
</w:pPr>
<w:r>
<w:br w:type="column"/>
<w:t>4. Odd Page Section Break</w:t>
</w:r>
</w:p>
</wx:sect>
<wx:sect>
<w:p>
<w:pPr>
<w:sectPr>
<w:type w:val="odd-page"/>
<w:pgSz w:w="12240" w:h="15840"/>
<w:pgMar w:top="864" w:right="720" w:bottom="1008" w:left="720" w:header="720" w:footer="720" w:gutter="0"/>
<w:cols w:space="720"/>
<w:docGrid w:line-pitch="360"/>
</w:sectPr>
</w:pPr>
<w:r>
<w:t>5. Even Page Section Break</w:t>
</w:r>
</w:p>
</wx:sect>
<wx:sect>
<w:p>
<w:pPr>
<w:sectPr>
<w:type w:val="even-page"/>
<w:pgSz w:w="12240" w:h="15840"/>
<w:pgMar w:top="864" w:right="720" w:bottom="1008" w:left="720" w:header="720" w:footer="720" w:gutter="0"/>
<w:cols w:space="720"/>
<w:docGrid w:line-pitch="360"/>
</w:sectPr>
</w:pPr>
<w:r>
<w:t>6. Next Page Section Break</w:t>
</w:r>
</w:p>
</wx:sect>
<wx:sect>
<w:p>
<w:r>
<w:t>7. Page Break</w:t>
</w:r>
</w:p>
<w:p>
<w:r>
<w:br w:type="page"/>
</w:r>
</w:p>
<w:sectPr>
<w:pgSz w:w="12240" w:h="15840"/>
<w:pgMar w:top="864" w:right="720" w:bottom="1008" w:left="720" w:header="720" w:footer="720" w:gutter="0"/>
<w:cols w:space="720"/>
<w:docGrid w:line-pitch="360"/>
</w:sectPr>
</wx:sect>
</w:body>
</w:wordDocument>
'================= end


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