Re: MSXML4 (Document Object Model XML), read the file, read the variables, fill it, send over socket

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You'll find samples all over the Internet.

Jst one detail: Use MSXML6. MSXML4 is an older version that is not distributed with Windows. MSXML6 OTOH is part of most recent versions of Windows and updates are distributed through Windows Update.

As far as coding is concerned, the only difference between the 2 (as far as simple parsing is concerned) are the COM ProgIds!

HTH,

Serge.
http://www.apptranslator.com - Localization tool for your MFC applications


"Andreas Hoffmann" <andreas_hoffmann2@xxxxxxxx> wrote in message news:7a236d77-bf36-444a-b96c-813d25211abb@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello together,

I would like to make the following.

- <root>
- <header eventId="" version="" eventName="" timeStamp="">
<location lineNumber="" stationNumber="" stationIdent=""
toolPosition="0" processName="" application="" />
</header>
- <event>
<Processed identifier="" />
</event>
- <body>
<identifierType></identifierType>


I would like to read the XML file from harddisk.

I look for the Variables or for all, depend from the customer.
- lineNumber
- processName
- identifierType
and fill these.

After I placed it finished, I will send it over socket to the
customer.

Questions:
a) How can I read the XML file in memory?
b) How search I for the variables?
c) How I provide the new XML telegram?
d) How can I do examine for validity?
It is a valid xml file?


I would like to use MSXML 4 (Document Object Model XML DOM)
I need entered for that, I never use XML.
A simple example is for me the best. Thnak you very much.

Regards Andreas

.



Relevant Pages

  • Re: Different Approaches to Saving settings: Which is better?
    ... Everything that affects the computer and belongs to that Registry, ... Everything that belongs to the application would in my opinion be set in the ... I need to have the properties of these windows to stay when the ... up so that it reads and writes from an xml file to handle all this. ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Deployed Application ASP.NET: file and web access.
    ... I've forgotten to write that the authentication is integrated in Windows and ... users who has probem by accessing xml file ... > The customer has deployed the web application into his domain on a IIS 5.5 ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: HfNetChk Message: File versions greater than expected:
    ... the Com+ SP1 from the Windows Udpate-Additional Patches section. ... Since the XML file doesn't ... >All Critical Updates installed via Windows Update ... >All HfNetChk suggested hotfixes installed. ...
    (Focus-Microsoft)
  • Re: File Association - XML
    ... Are you able to open XML file by clicking on XML hyperlink in the *internet* using your browser? ... Ramesh Srinivasan, Microsoft MVP [Windows Shell/User] ...
    (microsoft.public.windowsxp.help_and_support)
  • IIS, Webservice and Pocket PC synronization
    ... service runing on IIS 5.1 on a Windows XP Pro box from a Symbol Windows ... XML file when I check after the error message is received. ... I am terrible at IIS configuration,security and permissions. ...
    (microsoft.public.dotnet.framework.aspnet.mobile)