Same WordML files look different

D

David Thielen

Hi;

I'm hoping someone can tell me why these files are different. I have 2
wordml files at http://www.windward.net/temp/wordml_documents.zip and they
are identical (I copied and pasted from one to the other) both from the start
to the end of the first </w:p> and all of the first <w:sectPr>...</w:sectPr>

Not look the same, compared, etc - I coped from one and pasted it in the
other.

But... If you pull them up side by side, the letter a in the first paragraph
is a bit higer up on the page in report.xml. What is causing this?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
W

Wei Lu [MSFT]

Hello Dave,

I compared two files and found that their size are different.

I am not sure how you copy the file. When I copy the xml source from the
ver51_broken_table_styles.xml to report.xml, the report.xml size became
same as the ver51_broken_table_styles.xml. And when I see in the Word, they
look the same.

Also, you may consider to use a file copy instead of copy the source code
which also get the same result.

Hope this helps.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

Sorry, I wasn't clear. The files are different after the first paragraph. The
are identical up to and through the first paragraph.

It seems to me that no matter what comes after the first paragraph, if they
are identical up to that point, including all fo the styles, fonts, etc
header info - the first line should appear at the same location.

???

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jialiang Ge [MSFT]

Hello Dave,

I have tested the two xml file you gave and reproduce the issue. In order
to compare the 2 xml files, I removed all the line marks in report.xml with
the following codes, so that the format of report.xml and
ver51_broken_table_styles.xml may look alike.
StreamReader reader = new StreamReader("D:\\abc\\report.xml");;
StreamWriter writer = new StreamWriter("D:\\abc\\copyreport.xml");
string line = reader.ReadToEnd();
while (line != null)
{
writer.Write(line.Trim());
line = reader.ReadLine();
}
writer.Close();
reader.Close();

And then I find that the resulting file copyreport.xml is actually not the
same as ver51_broken_table_styles.xml. For instance, the character number
in copyreport.xml is 125621, while ver51_broken_table_styles.xml is 194264.
That is to say there are a lot of difference between the two file content.
And I believe it is those differences that makes the 2 document different
in Word's view. Would you check how you copied the
ver51_broken_table_styles.xml. Could it be some losses of content in the
process of copy?

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

Hi;

I am sorry - I think you are not understanding me. Yes the files are
different.

My point is the files are the same from the begining to the end of the first
paragraph. After that they are different. But because they are the same up
through the end of the first paragraph, the first paragraph should appear the
same in both.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
D

David Thielen

Hi;

First off, thank you for seeing the w:sz difference. That fixed everything
except 1 thing. I can't believe I missed that but I did.

The last thing is still the a in the first paragraph. In both documents it
is 10pt Courier New but it is about 2mm higher vertically on the page in
report.xml. Shouldn't they both have the same vertical location?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top