I'm running the developer version and have successfully run the sample dtd->java project but have a couploe of
questions:
1. the docs mention that it is a two step process dtd->bom->java and that you can use the bom file to customize
the mapping to java but there seems to be no option to generate this file - the wizard comes up and java is
generated directly. There does seem to be a two step version in the extras tree but it looks very old and
preliminary and not what is used now. Are the docs just out of date or am I missing some option somewhere?
2. the example dtd works fine but if I substitute a different file, e.g. the original dtd:
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT XmlEmployee (EmpNo, FirstName, LastName, PhoneExt, HireDate, DeptNo, JobCode, JobGrade, JobCountry,
Salary, FullName)>
<!ELEMENT DeptNo (#PCDATA)>
etc.
is replaced with:
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT Xmlcims_document(cims_model_node?, cims_global_node?, cims_general_node*)>
<!ELEMENT cims_general_node(cims_general_node*, cims_attributes)>
etc.
then it is as if it never sees the file, the "root element" entry in the wizard is blank and the wizard
generates one java file rootelement.java as if it never saw my dtd file.
TIA,
John
I wish you would have been as descriptive
in your 6/22 post to the IDE newsgroup.
Now I see what you mean by empty!
> 1. the docs mention that it is a two step process dtd->bom->java [...]
This appears to be something which may have
been the case in an earlier version, but
as of JBuilder X, I don't see the .bom
file anywhere.
> 2. the example dtd works fine but if I substitute
> a different file, e.g. the original dtd:
> <?xml version="1.0" encoding="UTF-8"?>
> <!ELEMENT XmlEmployee (EmpNo, FirstName, LastName, PhoneExt, HireDate, DeptNo, JobCode, JobGrade, JobCountry,
> Salary, FullName)>
> <!ELEMENT DeptNo (#PCDATA)>
> etc.
>
> is replaced with:
> <?xml version="1.0" encoding="UTF-8"?>
> <!ELEMENT Xmlcims_document(cims_model_node?, cims_global_node?, cims_general_node*)>
> <!ELEMENT cims_general_node(cims_general_node*, cims_attributes)>
> etc.
>
> then it is as if it never sees the file, the "root element"
> entry in the wizard is blank and the wizard
> generates one java file rootelement.java as if it
> never saw my dtd file.
Wow. All that running around in the IDE newsgroup
thread, and this is what you mean by "empty". It
has nothing to do with line endings. That's a red herring.
Run JBuilder in the -verbose mode from the command-line.
See the error messages which indicate where
your substituted DTD is invalid.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://www.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
Yeah, neither did I even though the JBuilderX docs say it should be there :(
> > 2. the example dtd works fine but if I substitute
> > a different file, e.g. the original dtd:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!ELEMENT XmlEmployee (EmpNo, FirstName, LastName, PhoneExt, HireDate, DeptNo, JobCode, JobGrade, JobCountry,
> > Salary, FullName)>
> > <!ELEMENT DeptNo (#PCDATA)>
> > etc.
> >
> > is replaced with:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!ELEMENT Xmlcims_document(cims_model_node?, cims_global_node?, cims_general_node*)>
> > <!ELEMENT cims_general_node(cims_general_node*, cims_attributes)>
> > etc.
> >
> > then it is as if it never sees the file, the "root element"
> > entry in the wizard is blank and the wizard
> > generates one java file rootelement.java as if it
> > never saw my dtd file.
>
> Wow. All that running around in the IDE newsgroup
> thread, and this is what you mean by "empty". It
I said it actred as if the file was empty - that seems pretty clear.
> Run JBuilder in the -verbose mode from the command-line.
> See the error messages which indicate where
> your substituted DTD is invalid.
ok I'll try that.