Re: Maybe it's a bug
- From: "Mark J. McGinty" <mmcginty@xxxxxxxxxxxxxxx>
- Date: Mon, 21 Aug 2006 00:12:07 -0700
"Lorry Astra" <LorryAstra@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B9669AA0-CBAE-4F75-A69F-AF937C4868A1@xxxxxxxxxxxxxxxx
hi,
i encountered a difficulty when i tried to open a DomDocument object.
And
i could get different RecordCount when i open the xml.
pls follow my way to recap the scene.
1. rs.Save Domtmp, adPersistXML (rs is an object of the ADO.Recordset, and
to be sure the rs.recordcount is more than 2 now)
2. To revise Domtmp.
for example:
To revise this xml style
<rs:data>
<z:row ....../>
<z:row ....../>
<z:row ....../>
</rs:data>
to the style below.
<rs:data>
<z:row ......></z:row>
<z:row ......></z:row>
<z:row ......></z:row>
</rs:data>
3.Both the two style are correct.
It appears that either form parses identically. The only inference I can
draw is that ADO doesn't use MSXML to parse xml-persisted recordsets?
I'm not sure I'd call it a bug though -- why do you want/need to alter the
structure?
-Mark
But when we load then style which is
changed.
DomTmp.loadxml(.....);
And i use a ADO RecordSet object to open it.
rs.open DomTmp
And now u check the recordcount, it's 1 instead of 3. But i think 3 is
correct. In my opinion, there is something wrong when ADO.RecordSet
analyzes
the xml style.
Could u tell me how to resolve it. Thanks
My Dev Environment:
Win2000 sp4
ADO 2.6
Sincerely,
Lorry
.
- Prev by Date: Re: parsing xml
- Next by Date: Re: parsing xml
- Previous by thread: Re: How to retrieve null data elements in xml from ado
- Next by thread: Re: Maybe it's a bug
- Index(es):
Relevant Pages
|