all groups > dotnet xml > july 2007 >
You're in the

dotnet xml

group:

MSXML6 SP1 broke my SAXWriter


MSXML6 SP1 broke my SAXWriter hong
7/17/2007 9:12:02 AM
dotnet xml:
I upgraded my application from MSXML4 to MSXML6, and everything was working
fine. My project uses MXXMLWriter60, SAXContentHandler and XMLSchemaCache60,
etc.

Then I installed MSXML6 sp1. The XML document generated from my application
has two problems:

1. "????" marks appears inside XML in various places, likely at the end of
the stream buffer (?)
2. The first block of attributes are always added properly. Then the second
block of attributes contain the attributes from the previous element.

Here is an example of before and after:

Good XML with MSXML6:
<?xml version="1.0" encoding="UTF-16" standalone="yes"?><COOL
xmlns="http://www.mycompany.com/60" version="6.0"> <Export
dbtype="relational" version="10.0.0.0"> <Response
result="succeed"/> </Export></COOL>

Bad XML with MSXML6 SP1:
<?xml version="1.0" encoding="UTF-16" standalone="yes"?><COOL
xmlns="http://www.mycompany.com/60" version="6.0"> <Export
dbtype="relational" version="10.0.0.0"> <Response
result="succeed"/> </Export></COOL> ??????????? ????????????
????????????????????? ?????????? ? ? ? ???????????????
??????????????????????????????????????? ? ? ???????????????
????????????????????????????????????????????????????????????????????????????????????
</COOL>OOL>L>>>

Here is another example with attribute problem:
Bad XML with MSXML6 sp1:
<FlatDim name="Year" loaded="Y"
code="Y"> <Member> <AttributeList/> <PropertyList> <Property
propattr_name="Name" element_name="MemName" required="Y"/> <Property
propattr_name="Description" element_name="MemDescription"
required="N"/> <Property propattr_name="Id" element_name="MemID"
required="N"/> </PropertyList> </Member> </FlatDim> <FlatDim
name="RateSet" loaded="Y"
code="E"> <Member> <AttributeList/> <PropertyList> <Property
propattr_name="Name" element_name="MemName" required="Y"/> <Property
propattr_name="Description" element_name="MemDescription"
required="N"/> <Property propattr_name="Id" element_name="MemID"
required="N"/> </PropertyList> </Member> </FlatDim> <FlatDim
name="Currency" loaded="Y"
code="C"> <Member> <AttributeList> <Attribute
propattr_name="Translation Type" element_name="TranslationType" required="N"
xml_attr_type="M" displayable="Y"> <ValueList> <Value
name="M" description="Multiply" order_num="1"/> <Value name="D"
description="Divide"
order_num="2"/> </ValueList> </Attribute> <Attribute
propattr_name="Precision" element_name="Precision" required="N"
xml_attr_type="M" displayable="Y"> <ValueList> <Value
name="0" description="Decimal Precision 0" order_num="1"/> <Value
name="1" description="Decimal Precision 1" order_num="2"/> <Value
name="2" description="Decimal Precision 2" order_num="3"/> <Value
name="3" description="Decimal Precision 3" order_num="4"/> <Value
name="4" description="Decimal Precision 4" order_n
required="N"/> </PropertyList> </Member> </FlatDim> <FlatDim
name="Currency" loaded="Y"
code="C"> <Member> <AttributeList> <Attribute
propattr_name="Translation Type" element_name="TranslationType" required="N"
xml_attr_type="M" displayable="Y"> <ValueList> <Value
name="M" description="Multiply" order_num="1"/> <Value name="D"
description="Divide"
order_num="2"/> </ValueList> </Attribute> <Attribute
propattr_name="Precision" element_name="Precision" required="N"
xml_attr_type="M" displayable="Y"> <ValueList> <Value
name="0" description="Decimal Precision 0" order_num="1"/> <Value
name="1" description="Decimal Precision 1" order_num="2"/> <Value
name="2" description="Decimal Precision 2" order_num="3"/> <Value
name="3" description="Decimal Precision 3" order_num="4"/> <Value
name="4" description="Decimal Precision 4" order_nttribute
propattr_name="Precision" element_name="Precision" required="N"
xml_attr_type="M" displayable="Y"> <ValueList> <Value
name="0" description="Decimal Precision 0" order_num="1"/> <Value
name="1" description="Decimal Precision 1" order_num="2"/> <Value
name="2" description="Decimal Precision 2" order_num="3"/> <Value
name="3" description="Decimal Precision 3" order_num="4"/> <Value
name="4" description="Decimal Precision 4" order_nl Precision 1"
order_num="2"/> <Value name="2" description="Decimal Precision 2"
order_num="3"/> <Value name="3" description="Decimal Precision 3"
order_num="4"/> <Value name="4" description="Decimal Precision 4"
order_n??????? ???????????????????? ????????? ??
????????????????????????????????? ???????? ???????????????????? ????????? ??
??????????????????? ???????? ???????????????????? ????????? ??
???????on="Decimal Precision 4" order_nision 4" order_n
order_ner_n_nnum="5"/> ...


RE: MSXML6 SP1 broke my SAXWriter hong
7/17/2007 6:46:01 PM
Hi, it's me back. I posted the issue below.

I would like to get some pointers as where to look to troubleshoot this
issue. It's easy to tell that the outputed XML document is so messed up using
MSXML6 sp1. There must be someone in the XML team that knows where to look in
my project.

Any help??


[quoted text, click to view]
AddThis Social Bookmark Button