Hi all,

I�m having a bit of a problem that hopefully someone will be able to help me with.

I have an xml file similar to the one below:

 

<Logger>

            <Event>

                        <TypeA>

                                    <A_ID>0</A_ID>

                                    <message>feeder not found</message>

                        </TypeA>      

                        <TypeB>

                                    <B_ID>22</B_ID>

                                    <Time>11</Time>

                                    <Date>12Feb</Date>                        

                        </ TypeB >

            </Event>

</Logger>

 

What I want to be able to do is read in this file append a Node TypeC after TypeB but still inside the Event Node, and then Print out the file to the screen but also save it so that it overwrites the original file.

I have been using the DOMPrint Class to do this and I am able to read in and print out the file but I still can�t figure out how to manipulate the data before printing it. I have tried methods similar to those used in CreateDOMDocument but hence far have had no success.

I would greatly appreciate all suggestions.

Thanks,

Emma

 



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to