- Original Message -
From: "Andy Clark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 21, 2001 11:52 PM
Subject: Re: Notations in schema (readme!)
> Ted Leung wrote:
> > I could have sworn there was a part of XNI for the grammar. I
> > just tried to go to your p
hi,
I have the following xml
I created a document and
doc.getElementsByTagName("Envelope")is working but
doc.getElementsByTagNameNS("*","Envelope") is not working
Will some one let me know what is wrong here.
Thanks
Haneef
Hi Kirk,
I notice the noNamespaceSchemaLocation in your instance document is a full
URI, whereas the one in your schema is a relative URI. This may explain
some of the inconsistency.
The other thing you could try is to specify your own EntityResolver; then
you can have control over what's done
Neil:
I've overlooked an obvious resource. Thank you for
pointing it out. Sincerely, MOD
--- [EMAIL PROTECTED] wrote:
>
>
> Hi Michael,
>
> Why not have a look through the examples in the
> samples/dom package,
> perhaps particularly at DOMCount.java. These
> examples can use the
> DOMPar
Hi Michael,
Why not have a look through the examples in the samples/dom package,
perhaps particularly at DOMCount.java. These examples can use the
DOMParser to successfully validate schemas, outputting errors as
appropriate.
Cheers,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phon
Ian:
I turned on namespaces, but still no dice.
The JAXP API, combined with an ErrorHandler, gets me
the exception I expected when I passed a document that
didn't conform to the schema. The same document
passes quietly by the DOMParser using the same
ErrorHandler.
What else could I be missing
Hi,
It seems there's a change in schema include file loading during
validation between Xerces 1.2.0 and 1.2.3. For an example like the
following, the 1.2.0 parser would load the included schemas relative to
the noNameSpaceSchemaLocation. The 1.2.3 parser seems to search for the
included schema
Keith:
I had EXACTLY the same problem. Look at the note from
Alex Neth dated 22-Feb-2001 and follow the JAXP API as
he laid it out and write an ErrorHandler for yourself.
That will get you an exception if you give it an
invalid document. - MOD
--- "Dalia, Keith A - TOS-DITT1" <[EMAIL PROTECTE
Scott Carter wrote:
>
> I am trying to convince my organization to utilize Xalan in an upcoming
> application that does file transformations from a single format to possibly
> 20 different text based formats. One of the stipulations is that during the
> transformation, we would have to be able
I'm new to xerces. I'm trying to validate an instance doc using xml-schema.
Am I on the right track:
DOMParser parser = new DOMParser();
try
{
parser.setFeature("http://xml.org/sax/features/validation";,
true);
parser.parse("gi.xml");
Alex:
Thank you - you've hit it precisely on the head.
When I use the JAXP API as you suggested and pass the
altered personal-schema.xml document to it, I get a
SAXParseException, as I should. I DON'T get the
exception unless I set an ErrorHandler that throws it.
This ran counter to my intui
Hi Brandon,
Have you tried making any other changes to personal-schema to make it
invalid? Our ID implementation isn't exactly robust in schemas, so it is
possible you've simply found a parser bug. Try including an undefined
element in your instance doc; this will certainly throw an error.
Ch
Hi Alex,
Just to add a couple of things to Ian's response:
Not all folks like to use the JAXP, and the DOMParser provides a nice
interface for a DOM tree for lots of people. The class is also used in
Xerces's schema parsing: it builds the schema grammar representation from
a DOM tree represen
I am trying to convince my organization to utilize Xalan in an upcoming
application that does file transformations from a single format to possibly
20 different text based formats. One of the stipulations is that during the
transformation, we would have to be able to provide totals and subtotals o
Sorry, Brandon - bad idea. It won't happen again.
--- Brandon Rife <[EMAIL PROTECTED]> wrote:
> Please refrain from 521K attachments. I downloaded
> 80+ messages from this
> list this morning, if everyone was as inconsiderate
> as yourself
>
> -Original Message-
> From: Mic
Please refrain from 521K attachments. I downloaded 80+ messages from this
list this morning, if everyone was as inconsiderate as yourself
-Original Message-
From: Michael Duffy [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2001 9:54 AM
To: [EMAIL PROTECTED]
Subject:
On Thu, 22 Feb 2001, Alex Neth wrote:
>
> The DocumentBuilder API is part of the Sun API, whereas the DOMParser is
> proprietary to Xerces.
>
> I was just wondering why this class exists when it is redundant.
DocumentBuilder is part of JAXP, a standard API for XML parsing. The idea
is that if
On Thu, 22 Feb 2001, Michael Duffy wrote:
> I've got a few features turned on:
>
> parser.setFeature("http://xml.org/sax/features/validation";,
> true);
>
> parser.setFeature("http://apache.org/xml/features/validation/dynamic";,
> true);
>
> parser.setFeature("http://apache.org/xml/features/val
olegabr wrote:
>
> I've done it and encoding==cp1251
> but it is not supported by xerces
>
> question: how can I convert my files in one of encodings
> that is already supported?
For these thing I use iconv:
+++
iconv -f cp1251 -t 8859_1 toto.xml
+++
There also a native2ascii in most JVM distri
M Thirumal Kumar wrote:
> My address is
>
> 104 , Sai Balaji Towers,
> near Dhurgam Cheervu,
> Kavuri hills,
> Hydrabad 500 034.
Party at Thirumal's place! BYOP (bring your own parser) ;)
--
Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]
The DocumentBuilder API is part of the Sun API, whereas the DOMParser is
proprietary to Xerces.
I was just wondering why this class exists when it is redundant.
I guess you are actually setting the sax feature
http://xml.org/sax/features/validation
to true in order to enable parsing on the DOMP
Hi Mathur,
Yes. I have pretty much settled here. All my things reached through road
yesterday . I have applied for a telephone with DOT,those guys promised to
install the phone in a weeks' time . It is more than two weeks since I applied
and now their response is that they will let me know my
olegabr wrote:
> I've done it and encoding==cp1251
> but it is not supported by xerces
Just for a sanity check, have you tried "Cp1251" -- the case-
sensitive version of the string that matches the Java byte
decoder class name?
--
Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]
Hi, I'm using Xerces-j1.3.0. I want to dump some xml output according to
the following dtd:
If my output should be like the following:
What should my java code using Xerces j1.3.0 look like?
Thanks,
Casey
Neil,
That didn't work :o(
I did affect the result however. Now I get these errors:
org/apache/xml/serialize/BaseMarkupSerializer.java [951:1] No method found
matching getPublicId()
startDTD( docType.getName(), docType.getPublicId(),
docType.getSystemId() );
org/apache/xml/s
Hi, I am using Xalan 1.x with the java extension on Windows NT. However, when I
use "java.exe" to run my program, the java function never gets called from the
XSLT. If I use jview.exe, it is working fine. I've been using jview.exe for a
little while but now I am at the point that I must switch to
The name says it all, Alex: it's a parser that parses
an XML document and creates a DOM tree.
Your DocumentBuilder is probably using one behind the
scenes to do the same thing.
The only difference is that you're
DocumentBuilderFactory uses methods like
setNamespaceAware() and setValidating() i
Milind:
If I understand what the ErrorHandler is supposed to
do, it's going to have its warning, error, and fatal
error methods called when there's a problem. (The
argument to each one is SAXParseException.) I thought
that passing a document that was invalid against the
schema would trigger one
caroline o'reilly wrote:
> org.apache.xerces.validators.schema.identity.Selector
> 'The type names XPath.Axis is not defined'.
>
> Do anyone know why this is. The XPath class has been
> imported and all the inner classes such as Axis are
> there.
Sounds like a VisualAge bug.
--
Andy Clark * IBM
Mark Diekhans wrote:
> The IANA name is `windows-1251'; try `Cp1251', which is probably the
> alias java is using. (Cp == Code page).
I stand corrected. Thank you. For the official list, check out:
http://www.isi.edu/in-notes/iana/assignments/character-sets
In the meantime, if you want to use
Michael, why don't you throw the exception from the error and warning
methods??? Just printing the error is essentially not doing anything.
Regards...
Milind Gadre
ecPlatforms, Inc
901 Mariner's Island Blvd, Suite 565
San Mateo, CA 94404
C: 510-919-0596
F: 815-352-0779
[EMAIL PROTECTED]
>
> I wr
Neil, it may help to do a 'equalsIgnoreCase' on the encoding name, would
save folks a lot of headaches and confusion.
Regards...
Milind Gadre
ecPlatforms, Inc
901 Mariner's Island Blvd, Suite 565
San Mateo, CA 94404
C: 510-919-0596
F: 815-352-0779
[EMAIL PROTECTED]
> Hello,
>
> Try "CP1251" (nlo
Try (a) UTF-8, (b) leave out the encoding attribute, or (c) look at the
following URL to determine the correct encoding name. Java, Xerces, XML
standards etc tend to use small variations, such as different
capitalizations, with or without hyphen etc. So experimentation would
help.
http://java.sun.
33 matches
Mail list logo