[xml] shortest method to create XML



Hi all,

Please can any one tell me the shortest method to create XML.
As currently I am using xmlTextWriter....() method to create
XML file data.

My requirements are:
1. Creating XML for logs of Firewall (which has around 35
CLASS nodes and rest are their attributes and content text.
2. Testing phase compalsion is 120(UT)+35(CT) test cases for
each 1000 lines
3. There are around 5 XML to be created for log analyses.
which contains different Class names & their attributes.

I have created 1 file with xmlTextWriter....() method. but it
is toooooo lendhy and need to validate each function call for
libxml. Development was OK for me but the problem was Testing
where it is an compalsory to trap every return, break, ifs &
loops. That means I have created 35*3 = 105 test cases just to
cover the class blocks & attributes and text within the class
is different count.

This full process is very time consuming. that has taken away
my weekends as well.

If any one can please guide any batter method for creating XML
which will reduce the code lines and testing time then I will
be very thankful...

Thanking in advance.
Bipin Mistry.

-----------------------------------------------------------
Hi..! Get this Exclusive Offer From 30gigs.com. Free Ipod Nano! Click Here.
Don't have 30gigs email account yet? Sign up and get your 30GB Webmail account Now!



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]