yaswanth.14 has asked for the wisdom of the Perl Monks concerning the following question:
I need to generate test XMLs(valid & invalid ones) from a master XML or DTD.
Here is the sample DTD & master XML.<?xml version="1.0"?> <!DOCTYPE note [ <!ELEMENT note (to,from,heading,body)> <!ELEMENT to (#PCDATA)> <!ELEMENT from (#PCDATA)> <!ELEMENT heading (#PCDATA)> <!ELEMENT body (#PCDATA)> ]> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend</body> </note>
When it comes to good XMLs, i need to generate them with different data that i have from Oracle database. In case of negative tests I need to generate XML which are not strict to my DTD. Please give me some suggestions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Generate XMLs from a master XML or DTD
by jdrago999 (Pilgrim) on Jun 08, 2012 at 17:40 UTC | |
|
Re: Generate XMLs from a master XML or DTD
by thomas895 (Deacon) on Jun 07, 2012 at 05:39 UTC | |
|
Re: Generate XMLs from a master XML or DTD
by Jenda (Abbot) on Jun 09, 2012 at 01:36 UTC |