Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML DOM in VB 6.0

Status
Not open for further replies.

bkowlagi

Programmer
Apr 8, 2003
28
US
I am trying to manipulate a XML DOM document using the DomDocument40 object that comes with MSXML 4.0

Right now I am able to read information of the nodes and attributes using the IXMLDOMELEMENT object. However when I try to write to the attribute using '.setattribute' it seems like the format is lost.

I was wondering if the it has anyhting to do with the documents encoding in unicode or something like that. How do I find out if the document is not encoded in ASCII and how do I write strings using different encoding formats.

e.g. the following text is an attribute node's value
ª+1 Post Point Events
ª+2 Event Event: Paycalculate
@@

The above piece of text when written into the XML document turns up as following

ª+1 Post Point Events ª+2 Event Event: Paycalculate ª+3 Get GridP @@

The vbNewline or vbCrlf is written as

Any help is welcome.
 
Please see my reply in the vb6 forum.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top