CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 1999
    Location
    France
    Posts
    393

    Stupid XML question

    Hi,

    I am trying to use the msxml parser

    I want to generate the following XML file.
    Code:
    <ENTITIES>
    	<FOLDER value=”F1” icon=””>
                    	<ENTITY name=”Entity”>
    			< OBJECTS >
    			       <OBJ Name=”Obj1” /OBJ>
    			       <OBJ Name=”Obj2” /OBJ>
    			</ OBJECTS >
    	                </ENTITY>
                    </FOLDER>
    <ENTITIES>
    I have import the msxml3 using
    #import "C:\\WINDOWS\\System32\\msxml3.dll" named_guids

    and now please just a piece of code to generate an XML file like above it will be great.

    Thanks a lot!

  2. #2
    Join Date
    Sep 1999
    Location
    France
    Posts
    393

    Re: Stupid XML question

    NOTE : Even VB code is good ;-))

  3. #3
    Join Date
    Aug 2002
    Location
    Cluj-Napoca,Romania
    Posts
    3,496

    Re: Stupid XML question

    Here is an example

    But 1 question: why msxml3 and not simply msxml?

    PS: your code is not a valid XML document.
    Har Har

  4. #4
    Join Date
    Sep 1999
    Location
    France
    Posts
    393

    Re: Stupid XML question

    Fast and efficient

    seems to be exactly what I need.

    For the msxml3, just why not ;-))

  5. #5
    Join Date
    Aug 2002
    Location
    Cluj-Napoca,Romania
    Posts
    3,496

    Re: Stupid XML question

    Quote Originally Posted by F.Mayis
    For the msxml3, just why not ;-))
    So that it works on machines that do not have msxml3 installed.
    Har Har

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured