wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes How to Convert DTD file into XFLAT file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to Convert DTD file into XFLAT file" Watch "How to Convert DTD file into XFLAT file" New topic
Author

How to Convert DTD file into XFLAT file

Jasmine kaur
Ranch Hand

Joined: Nov 25, 2003
Posts: 157
Hi Everybody,
Thanks for always helping me , I would like to know how to convert DTD file into XFL file that is Xflat file.
What are the different possibilties to achieve this.

Thanks in advance.



jasmine kaur
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
The central problem here is that DTD documents are in their very own format, NOT compatible with XML toolkits.

I have written programs to parse DTD documents - it is a big pain.

What do you really need to do?

Bill
Jasmine kaur
Ranch Hand

Joined: Nov 25, 2003
Posts: 157
Hi,
Thanks for responding, there is a requirement in my project where Iam merging xml files through XSLT after merging Iam getting an XML file and I need to have an XFL file for the XML file , this xml file needs to be convert into Excel file later with proper format so this is the requierment.

Iam able to merge the XMl files and the end result of XML file need to be convert into flat file and iam not able to generate a ptoper XFL file and Iam getting exception.Iam attaching the code for the same.
XML file -------
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE note SYSTEM "sdocbook.dtd">
<article>
<title>Executive Summary - India</title>
<articleinfo>
<author>
<firstname>TransUnion</firstname>
</author>
<abstract>
<para>Print Image</para>
</abstract>
<keywords>
<keyword>Credit</keyword>
<keyword>Report</keyword>
<keyword>India</keyword>
</keywords>
<date>2008-7-16T8:14:27-481</date>
<othercredit class="translator">
<affiliation>
<orgname class="corporation">Docudesk</orgname>
</affiliation>
</othercredit>
</articleinfo>
<section>
<title>Page 1</title>
<para>
<phrase>
<emphasis> CONSUMER: </emphasis>PRATAP CHANDER GROVER
</phrase>
<phrase>
<emphasis> MEMBER ID: </emphasis>NB66111054
</phrase>
<phrase>
<emphasis> MEMBER REFERENCE NUMBER: </emphasis>
</phrase>
</para>
<para>
<phrase>
<emphasis>DATE:</emphasis>05-05-2008
</phrase>
<phrase>
<emphasis>TIME: </emphasis>14:43:36
</phrase>
<phrase>
<emphasis>CONTROL NUMBER: </emphasis>36,12,66,563
</phrase>
</para>
<para>
<phrase>
<emphasis>CONSUMER INFORMATION: </emphasis>
</phrase>
<phrase>
<emphasis>NAME: </emphasis>MR PRATAP CHANDER GROVER    
</phrase>
</para>
<para>
<emphasis>PERSONAL DETAILS</emphasis>
</para>
<para>
<emphasis>TELEPHONE(S)</emphasis>
</para>
<para>
<emphasis>IDENTIFICATION</emphasis>
</para>
<para>
<phrase>
<emphasis>DATE OF BIRTH: </emphasis>01-01-1952
</phrase>
<phrase>
<emphasis>GENDER: </emphasis>MALE
</phrase>
</para>
<para>01191472979,2431103</para>
<para>
<phrase>
<emphasis>INCOME TAX ID: </emphasis>AAVPG9138L
</phrase>
<phrase>
<emphasis>VOTER ID: </emphasis>
</phrase>
<phrase>
<emphasis>PASSPORT NO: </emphasis>IAAYPG7158
</phrase>
</para>
<para>
<emphasis>ADDRESS(ES): </emphasis>
</para>
<para>
<emphasis>ADDRESS </emphasis>
</para>
<para>
<emphasis>DATE REPORTED</emphasis>
</para>
<para>H NO-69B SECTOR-37 NOIDA NOIDA UTTAR PRADESH 201301</para>
<para>28-02-2007</para>
<para>698 SEC 37 M R GROVER UTTAR PRADESH 201301</para>
<para>05-06-2006</para>
<para>
<phrase>NATIONAL TEXTILE CORP LTD SCOPE COMPLEX CORE-IV 7 LODHI ROAD NEW </phrase>
<phrase>DELHI DELHI 110003</phrase>
</para>
<para>30-11-2005</para>
<para>
<phrase>FLAT NO 698 SECTOR 37 ARUN VIHAR NOIDA NEAR LAL MARKET UTTAR PRADESH </phrase>
<phrase>201301</phrase>
</para>
<para>31-05-2004</para>
<para>
<emphasis>CIBIL TRANSUNION SCORE: </emphasis>
</para>
<para>
<emphasis>SCORE </emphasis>
</para>
<para>
<emphasis>SCORING FACTORS </emphasis>
</para>
<para>790</para>
<para>
<phrase>1:  CREDIT CARD BALANCES ARE HIGH IN PROPORTION TO HIGH CREDIT AMOUNT. </phrase>
<phrase>2:  LOW PROPORTION OF SATISFACTORY TRADES. </phrase>
</para>
<para>
<phrase>
<emphasis>SUMMARY: </emphasis>
</phrase>
<phrase>
<emphasis>ACCOUNT(S) </emphasis>
</phrase>
</para>
<para>
<emphasis>ACCOUNT TYPE </emphasis>
</para>
<para>
<emphasis>ACCOUNTS </emphasis>
</para>
<para>
<emphasis>ADVANCES </emphasis>
</para>
<para>
<emphasis>BALANCES </emphasis>
</para>
<para>
<emphasis>DATE OPENED </emphasis>
</para>
<para>
<emphasis>All Accounts</emphasis>
</para>
<para>
<emphasis>TOTAL: </emphasis>16
</para>
<para>
<emphasis>HIGH CR/SANC. AMT: </emphasis>12,62,847
</para>
<para>
<emphasis>CURRENT: </emphasis>9,27,683
</para>
<para>
<emphasis>RECENT: </emphasis>29-08-2007
</para>
<para>
<emphasis>OVERDUE: </emphasis>0
</para>
<para>
<emphasis>OVERDUE: </emphasis>
</para>
<para>
<emphasis>OLDEST: </emphasis>30-09-1997
</para>
<para>
<emphasis>ZERO-BALANCE: </emphasis>2
</para>
<para>
<emphasis>ENQUIRIES </emphasis>
</para>
<para>
<emphasis>ENQUIRY PURPOSE </emphasis>
</para>
<para>
<emphasis>TOTAL </emphasis>
</para>
<para>
<emphasis>PAST 30 DAYS </emphasis>
</para>
<para>
<emphasis>PAST 12 MONTHS </emphasis>
</para>
<para>
<emphasis>PAST 24 MONTHS </emphasis>
</para>
<para>
<emphasis>RECENT </emphasis>
</para>
<para>
<emphasis>All Enquiries</emphasis>
</para>
<para>15</para>
<para>2</para>
<para>9</para>
<para>3</para>
<para>03-05-2008</para>
<para>
<emphasis>ACCOUNT(S): </emphasis>
</para>
<para>
<emphasis>ACCOUNT </emphasis>
</para>
<para>
<emphasis>DATES </emphasis>
</para>
<para>
<emphasis>AMOUNTS </emphasis>
</para>
<para>
<emphasis>STATUS </emphasis>
</para>
<para>
<phrase>
<emphasis>MEMBER NAME: </emphasis>NOT DISCLOSED
</phrase>
<phrase>
<emphasis>ACCOUNT NUMBER: </emphasis>NOT
</phrase>
<phrase>DISCLOSED </phrase>
<phrase>
<emphasis>TYPE: </emphasis>CREDIT CARD
</phrase>
<phrase>
<emphasis>OWNERSHIP: </emphasis>INDIVIDUAL
</phrase>
</para>
<para>
<phrase>
<emphasis>OPENED: </emphasis>29-08-2007
</phrase>
<phrase>
<emphasis>LAST PAYMENT: </emphasis>20-02-2008
</phrase>
<phrase>
<emphasis>CLOSED: </emphasis>
</phrase>
<phrase>
<emphasis>REPORTED: </emphasis>29-02-2008
</phrase>
</para>
<para>
<phrase>HIGH CREDIT: 36,142 </phrase>
<phrase>
<emphasis>CURRENT BALANCE: </emphasis>30,215
</phrase>
<phrase>
<emphasis>OVERDUE: </emphasis>
</phrase>
</para>
<para>
<emphasis>DAYS PAST DUE/ASSET CLASSIFICATION (UP TO 36 MONTHS; LEFT TO RIGHT)</emphasis>
</para>
<para>  Services provided in association with</para>
<para>� COPYRIGHT 2007 CREDIT INFORMATION BUREAU (INDIA) LIMITED. ALL RIGHTS RESERVED.</para>
<para>PAGE 1 OF 6</para>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen6.png" contentwidth="557pt" contentdepth="106pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen7.png" contentwidth="557pt" contentdepth="44pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen8.png" contentwidth="557pt" contentdepth="20pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen9.png" contentwidth="553pt" contentdepth="22pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen10.png" contentwidth="553pt" contentdepth="98pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen11.png" contentwidth="554pt" contentdepth="88pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen12.png" contentwidth="60pt" contentdepth="21pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen14.png" contentwidth="553pt" contentdepth="2pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen15.png" contentwidth="553pt" contentdepth="2pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen18.png" contentwidth="557pt" contentdepth="8pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen19.png" contentwidth="557pt" contentdepth="5pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen27.png" contentwidth="558pt" contentdepth="8pt"/>
</imageobject>
</mediaobject>
</section>
<section>
<title>Page 2</title>
<para>
<phrase>
<emphasis> CONSUMER: </emphasis>PRATAP CHANDER GROVER
</phrase>
<phrase>
<emphasis> MEMBER ID: </emphasis>NB66111054
</phrase>
<phrase>
<emphasis> MEMBER REFERENCE NUMBER: </emphasis>
</phrase>
</para>
<para>
<phrase>
<emphasis>DATE:</emphasis>05-05-2008
</phrase>
<phrase>
<emphasis>TIME: </emphasis>14:43:36
</phrase>
<phrase>
<emphasis>CONTROL NUMBER: </emphasis>36,12,66,563
</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>02-08</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>01-08</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>12-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>11-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>10-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>09-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>08-07</phrase>
</para>
<para>
<emphasis>ACCOUNT </emphasis>
</para>
<para>
<emphasis>DATES </emphasis>
</para>
<para>
<emphasis>AMOUNTS </emphasis>
</para>
<para>
<emphasis>STATUS </emphasis>
</para>
<para>
<phrase>
<emphasis>MEMBER NAME: </emphasis>NOT DISCLOSED
</phrase>
<phrase>
<emphasis>ACCOUNT NUMBER: </emphasis>NOT
</phrase>
<phrase>DISCLOSED </phrase>
<phrase>
<emphasis>TYPE: </emphasis>PERSONAL LOAN
</phrase>
<phrase>
<emphasis>OWNERSHIP: </emphasis>INDIVIDUAL
</phrase>
</para>
<para>
<phrase>
<emphasis>OPENED: </emphasis>23-08-2007
</phrase>
<phrase>
<emphasis>LAST PAYMENT: </emphasis>17-03-2008
</phrase>
<phrase>
<emphasis>CLOSED: </emphasis>
</phrase>
<phrase>
<emphasis>REPORTED: </emphasis>31-03-2008
</phrase>
</para>
<para>
<phrase>SANCTIONED: 3,00,000 </phrase>
<phrase>
<emphasis>CURRENT BALANCE: </emphasis>2,54,145
</phrase>
<phrase>
<emphasis>OVERDUE: </emphasis>
</phrase>
</para>
<para>
<emphasis>DAYS PAST DUE/ASSET CLASSIFICATION (UP TO 36 MONTHS; LEFT TO RIGHT)</emphasis>
</para>
<para>
<phrase>000 </phrase>
<phrase>03-08</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>02-08</phrase>
</para>
<para>
<phrase>XXX </phrase>
<phrase>01-08</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>12-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>11-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>10-07</phrase>
</para>
<para>
<emphasis>ACCOUNT </emphasis>
</para>
<para>
<emphasis>DATES </emphasis>
</para>
<para>
<emphasis>AMOUNTS </emphasis>
</para>
<para>
<emphasis>STATUS </emphasis>
</para>
<para>
<phrase>
<emphasis>MEMBER NAME: </emphasis>NOT DISCLOSED
</phrase>
<phrase>
<emphasis>ACCOUNT NUMBER: </emphasis>NOT
</phrase>
<phrase>DISCLOSED </phrase>
<phrase>
<emphasis>TYPE: </emphasis>PERSONAL LOAN
</phrase>
<phrase>
<emphasis>OWNERSHIP: </emphasis>INDIVIDUAL
</phrase>
</para>
<para>
<phrase>
<emphasis>OPENED: </emphasis>17-04-2007
</phrase>
<phrase>
<emphasis>LAST PAYMENT: </emphasis>05-08-2007
</phrase>
<phrase>
<emphasis>CLOSED: </emphasis>
</phrase>
<phrase>
<emphasis>REPORTED: </emphasis>31-08-2007
</phrase>
</para>
<para>
<phrase>SANCTIONED: 1,40,000 </phrase>
<phrase>
<emphasis>CURRENT BALANCE: </emphasis>1,26,139
</phrase>
<phrase>
<emphasis>OVERDUE: </emphasis>
</phrase>
</para>
<para>
<emphasis>DAYS PAST DUE/ASSET CLASSIFICATION (UP TO 36 MONTHS; LEFT TO RIGHT)</emphasis>
</para>
<para>
<phrase>000 </phrase>
<phrase>08-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>07-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>06-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>05-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>04-07</phrase>
</para>
<para>
<emphasis>ACCOUNT </emphasis>
</para>
<para>
<emphasis>DATES </emphasis>
</para>
<para>
<emphasis>AMOUNTS </emphasis>
</para>
<para>
<emphasis>STATUS </emphasis>
</para>
<para>
<phrase>
<emphasis>MEMBER NAME: </emphasis>NOT DISCLOSED
</phrase>
<phrase>
<emphasis>ACCOUNT NUMBER: </emphasis>NOT
</phrase>
<phrase>DISCLOSED </phrase>
<phrase>
<emphasis>TYPE: </emphasis>PERSONAL LOAN
</phrase>
<phrase>
<emphasis>OWNERSHIP: </emphasis>INDIVIDUAL
</phrase>
</para>
<para>
<phrase>
<emphasis>OPENED: </emphasis>31-01-2007
</phrase>
<phrase>
<emphasis>LAST PAYMENT: </emphasis>05-04-2007
</phrase>
<phrase>
<emphasis>CLOSED: </emphasis>
</phrase>
<phrase>
<emphasis>REPORTED: </emphasis>30-04-2007
</phrase>
</para>
<para>
<phrase>SANCTIONED: 12,000 </phrase>
<phrase>
<emphasis>CURRENT BALANCE: </emphasis>8,528
</phrase>
<phrase>
<emphasis>OVERDUE: </emphasis>
</phrase>
</para>
<para>
<emphasis>DAYS PAST DUE/ASSET CLASSIFICATION (UP TO 36 MONTHS; LEFT TO RIGHT)</emphasis>
</para>
<para>
<phrase>000 </phrase>
<phrase>04-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>03-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>02-07</phrase>
</para>
<para>
<emphasis>ACCOUNT </emphasis>
</para>
<para>
<emphasis>DATES </emphasis>
</para>
<para>
<emphasis>AMOUNTS </emphasis>
</para>
<para>
<emphasis>STATUS </emphasis>
</para>
<para>
<phrase>
<emphasis>MEMBER NAME: </emphasis>NOT DISCLOSED
</phrase>
<phrase>
<emphasis>ACCOUNT NUMBER: </emphasis>NOT
</phrase>
<phrase>DISCLOSED </phrase>
<phrase>
<emphasis>TYPE: </emphasis>CREDIT CARD
</phrase>
<phrase>
<emphasis>OWNERSHIP: </emphasis>INDIVIDUAL
</phrase>
</para>
<para>
<phrase>
<emphasis>OPENED: </emphasis>16-01-2007
</phrase>
<phrase>
<emphasis>LAST PAYMENT: </emphasis>
</phrase>
<phrase>
<emphasis>CLOSED: </emphasis>
</phrase>
<phrase>
<emphasis>REPORTED: </emphasis>31-03-2008
</phrase>
</para>
<para>
<phrase>HIGH CREDIT: 18,014 </phrase>
<phrase>
<emphasis>CURRENT BALANCE: </emphasis>11,299
</phrase>
<phrase>
<emphasis>OVERDUE: </emphasis>
</phrase>
</para>
<para>
<emphasis>DAYS PAST DUE/ASSET CLASSIFICATION (UP TO 36 MONTHS; LEFT TO RIGHT)</emphasis>
</para>
<para>
<phrase>000 </phrase>
<phrase>03-08</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>02-08</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>01-08</phrase>
</para>
<para>  Services provided in association with</para>
<para>� COPYRIGHT 2007 CREDIT INFORMATION BUREAU (INDIA) LIMITED. ALL RIGHTS RESERVED.</para>
<para>PAGE 2 OF 6</para>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen30.png" contentwidth="553pt" contentdepth="50pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen31.png" contentwidth="553pt" contentdepth="137pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen32.png" contentwidth="553pt" contentdepth="137pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen33.png" contentwidth="553pt" contentdepth="137pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen34.png" contentwidth="553pt" contentdepth="115pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen35.png" contentwidth="554pt" contentdepth="88pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen36.png" contentwidth="60pt" contentdepth="21pt"/>
</imageobject>
</mediaobject>
</section>
<section>
<title>Page 3</title>
<para>
<phrase>
<emphasis> CONSUMER: </emphasis>PRATAP CHANDER GROVER
</phrase>
<phrase>
<emphasis> MEMBER ID: </emphasis>NB66111054
</phrase>
<phrase>
<emphasis> MEMBER REFERENCE NUMBER: </emphasis>
</phrase>
</para>
<para>
<phrase>
<emphasis>DATE:</emphasis>05-05-2008
</phrase>
<phrase>
<emphasis>TIME: </emphasis>14:43:36
</phrase>
<phrase>
<emphasis>CONTROL NUMBER: </emphasis>36,12,66,563
</phrase>
</para>
<para>
<emphasis>ACCOUNT </emphasis>
</para>
<para>
<emphasis>DATES </emphasis>
</para>
<para>
<emphasis>AMOUNTS </emphasis>
</para>
<para>
<emphasis>STATUS </emphasis>
</para>
<para>
<phrase>
<emphasis>MEMBER NAME: </emphasis>NOT DISCLOSED
</phrase>
<phrase>
<emphasis>ACCOUNT NUMBER: </emphasis>NOT
</phrase>
<phrase>DISCLOSED </phrase>
<phrase>
<emphasis>TYPE: </emphasis>CREDIT CARD
</phrase>
<phrase>
<emphasis>OWNERSHIP: </emphasis>INDIVIDUAL
</phrase>
</para>
<para>
<phrase>
<emphasis>OPENED: </emphasis>23-08-2006
</phrase>
<phrase>
<emphasis>LAST PAYMENT: </emphasis>06-02-2008
</phrase>
<phrase>
<emphasis>CLOSED: </emphasis>
</phrase>
<phrase>
<emphasis>REPORTED: </emphasis>29-02-2008
</phrase>
</para>
<para>
<phrase>HIGH CREDIT: 1,46,825 </phrase>
<phrase>
<emphasis>CURRENT BALANCE: </emphasis>1,45,914
</phrase>
<phrase>
<emphasis>OVERDUE: </emphasis>
</phrase>
</para>
<para>
<emphasis>DAYS PAST DUE/ASSET CLASSIFICATION (UP TO 36 MONTHS; LEFT TO RIGHT)</emphasis>
</para>
<para>
<phrase>000 </phrase>
<phrase>02-08</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>01-08</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>12-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>11-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>10-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>09-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>08-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>07-07</phrase>
</para>
<para>
<phrase>XXX </phrase>
<phrase>06-07</phrase>
</para>
<para>
<phrase>XXX </phrase>
<phrase>05-07</phrase>
</para>
<para>
<phrase>XXX </phrase>
<phrase>04-07</phrase>
</para>
<para>
<phrase>XXX </phrase>
<phrase>03-07</phrase>
</para>
<para>
<phrase>XXX </phrase>
<phrase>02-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>01-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>12-06</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>11-06</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>10-06</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>09-06</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>08-06</phrase>
</para>
<para>
<emphasis>ACCOUNT </emphasis>
</para>
<para>
<emphasis>DATES </emphasis>
</para>
<para>
<emphasis>AMOUNTS </emphasis>
</para>
<para>
<emphasis>STATUS </emphasis>
</para>
<para>
<phrase>
<emphasis>MEMBER NAME: </emphasis>NOT DISCLOSED
</phrase>
<phrase>
<emphasis>ACCOUNT NUMBER: </emphasis>NOT
</phrase>
<phrase>DISCLOSED </phrase>
<phrase>
<emphasis>TYPE: </emphasis>CREDIT CARD
</phrase>
<phrase>
<emphasis>OWNERSHIP: </emphasis>INDIVIDUAL
</phrase>
</para>
<para>
<phrase>
<emphasis>OPENED: </emphasis>09-06-2006
</phrase>
<phrase>
<emphasis>LAST PAYMENT: </emphasis>18-02-2008
</phrase>
<phrase>
<emphasis>CLOSED: </emphasis>
</phrase>
<phrase>
<emphasis>REPORTED: </emphasis>29-02-2008
</phrase>
</para>
<para>
<phrase>HIGH CREDIT: 29,869 </phrase>
<phrase>
<emphasis>CURRENT BALANCE: </emphasis>25,081
</phrase>
<phrase>
<emphasis>OVERDUE: </emphasis>
</phrase>
</para>
<para>
<emphasis>DAYS PAST DUE/ASSET CLASSIFICATION (UP TO 36 MONTHS; LEFT TO RIGHT)</emphasis>
</para>
<para>
<phrase>000 </phrase>
<phrase>02-08</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>01-08</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>12-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>11-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>10-07</phrase>
</para>
<para>
<phrase>000 </phrase>
<phrase>09-07</phrase>
</para>
<para>
<emphasis>ACCOUNT </emphasis>
</para>
<para>
<emphasis>DATES </emphasis>
</para>
<para>
<emphasis>AMOUNTS </emphasis>
</para>
<para>
<emphasis>STATUS </emphasis>
</para>
<para>
<phrase>
<emphasis>MEMBER NAME: </emphasis>NOT DISCLOSED
</phrase>
<phrase>
<emphasis>ACCOUNT NUMBER: </emphasis>NOT
</phrase>
<phrase>DISCLOSED </phrase>
<phrase>
<emphasis>TYPE: </emphasis>PERSONAL LOAN
</phrase>
<phrase>
<emphasis>OWNERSHIP: </emphasis>INDIVIDUAL
</phrase>
</para>
<para>
<phrase>
<emphasis>OPENED: </emphasis>06-03-2006
</phrase>
<phrase>
<emphasis>LAST PAYMENT: </emphasis>15-02-2008
</phrase>
<phrase>
<emphasis>CLOSED: </emphasis>
</phrase>
<phrase>
<emphasis>REPORTED: </emphasis>29-02-2008
</phrase>
</para>
<para>
<phrase>SANCTIONED: 1,90,238 </phrase>
<phrase>
<emphasis>CURRENT BALANCE: </emphasis>1,11,950
</phrase>
<phrase>
<emphasis>OVERDUE: </emphasis>
</phrase>
</para>
<para>
<emphasis>DAYS PAST DUE/ASSET CLASSIFICATION (UP TO 36 MONTHS; LEFT TO RIGHT)</emphasis>
</para>
<para>
<phrase>STD </phrase>
<phrase>02-08</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>01-08</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>12-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>11-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>10-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>09-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>08-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>07-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>06-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>05-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>04-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>03-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>02-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>01-07</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>12-06</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>11-06</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>10-06</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>09-06</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>08-06</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>07-06</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>06-06</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>05-06</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>04-06</phrase>
</para>
<para>
<phrase>STD </phrase>
<phrase>03-06</phrase>
</para>
<para>
<emphasis>ACCOUNT </emphasis>
</para>
<para>
<emphasis>DATES </emphasis>
</para>
<para>
<emphasis>AMOUNTS </emphasis>
</para>
<para>
<emphasis>STATUS </emphasis>
</para>
<para>
<phrase>
<emphasis>MEMBER NAME: </emphasis>NOT DISCLOSED
</phrase>
<phrase>
<emphasis>ACCOUNT NUMBER: </emphasis>NOT
</phrase>
<phrase>DISCLOSED </phrase>
<phrase>
<emphasis>TYPE: </emphasis>TWO-WHEELER LOAN
</phrase>
<phrase>
<emphasis>OWNERSHIP: </emphasis>INDIVIDUAL
</phrase>
</para>
<para>
<phrase>
<emphasis>OPENED: </emphasis>11-08-2005
</phrase>
<phrase>
<emphasis>LAST PAYMENT: </emphasis>07-03-2006
</phrase>
<phrase>
<emphasis>CLOSED: </emphasis>
</phrase>
<phrase>
<emphasis>REPORTED: </emphasis>31-03-2006
</phrase>
</para>
<para>
<phrase>SANCTIONED: 20,000 </phrase>
<phrase>
<emphasis>CURRENT BALANCE: </emphasis>0
</phrase>
<phrase>
<emphasis>OVERDUE: </emphasis>
</phrase>
</para>
<para>
<emphasis>DAYS PAST DUE/ASSET CLASSIFICATION (UP TO 36 MONTHS; LEFT TO RIGHT)</emphasis>
</para>
<para>  Services provided in association with</para>
<para>� COPYRIGHT 2007 CREDIT INFORMATION BUREAU (INDIA) LIMITED. ALL RIGHTS RESERVED.</para>
<para>PAGE 3 OF 6</para>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen39.png" contentwidth="553pt" contentdepth="22pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen40.png" contentwidth="553pt" contentdepth="115pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen41.png" contentwidth="553pt" contentdepth="49pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen42.png" contentwidth="553pt" contentdepth="137pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen43.png" contentwidth="553pt" contentdepth="115pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen44.png" contentwidth="553pt" contentdepth="49pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen45.png" contentwidth="553pt" contentdepth="98pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen46.png" contentwidth="554pt" contentdepth="88pt"/>
</imageobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata format="PNG" fileref="RNDQ00013349_media/img-gen47.png" contentwidth="60pt" contentdepth="21pt"/>
</imageobject>
</mediaobject>
</section>
<section>
<title>Page -1</title>
<para>
<phrase>
<emphasis>Thank you for trying deskUNPDF.  This free trial is limited to one page</emphasis>
</phrase>
<phrase>
<emphasis>conversions for the purpose of evaluating deskUNPDF�s capabilities.</emphasis>
</phrase>
</para>
<para>
<emphasis>If you wish to obtain unrestricted functionality in deskUNPDF, please visit</emphasis>
</para>
<para>
<emphasis>www.docudesk.com to purchase or learn more about our PDF software solutions.</emphasis>
</para>
</section>
</article>


Now XFL file which Iam making is not ok and I need help here.
<?xml version='1.0'?>
<XFlat Name="Lan_Details_schema"
Description="Schema for Batch of Purchase Orders">

<SequenceDef Name="article"
Description="An article of the lan."
MinOccur="1" MaxOccur="1">

<RecordDef Name="articleinfo" MinOccur="1" MaxOccur="1">
<FieldDef Name="articleinfo"
MinFieldLength="3" MaxFieldLength="3" />

<FieldDef Name="author"
MinFieldLength="3" MaxFieldLength="3" />

<FieldDef Name="abstract"
MinFieldLength="8" MaxFieldLength="8" />

<FieldDef Name="keywords"
MinFieldLength="6" MaxFieldLength="6" />



<FieldDef Name="date"
MinFieldLength="1" MaxFieldLength="1" />

<FieldDef Name="othercreditclass"
MinFieldLength="13" MaxFieldLength="13"
TrailingFillerChars=" "/>

<FieldDef Name="affiliation"
MinFieldLength="13" MaxFieldLength="13"
TrailingFillerChars=" "/>



</RecordDef> <!-- articleinfo -->

<SequenceDef Name="section"
Description="Purchase order contains 1 or more line items."
MinOccur="1" MaxOccur="0">

<RecordDef Name="para" RecSep="\N"
MinOccur="1" MaxOccur="1">

<FieldDef Name="phrase"
MinFieldLength="3" MaxFieldLength="3"
ValidValue="HDR" MapToXml="No"/>
<FieldDef Name="phrase"
MinFieldLength="13" MaxFieldLength="13"
TrailingFillerChars=" "/>
<FieldDef Name="phrase"
MinFieldLength="8" MaxFieldLength="8" />

<FieldDef Name="mediaobject"
MinFieldLength="20" MaxFieldLength="20" />

<FieldDef Name="imageobject"
MinFieldLength="20" MaxFieldLength="20" />

</RecordDef> <!-- article Info -->


</SequenceDef> <!-- para -->

</SequenceDef> <!-- batch -->

</XFlat>

Thanks a lot .
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
1. Why in the world did you post all that XML? A short sample would have been enough. Why didnt you show the Exception instead?

2. As I said, parsing a DTD into some usable data structure is not simple. Your best bet is to hand modify that XFL file until it works.

3. XFL is not widely used so you are unlikely to get more specific advice here. Try to find an XFLAT / XFL user group.

Bill
Jasmine kaur
Ranch Hand

Joined: Nov 25, 2003
Posts: 157
Hi,
Thanks for responding and sorry for giving a long xml file, please see the small examples of xml file moreover as per your advise iam finding the XFlat group.
XML file--------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE note SYSTEM "sdocbook.dtd">
<article>
<articleinfo>
<author>
JamesBlunt UK Singer.Lyrics are written by him.
<firstname>TransUnion</firstname>
</author>

<keywords>
<keyword>Credit</keyword>
<keyword>Report</keyword>
<keyword>India</keyword>
</keywords>
</articleinfo>
</article>
----------XFL file which Iam making and iam getting exception-----
<?xml version='1.0'?>
<XFlat Name="Lan_Details_schema"
Description="Schema for Batch of Purchase Orders">
<SequenceDef Name="article"
Description="An article of the lan."
MinOccur="1" MaxOccur="1">
<RecordDef Name="articleinfo" RecSep="\N"
MinOccur="1" MaxOccur="1">
<FieldDef Name="author"/>
<FieldDef Name="firstname"/>
<FieldDef Name="keywords"/>
</RecordDef>
</SequenceDef>
</XFlat>
------------ Exception which Iam getting is--------
C:\xmlConvert\xmlconvert>xml2flat MyXFL.xfl Lan12.xml Test1.txt
Licensed copy of XML Convert 2.2.
Copyright (C) 1999 - 2007 Unidex, Inc. All rights reserved.
You may use this software only if you have read the license agreement
and accept its terms.
For more information, please visit http://www.unidex.com/.

Error in XFlat schema.
Description: Found a FieldDef element (Name="author") that is not valid. A Fiel
Def element must meet one or more of the following conditions:
1. A field delimiter must be defined using either the FieldSep attribute (in th
FieldDef element, or in the parent RecordDef element if the field is not the l
st field in the record), or the RecSep attribute in the parent RecordDef elemen
if the field is the last field in the record.
2. The value of the MinFieldLength must be equal to the value of the MaxFieldAt
ribute.
3. One of the following attributes must be set to a non-null value: ValidValue,
ValidChars and InvalidChars.
The error occurred in file:/C:/xmlConvert/xmlconvert/MyXFL.xfl at line #9, colu
n #2.

Iam not able to make a right xml file.
Thanks alot.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Wow that is a really informative error message! It tells you where to look and exactly what is wrong. You should be able to work through the problem with that detailed description.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Convert DTD file into XFLAT file
 
Similar Threads
Convert pcm wav file to mp3 file
convert from System.out to file in xhtml
Is there something similar to Entity notation of DTD files in XSD?
parsing html with swing
parsing html document ???