🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.xml
3 messages
3 total messages Started by J. User Tue, 21 Sep 2004 02:59
BorlandXML dtd->java question
#17
Author: J. User
Date: Tue, 21 Sep 2004 02:59
29 lines
2106 bytes
Hi,

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
Re: BorlandXML dtd->java question
#18
Author: Paul Furbacher [TeamB]
Date: Thu, 23 Sep 2004 15:09
56 lines
2775 bytes
J. User wrote:

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.
Re: BorlandXML dtd->java question
#19
Author: J. User
Date: Fri, 24 Sep 2004 09:07
47 lines
2528 bytes
In article <4152e714$1@newsgroups.borland.com>, pfurbacher@mac.com says...
> J. User wrote:
> 
> 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.

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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads