Re: Does xerces2-j DOMParser enforce key constraints?

2002-06-19 Thread Eddie Robertsson
Hi, http://www.bts.com/pcsp"; xmlns="http://www.bts.com/pcsp"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified"> The problem is that the key is

Re: xerces-j 2 sample ASBuilder - AS performance

2002-06-19 Thread sandygao
Did you call parseASXXX to parse the schema(s), and call setASModel to set them back onto the ASBuilder? You need to do that to reuse the preparsed schema(s). Sandy Gao Software Developer, IBM Canada (1-905) 413-3255 [EMAIL PROTECTED]

Re: validation errors

2002-06-19 Thread sandygao
> when using latest xerces2 (CVS) I get two error handler calls for a single > failed constraint. Can someone please explain if this was indended? I don't > see a good reason for that. It's intended, because we didn't think that either one of the error messages is sufficient. And it's not (current

How to identify the namespace?

2002-06-19 Thread JC
Here is something that is bugging me... during the parsing of an RSS file, I need to be able to tell if it is a 0.9 RSS or a 1.0 RSS. Unlike RSS 0.91 and 0.92, there is no "version" attribute. Here is what I have to work with: http://my.netscape.com/rdf/simple/0.9/"; xmlns:rdf="http://www.w3.or

Does xerces2-j DOMParser enforce key constraints?

2002-06-19 Thread Shengyou Zeng
I defined the following xml schema: xmlns="http://www.bts.com/pcsp" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">                                                              and composed the follo

RE: feature / enhancement request for schema validation

2002-06-19 Thread lmartin
You need to include xercesImpl.jar and xmlParserAPIs.jar in your CLASSPATH. Did you do that? Lisa. "Naomi Dushay"

RE: feature / enhancement request for schema validation

2002-06-19 Thread Naomi Dushay
Yes, I believe I was using the correct flags. I also used -s -f -v - Naomi > -Original Message- > From: Mark Feblowitz [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 19, 2002 3:03 PM > To: '[EMAIL PROTECTED]' > Subject: RE: feature / enhancement request for schema validation

RE: feature / enhancement request for schema validation

2002-06-19 Thread Mark Feblowitz
Are you using the correct flags with the dom.Counter program? Here's what my XercVal.bat file looks like: java dom.Counter -s -f -v %1 Code in Counter.java includes the following: System.err.println(" -v | -VTurn on/off validation."); System.err.println(" -s | -

feature / enhancement request for schema validation

2002-06-19 Thread Naomi Dushay
In the course of trying to test my schemas with Xerces 2.0.1 and JDK1.4 from the command line, I had "some fun." It may be that using Xerces from within a java program is not so difficult, but it doesn't seem outrageous to desire schema validation or otherwise use Xerces from the command line

Re: problem with DTD

2002-06-19 Thread Gopal Sharma
Hi Sauquet, You need not to do anything extra, just create a parser instance and use parse() on that, if you don't require to validate w/ DTD. In case, you need to validate it, use in your instance file and turn the validation (dtd) property ON. It will be good to see Xerces *Sample

Re: How to insert an element?

2002-06-19 Thread Jeong Ahn Lee
thank you all, i found out a way( work around) for that. regards --- Jeong Ahn Lee <[EMAIL PROTECTED]> wrote: > Hi all, i have an xml document like below > > > > aa > bb > bb > > this is body > > > in that document, how can i ins

Re: How to insert element?

2002-06-19 Thread Savita
Hi Jeong, If u want to insert it after than what is the problem in using appendChild() method.Is there any specific things u want to do or what is ur main purpose. Regards Savita. Jeong Ahn Lee wrote: > thanks, but > > > > aa > bb > bb

Re: How to insert element?

2002-06-19 Thread Jeong Ahn Lee
thanks, but aa bb bb this is body in the above document, i want to insert after element, if it was before i could have used public Node insertBefore(Node newChild, Node refChild)

RE: How to insert element?

2002-06-19 Thread Sheen Brisals
Hi Jeong, Since you are trying to insert after the last child of the parent, is it not equivalent to appending to the parent. appendChild() always adds to the end of the list of children. Regards, Sheen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednes

Re: How to insert element?

2002-06-19 Thread Savita
Hi Jeong , As per ur example u want to insert the element after CNN then append should be good enough but if u want to insert a element in between then u should know before which element(for ex AAA,or BBB) u want to insert the element and then u can use insertBefore method to insert the element.

RE: How to insert element?

2002-06-19 Thread Jeong Ahn Lee
THANKS, but i know how to append an element to a document but, i want to know how i can insert an element with in an existing xml document, say, i have a xml file i am reading it, and i want to insert an element, how can i do that, that is not given in that example. thanks --- Christopher Eber

Urgent: How do one create a HTMLDocument...

2002-06-19 Thread Chitharanjan Das
Hello, Does anyone know hoe to initialize(or create) a HTMLDocument(org.w3c.dom.HTMLDocument) from a URL or a file. I have heard that DOcuverse's parser can do this, can Xerces do the same. I have seen this class in the package though ... Thanks in advance, Chiths -