XML beans specifing process instructions in Schema

M

Mithil

HI Everyone,

I was just wondering whether there is an attribute that I should
specify in XML schema to get the XML beans write the Processing
Instruction of the XML file at the start of the document or is there
any other way to add this automatically within XML beans. By
processing Instructions I mean:

specifying the file as an xml file with it's version

<?xml version="1.0" encoding="UTF-8"?
specifying the DTD of the xml file

<!DOCTYPE Library SYSTEM "http://jcom.com/
BooksLibrary.dtd">

at present I am just adding this to the string that I get out of xml
beans is there any other means to do this any help will be greatly
appreciated.

Regards,
Mithil
 
J

Joe Kesselman

Neither of these is a Processing Instruction; that term has a specific
meaning in the XML Recommendation.

The XML Declaration does, admittedly, have the same syntax as a
Processing Instruction. I don't know the XML Beans package, but I would
certainly hope they deal with the XML Declaration automatically since
that's a pretty basic part of XML serialization.
specifying the DTD of the xml file
<!DOCTYPE Library SYSTEM "http://jcom.com/
BooksLibrary.dtd">

I'd assume there's a way to specify the doctype using XML Beans, but I'd
have to hit the web to find out what it is... May I suggest that you do
so and report back?
 
M

Mithil

hi Joe,

Thanks for the reply, I see your point of argument and I should agree
to it I guess. I actually found that there are some methods within XML
beans which allows the specification of the xml version type and the
DTD. Thanks for your help dude.

Regards,
Mithil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top