Leena Kulkarni wrote:
> Did not know of the schema. We used the DTD.
With Schema I meant the selection of tags and attributes,
not an xsd.
> Anyways, if that is obsolete,
Custom iText tags and attributes are obsolete in general.
> 1. what should be our DOCTYPE definition now?
Any custom DTD or XSD you have defined yourself.
> 2. Can we use the xmls anymore as the input?
I have written a book full of examples that use XML as input.
So YES you can use XML as input, but you should not use custom iText
tags/attributes.
> We have & character in the xml in data that we send to the parser.
OK
<>> It is giving exception - org.xml.sax.SAXParseException:
> The entity name must immediately follow the '&' in the entity reference.
> How can we avoid it?
That's a standard exception. You may not use '&' in an XML string.
You need to use & (the same goes for some < and > )
That's general XML knowledge.
> We tried setting the encoding of the InputScource object we
> created from xmlString. But it is not working.
This has nothing to do with encoding; everything with entities.
br,
Bruno
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions