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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xmlDoc extra attribute

Status
Not open for further replies.

Squirrel30

Programmer
Aug 13, 2008
3
0
0
SI
Hi
I have this code :

xmlDoc : TXMLDocument;
firstNode,bodyNode,bodyContent : IXMLNode;

xmlDoc.Active := true;
firstNode := xmlDoc.AddChild('Envelope') ;
firstNode.Attributes['xmlns']
:=' firstNode.Attributes['xmlns:edp']
:=' firstNode.Attributes['xmlns:podo']
:=' bodyNode:= firstNode.AddChild('body');
bodyContent:=bodyNode.AddChild('edp:bodyContent') ;

on my computer >
<Envelope xmlns="xmlns:edp="xmlns:podo="-<body>
<edp:bodyContent />

on other comp:

<Envelope xmlns="xmlns:edp="xmlns:podo="-<body xmlns=">
<edp:bodyContent />

on body tag makes and extra attribute
same program diferent outputs
what is the problem
what shell I do?
 
are the 2 computers running the same version of windows and have the same service packs installed. ?

Aaron
 
Browse to ..\WINDOWS\system32\ and right-click on msxml.dll
Select version tab. Mine is 8.0.7002.0 (WXP-SP3)

Look for other versions in ..\delphi\bin\

Look at the MSXMLx_TBL.pas you're using. (Mine's in ..\delphi\Imports\) Is the DCU fresh and using the correct DLL?

Just some ideas.


Roo
Delphi Rules!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top