Hi,
What started as a simple curiosity about various ways of accessing and
manipulating XML in Java and comparing their runtime efficiency and memory
utilization has now become something I felt I could share with others. I
call it XPB4J -- XML Processing Benchmark for Java.
Besides the XPB4J sof
Andy,
I have attached the DTDs here, if you are interested in trying. I
have turned off the validation in my code but still the parser is looking
for the DTD file.
"Yadav, Arun" wrote:
>Parameter entities are declared in DTD and can only be used within the DTD.
They
>are used to declare
Thank
you very much Henry, I appreciate the clarification.
Cheers
Don
-Original Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]Sent: Thursday, October 04, 2001 7:11
AMTo: [EMAIL PROTECTED]Subject: Re: Extending
Choice Model GroupsHi
Don, Yes, that
I just wrote some code and tested it with Xerces 1.4.3. Import node works
fine for me. Thanks to all for the help!
Scott
-Original Message-
From: Cliff Rowley [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 12:34 PM
To: [EMAIL PROTECTED]
Subject: RE: Moving nodes between doc
I use it in Xerces 1.4.0. Code should be similar to this:
//myDocRoot is an Element of a previously defined Document myDoc
//importedDoc is the Document you wish to import
myDocRoot.appendChild(myDoc.importNode(importedDoc.getDocumentElement(), true));
Check out the JavaDoc for details on the me
Are you sure? I've used it successfully before .. sorry I dont remember
which version it was, but I've definitely used it, and it definitely worked.
At 17:31 04/10/2001 +0100, you wrote:
Hi,
importNode() doesnt work in xerces parser, ( its written so as a comment in
their source)
its safe to wri
Hi,
importNode() doesnt work in xerces parser, ( its written so as a comment in
their source)
its safe to write a routine which reads the source document's structure and
create a similar structure in to the destination document.
thats how we solved the problem, but its a bit memory intensive
Regard
You need to importNode() the node, using the new document, and then add
the node where required. Simple example:
Node copiedNode = toDoc.importNode( nodeInQuestion );
Now copiedNode belongs to toDoc, and you can insert it into toDoc
wherever you like, as per normal practice. If you want to *move
Scott,
You must use the importNode( ) method on the Document
into which you wish to add the node. This has nothing
to do with Xerces per se, it's just the way the DOM
intends it to be done.
-Jason
--- Scott Moore <[EMAIL PROTECTED]> wrote:
> I have a question about Xerces. With MSXML, you can
Hi,
I suppose no other way. Or you can stop the parse thread from other thread.
But it will trouble us much either.
Cyfer(Zhang, Xin)
From: "abhishekhp" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: RE: Using SAX Parser to obtain value of an element
Date: Thu,
I have a question
about Xerces. With MSXML, you can easily move nodes between two different
documents. When you do that, it automatically changes the ownerDocument
property and removes the node and it's children from the original DOM. It
you want to make a copy of the node, then you clone
Hi Don,
Yes, that's the required behaviour of extension. According to 3.4.2 of the XML Schema: Structures Recommendation [1] the model group of a complex type with complex content derived by extension is "sequence and whose {particles} are the particle of the {content type} of the type de
For those interested:
With the help from John Snelson I found out that the entity reference is a
separate node in itself. So instead of using my original code:
Text valueText = (Text)valueElt.getFirstChild();
String value = valueText.getData().trim();
I had to create a loop like this:
el
Avoid using tag. This tag defines the order.
At 18:01 01/10/04 +0530, you wrote:
Hi,
Suppose i have an xsd
Is there a way in which i can change the schema definition so that in
the xml
Hi,
Suppose i have an xsd
Is there a way in which i can change the schema definition so that in
the xml file that is validated against the schema, is valid even if
LastName occur
Hi, there, FYI, see the latest survey on the XML API performance from
IBM developer works:
http://www-106.ibm.com/developerworks/xml/library/x-injava/index.html
Thanks,
---
Xuemin Guan
Software Engineer
Appresso SpA (www.appresso.com)
Tel: +81-3-4412-7790(Direct)
+81-3-4412-7700(Represe
Thanks, that worked.
"Min Lee" <[EMAIL PROTECTED]> on 04/10/2001 01:06:58
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Re: No success using JAXP with Xerces to parse and validate a
schema
Try adding
dbf.setNamespaceAware(true);
>From: [EMAIL PROTECTED
Arun Yadav wrote:
>
>
>
>
>]>
This will fail because parameter entities cannot be referenced
within markup declarations in the internal subset. They can
only be referenced between markup declarations within the
internal subset. This construct is allowed in the external
subse
"Sivasubramaniam, Latha" wrote:
> I am trying to use external parameter entity reference in my XML and
> that causes null pointer exception in the DOM parser. I actually don't want
Regardless of the error, the parser should never throw a
NullPointerException. Unfortunately, you haven't inc
Hi,
Thanks for the help. Is there another way of stopping the parser, other
than throwing an exception?
-abhishek.
-Original Message-
From: Paul Brown [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 9:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Using SAX Parser to obtain value o
Hi
Parameter entities are declared in DTD and can only be used within the DTD.
They
are used to declare content that you want to reuse as part on element or
attribute defination within the DTD. So, In your xml file you can use
paremeter entity 'userStrings' in this way...
Hi, Elena, thank you very much. I changed the larger numbers to "unbounded",
then
the validating went smoothly. What a gotcha!
Thanks,
Xuemin Guan
At 08:06 01/10/02 -0400, you wrote:
> Hi, there, I am validating some XML document against their schemas.
> Xerces works fine for most cases. But it in
I am trying to use external parameter entity reference in my XML and
that causes null pointer exception in the DOM parser. I actually don't want
the parser to expand the entity references but according to xerces 1.4.3 api
document says that i can not turn off this feature. Is it th
Try adding
dbf.setNamespaceAware(true);
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], xerces-j-dev@xml.apache.org
Subject: No success using JAXP with Xerces to parse and validate a schema
Date: Wed, 3 Oct 2001 17:35:58 +0100
I am trying to provide support for schemas to
24 matches
Mail list logo