Just need to do the following in your XML document:
-
Arturo Ma
[EMAIL PROTECTED]
FGM Inc.
2820 Camino Del Rio South, Suite 130
San Diego, CA 92108
Office: 619. 297.2905
Fax: 619. 297.2923
http://www.fgm.com
- Original Message ---
Hi Morten,
This is all thoroughly xerces-specific of course, but take a look at the
org.apache.xerces.util.XMLChar class. I think the isValidName method may
do what you want.
Hope that helps,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone: 905-413-3519, T/L 969-3519
E-mail: [EMA
Hello All,
I'm not aware of how to add a xsl stylesheet reference to a xml document
programatically. I'm constructing a xml document thru my program and i want
to add a style sheet to it. Could anyone suggest how to do this? A sample
code snippet would be very much appreciated.
Thanks
Ragu
Circu
Hi. Does Xerces offer a method for validating an element name
only?
I have a data structure where names should obey the same
names as those allowed for XML documents, so I'm not trying
to parse into a DOM, but merely validate the name using
Xerces (if possible), rather than having to write my own
v
hi sandy;
On Tue, 16 Apr 2002 [EMAIL PROTECTED] wrote:
> Sorry for the late response. Yes, you are right: "2e2" is not a valid
> decimal, hence not a valid integer.
>
> I bet you are using a 1.3+ JDK. Xerces uses the BigDecimal class to
> parse/represent decimal values. JDK 1.2 and earlier versi
Sorry for the late response. The grammar caching/preparsing API is not
finalized yet. But you can try the following:
parser.setProperty
("http://apache.org/xml/properties/internal/grammar-pool";, new
XMLGrammarPoolImpl());
Then you'll be using the default grammar pool implementation, which caches
Sorry for the late response. Yes, you are right: "2e2" is not a valid
decimal, hence not a valid integer.
I bet you are using a 1.3+ JDK. Xerces uses the BigDecimal class to
parse/represent decimal values. JDK 1.2 and earlier versions don't
recognize things like "2e2" as BigDecimal, but from 1.3,