Hi Dave!
> I'm new to this list, so first I'd just like to say how nice dom4j looks!
> I've been trying to decide whether to use dom4j or JDOM on the
> project that I'm working on, and just I keep comming back to dom4j for
> it's clean and flexible design.
Cool - thanks!
> The one thing that I
Hi Dave
> The first is that the Antlr
> grammar files in org.dom4j.xpath.parser aren't included in
> the distribution. I was able to get around this, by just
> getting them from the CVS repository. No big deal.
Whoops - well spotted David. I'll fix the Ant build to make sure they get
included
Hi Mike
You are *so* right ;-)
> I have been looking at the bean handling mechanism and I can't see how the
> current implementation can work in a generic manner, so I am probably
> missing something, but anyway ..
>
> I can see that the classes appear to be work in progress, but the
mechanism
>
Hi Bob
From: "bob mcwhirter" <[EMAIL PROTECTED]>
> On Fri, 4 May 2001, James Strachan wrote:
>
> > Hi Dave
> >
> > > The first is that the Antlr
> > > grammar files in org.dom4j.xpath.parser aren't included in
> > > the distri
dom4j is an easy to use, open source Java library for working with XML.
dom4j combines the best of DOM, SAX, XPath and the Java Collections
Framework to provide a flexible and powerful toolkit for working with XML
optimised to take advantage of the Java platform.
The new 0.3 release and further
Hi Theo
> dom4j 0.3
>
> org.dom4j.xpath.function.SubstringFunction:
>
> start += 1; is wrong:
You're quite right! Well spotted, thank you.
I've just checked into CVS the patch for this, together with a JUnit test
case (in src/test/org/dom4j/xpath/TestSubstring.java) that tests for
substring wor
Hi Dave!
From: "David White" <[EMAIL PROTECTED]>
> Is there a problem with the mailing list???
>
> I just tried to send the following message to it a couple of times and it
> bounced back to me. Maybe it's me, I don't know...
I've cc'd the list just to check. Maybe its the attachments on your o
Hi Dave
From: "David White" <[EMAIL PROTECTED]>
> > Shall we go for the following?
> >
> > public interface ElementHandler {
> > public void onStart( ElementPath path );
> > public void onEnd( ElementPath path );
> > }
> >
>
> That's what I have and I changed ElementStack to implement Ele
Hi Dave
> It just occurred to me that it might be more powerfull/flexible
> if the DispatchHandler doesn't automatically prune the tree
> for any element which has a ElementHandler registered, but
> rather leave it up to the ElementHandler itself to either
> prune the tree or not.
I was just thi
Hi Dave
This all looks awesome! (Still got problems posting to the list?)
We should do some JUnit test cases or sample programs to demonstrate this
stuff too... :-)
From: "David White" <[EMAIL PROTECTED]>
> How about this:
>
> private void initDispatchMode() {
> if (dispatchHandler
Hi David
From: "David White" <[EMAIL PROTECTED]>
> Yep, that's why I think this stuff is so cool!
Me too! :-)
> Now, if we could only implement more powerful XPath expression to register
> handlers with (i.e. parser.addHandler("//a[@href]", new myLinkHandler());
> :^)
Now your talking!!!
:-)
Just a quick warning, there's a couple of minor API changes coming soon in
the next release, I hope they don't cause too many problems for anyone.
The first one is in ElementHandler. Its becoming the following interface
instead.
public interface ElementHandler {
public void onStart( ElementP
Hi Raj
Thanks for spotting this bug in Element.createCopy().
I've just checked the patch into CVS along with a JUnit test case that
ensures the createCopy() method works (its in
src/test/org/dom4j/TestCopy.java if you're interested).
I've just manually kicked off a daily build so if you downloa
Hi Thomas!
> Just started experimenting with dom4j -- I like what I've seen so far. A
> couple of installation notes from a daily tarball (2001-05-20):
You can tell I haven't used the tarball for dom4j on Unixes that much ;-)
> - ./build.sh does not seem to have execute permissions
>
Many thanks to David White for his work on dom4j. Over the weekend David's
checked some new work into CVS (and its all available in the latest daily
build) for performing much more flexible event notification processing
together with a more powerful notification API.
The new ElementHandler API is
Hi Theo
> How can I tell the XMLWrite that he escapes Special Characters in the
> Output like that:
> & => &
During some optimisation and tuning experiments, I'd accidentally turned off
the escaping of special characters in XMLWriter. (Whoops, sorry about that
;-).
I've just checked in a patch
Hi Ken
From: "Ken Sheppardson" <[EMAIL PROTECTED]>
> Hi folks,
>
> I've just started looking at dom4j and have a couple questions I
> hope someone can help me with...
>
> I'm trying to use the package to manipulate HTML/XHTML-Transitional
> documents that have mixed data elements, e.g.
>
> Be
Just a quick heads up on the support for XML Schema Data Types. I've just
checked into CVS an alpha version of package org.dom4j.schema.* which
contains a SchemaDocumentFactory that will ultimately support XML Schema
Data Types.
Ultimately this means that
* as a document is constructed with the
> There is a little bug in cloning, attributes are not cloned because of:
>
> org.dom4j.tree.AbstractElement.appendAttributes(Element element)
>
> for (Iterator i = attributeIterator(); i.hasNext(); ) // is wrong
> for (Iterator i = element.attributeIterator(); i.hasNext(); ) // is right
>
> sam
Hi Theo
> I tried to find a link to the email I sent to the dom4j-dev list about
this
> fix but geocrawler is down again. I must get around to finding a better
> archiver, its always down when you need it
Aha. I've just noticed that mail-archive.com is working now...
The mail link I was looking
Hi Theo
Yes I spotted that one myself too.
I've fixed the code in CVS now and will do a release really soon.
James
> Hi James!
>
> I've found a solution for org.dom4j.io.XMLWriter.write(Element):
else {
// we have at least one text node so lets assume
dom4j is an easy to use, open source Java library for working with XML.
dom4j combines the best of DOM, SAX, XPath and the Java Collections
Framework to provide a flexible and powerful toolkit for working with XML
optimised to take advantage of the Java platform.
The new 0.4 release and further
Hi Toby-won ;-)
> Ok. No problem. I have already some ideas:
>
> 1) Something like the JUnit Cookbook -> DOM4J cookbook. I would provide
some
>
> simple example like the Java Documeation does. The Cookbook should also
give
>
> the some instructions in Collections, XML, SAX, DOM and a lot of DOM4
Hey Toby
> > Deriving a new DocumentFactory allows you to have more fine grained
> > control
> > over the flyweight policy. For example, the SchemaDocumentFactory (in
> > org.dom4j.schema package) implements XML Schema Data Types by
associating
> > different DocumentFactory implementations with d
I think you're both right ;-)
How about a compromise:
* we add a warning to the JavaDoc that if you change the document in any way
then the XPath may no longer work.
* I add a patch such that the index notation [2] is used if there are
multiple siblings with the same QName.
such that
/root/nod
Hi Mike
Thanks for spotting the String[] bug, I've fixed
that now,
I agree about making the getNodeName()
public, though I've called it getNodeTypeName() which I think is more
accurate. DOM uses the getNodeName() method to indicate the name of an element
or attribute, rather than "Elemen
I've checked into CVS (and its present in the daily build) a change to
getPath() such that
node.getPath() returns a nodeset which will contain the node without
using index notation
getUniquePath() will return a nodeset containing one node which will use
the index notation if necessary.
This was a message I sent just to Amy rather than the list by mistake...
From: "James Strachan" <[EMAIL PROTECTED]>
> From: "Amy Lewis" <[EMAIL PROTECTED]>
> > So before *everyone* has to deal with positional notation, I'd like to
> > see a
Please forgive this shameless plug but for those unaware who may get
involved in JSP related projects in the future, I thought I'd mention the
XTags project.
XTags is an open source JSP custom tag library which is part of the Jakarta
Taglibs project. Its built on top of dom4j.
http://jakarta.apa
Hi Arsalan
What version of dom4j are you using? It seems a few
people have hit this problem recently (its been mentioned a bit on the
dom4j-user list) but I think its fixed in the current daily build (or CVS
image). If so then we'll do a 0.5 release really soon now to fix your
problem.
I
Hi Thomas
You're right on both counts. Well spotted!
;-)
I've made the default line seperator to be "\n" now
by default and the default encoding "UTF-8" rather than "UTF8".
Also I've made asXML() now depend on outputFormat =
new OutputFormat() which won't append any extra whitespace or
Hi Thomas
This is a fairly common gotcha people have been hitting so I've patched the
code to fix it once and for all.
Using the version of the code you have, the quick fix is to add a call to
flush() as follows:-
> class ParseTest {
> static public void main (String args[]) {
> t
Hi Thomas
There are some helper methods already that might help. For example
Element foo = DocumentHelper.createElement( "foo" );
Element price = foo.addElement( "price" );
price.setAttributeValue( "amount", "10" );
price.setAttributeValue( "currency", "GBP" );
Note that none of the above requi
Hi Thomas
> >Though I like your idea of returning the Element such that these methods
> >could be
> >chained.
>
> Not my idea :) -- I've seen it in a number of places before... most
> recently JDOM (ducks to avoid missile :)
:-)
Yes I think returning the Element when adding text or entities sou
Hi Mike
> It would be nice to have mechanisms to set the innerXML and outerXML, in a
> similar mechanism to the innerHTML and outer HTML properties in the HTML
> DOM.
I'm not aware of the innerHTML outerHTML properties in the HTML DOM. Any
pointers?
> The mechanism should by default use the sam
Hey Thomas
From: "Thomas Nichols" <[EMAIL PROTECTED]>
> >Yes I think returning the Element when adding text or entities sounds a
good
> >idea.
> >Though the addElement() returns the new Element child rather than the
parent
> >so care should be taken with nestings.
>
> Ah - this is not what I'd be
Hi Thomas
From:
Thomas Nichols
This sounds good - though see my comments to
James E. re limitations of parseText().. BTW, why is it "setAttribute"
rather than "addAttribute" ?
Actually right now its setAttributeValue(name,value) to set the value and
attributeValue(name) to retr
From: Thomas
Nichols
Update to #4 at the end of the burble below - The logic seems to
beaddXYZ - create a new object and add it to self.setXYZ - look for
matching object, if found modify it, otherwise addXYZ.Have I understood
that correctly?
Yes.
Though for consistency
I've just checked into CVS some experimental support for the XML Pull
Parser.
http://www.extreme.indiana.edu/soap/xpp/
I've initially built a PullParserReader in the org.dom4j.io package that
behaves pretty much like the SAXReader but uses the XML Pull Parser rather
than SAX. I was hoping it mig
Would people prefer
addAttribute?
+1In the dom4j model, since you can have an
attributeIterator, I see the attributes as "widgets" belonging to the Element,
rather than as properties. The "only one value" constraint could be handled
with an IllegalAddException, or (preferred)
Hi Thomas
I've fixed this one and its now in CVS and the daily build. It was due to
the getDocumentFactory() being called in the constructor of DefaultElement
before its QName had been initialised.
It should be fine now.
James
- Original Message -
From: "Thomas Nichols" <[EMAIL PROTECT
Agreed. Hopefully really soon we'll be moving to
using the saxpath project (http://sourceforge.net/projects/saxpath)
which will avoid the use of Antlr as the parser of XPath expressions and we'll
have a smaller and faster code base and better exceptions if bad XPath
expressions are used.
T
I've added a modified antlr-runtime.jar
distribution to CVS to fix this problem. I've done a new daily build which
should have the fix integrated if you'd rather download a build than use CVS
directly. I also added a JUnit test case that tests that bad paths throw an
exception.
James
--
Hi Thomas
I've checked into CVS the fixes for these problems I think. Could you try
doing a CVS update and running your build again to see if I've fixed them?
(I don't have a Linux box handy these days).
I run the build on win2000 and SourceForge's Linux boxes (VA Linux) the
build works (though
builder methods such that 'Element Construction Set' style
methods can be used to create documents
Element author = element.addElement( "author" )
.addAttribute( "name", "James" )
.addAttribute( "location", "
Hi Paul
From: "Paul Caton" <[EMAIL PROTECTED]>
> We are looking at using dom4j in an application that deals with
> arbitrary sections of an XML-encoded document. I just wanted to ask,
> in the API for XPath, does the phrase "XPath expression" cover only
> the functions defined in XML Path Languag
Hi Toby
From: <[EMAIL PROTECTED]>
> I think we should implement Canonical XML and XML Signature on top of
dom4j
> by ourself.
Agreed. Especially Canonical XML.
> Tell me what you think about this and then I starting with
> implementation tomorrow
Go for it. Maybe try implementing an CanonicalX
Many of the C14N spec can be done at the SAX level as the document is being
parsed and this will probably be the most performant way of reading a C14N
dom4j document.
e.g. all of the following could be done as an XMLFilter (I think) as its
mostly involved with text encoding (merging adjacent text
> Could some of you guys please post a link to all this "Canonical XML" and
> "Security Kit" you're talking about?
IBM's security suite is here:-
http://www.alphaworks.ibm.com/aw.nsf/techmain/xmlsecuritysuite
Canonical XML spec is here:-
http://www.w3.org/TR/2001/REC-xml-c14n-20010315
James
There's quite a few different ways to tackle the mapping of XML to
databases. Certainly the XML-DBMS work looks interesting. (Shame they don't
offer a SAX interface ;-)
I saw this article lately that shows how to do XML-database mapping with the
common databases
http://www.xml.com/pub/a/2001/06/
From: <[EMAIL PROTECTED]>
> Any ideas, comments? Is such a persitence layer welcome in dom4j?
Certainly there seems to be similarity between parsing on demand and loading
on demand from some source such as a database. So there could be some common
implementation code and techniques between:-
* a
From: "bob mcwhirter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 1:45 PM
Subject: Re: [dom4j-dev] DOM Long Term Persitence
> > Any ideas, comments? Is such a persitence layer welcome in dom4j? I
think we
> > can use jdo (castor), too.
>
> Yah
From: <[EMAIL PROTECTED]>
> You mentioned that the current Pull Parser is a little slow. I think its
> performance could be reaised if Boyer-Moore Algorithm for String Search is
use.
> What do you think?
It could be, I'm not that sure.
The pull parser isn't that slow, its only a bit slower than
Hi Mats
I´ve studied the Javadocs and I was wondering
what kind of support (or similiar) for the DOM2 Events the API
has?
Is it possible to use event listeners on
TargetNodes in the DOM4J so that for instance a change in an elements
character data triggers an event which is hand
Hi Mike
You're right on both counts! Well spotted thanks. There can't be a very good
JUnit test case for that method.
I'l lbe checking in a fix for it shortly with a much improved JUnit test
case.
Thanks Mike!
James
- Original Message -
From: Mike Skells
Cc: 'Dom4j-Dev
Sent: Tuesday, J
Hi Mats
I'll study the DOM2 Events spec and see if there's
a clean way of adding support for tree mutation events without adversely
affecting performance.
The Elements telling the
Document that something has changed seems like a good approach,
I´ve been thinking about
using t
Hi Mike
I've committed your patch into CVS along with an improved (working!) JUnit
test case. The patch should be available in the daily build now too.
James
From: "James Strachan" <[EMAIL PROTECTED]>
> Hi Mike
>
> You're right on both counts! Well spotted
Thanks for the pointer Toby.
From: <[EMAIL PROTECTED]>
> the junit.jar in cvs seems to be very old. Please substitute it with the
> current
> version. Current Junit comes with lot of new Features like Pluggable
> Selector into
> Tests. This simplies the writing of tests really in a huge way.
O
Hi Mats
A quick question - is there any reason why you
can't use SAXReader to load your document? Is it something to do with Cocoon2
why you're trying to use SAXContentHandler directly?
If you want to use SAXContentHandler directly, I'd
take a look at the code of SAXReader, in particular
go, it could be fun but I don't think I'll be able to make it.
(And my bank balance hasn't recovered after JavaOne :-).
James
From: "Philippe Le Hegaret" <[EMAIL PROTECTED]>
To: "James Strachan" <[EMAIL PROTECTED]>
> Here is a proposal for a Town
I've just checked into CVS a fix for the following bug reported to the
SourceForge site:-
[ #436670 ] XMLWriter.write(DefaultDocument) fails
This bug is also available in the daily build.
James
_
Do You Yahoo!?
Get your free @yahoo.com
From: "Thomas Nichols" <[EMAIL PROTECTED]>
> Breeze looks like a Java/XML databinding solution? Lots more of those
about
> - Castor et al. I'd have thought either that these would be seen as
falling
> into a different category (apples and oranges) or that they'd need fuller
> representation.
Agre
Hi Mike
From: Mike Skells
> What is the way to configure the parser the SAXReader to ignore whitespace
There doesn't appear to be a standard way of doing this via SAX and JAXP -
ignorable whitespace seems to be a DOM thing.
By default a SAX parser may call the ignorableWhitespace() method on
SA
Hi Thomas
Thanks for spotting this one - there was a schoolboy error in the
implementation of elementByID() - the recursive loop wasn't behaving
correctly. Its fixed now in CVS and is available in the daily build. It
should be incorporated in the 0.6 release shortly.
I've added a JUnit test case
I've added support for Serialization to CVS, its also available in the
current daily build.
This means that dom4j Documents or document fragments can be used within RMI
and EJB scenarios with ease.
Note that Java Serialization is very slow, currently its about 2-5 times
slower than using the XML
Hi César
The default implementations of nodes in dom4j uses identity based hashCode()
and equals() methods. This is primarily for performance so that using Nodes
as keys in, say, a HashMap would be fast and efficient using identity based
lookup.
To implement value based equality would require ca
dom4j is a simple and flexible open source library for working with XML,
XPath and XSLT on the Java platform using the Java Collections Framework
with full integration with DOM, SAX and JAXP.
The new release and further documentation can be found at:-
http://dom4j.org
This release is primarily
From: "bob mcwhirter" <[EMAIL PROTECTED]>
> > Hi,
> > What is the XPath query for the name of the first child element?
>
> Probably something like this:
>
> local-name(/.)
> namespace-uri(/.)
Choose either name() or local-name() depending on if your document uses
namespace prefixes then use eithe
Hey Toby
I've not really done much with SMTP from Java so I'm guessing alot here
but...
You're connecting to localhost for your SMTP server - shouldn't that be your
ISP (or intranet) SMTP server?
James
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursda
Hi Bob
From: "bob mcwhirter" <[EMAIL PROTECTED]>
> On Wed, 11 Jul 2001, James Strachan wrote:
>
> > From: "bob mcwhirter" <[EMAIL PROTECTED]>
> > > > Hi,
> > > > What is the XPath query for the name of the first child eleme
I've fixed a bug that was found my James Elson (thanks James!). The
normalize() method was being quite agressive and removing most text nodes!
This is now fixed in CVS and the current daily build. I've added a JUnit
test case to ensure this doesn't break again.
James
__
> > However the following expressions
> >
> > /.
> > /self::node()
> >
> > refer (AFAIK) to the document node, not the first child node (the root
> > element). So the following expressions would return a blank string,
since
> > name() of a document is empty according to the XPath spec.
> >
> > nam
BTW this is a useful page, it lets you experiment with XPath expressions...
http://www.zvon.org:9001/saxon/cgi-bin/XLab/XML/extras.html
Its part of the excellent Zvon tutorial for XPath and XSLT.
http://www.zvon.org/xxl/XPathTutorial/General/examples.html
James
__
Could you give any more information?
There's a readme.html document to try help you out. The most likely cause is
that JAVA_HOME environment variable is not set but without any more
information its a little hard to answer.
James
- Original Message -
From: "dillibabu" <[EMAIL PROTECTED]>
Hi Selva
It looks like you either have your JAVA_HOME variable pointing to a JDK 1.1
installation, or you have the Java 2 collections for Java 1.1 in your
classpath (the com.sun.java.util.collections package is the Java 2
collections for JDK 1.1).
So I'd double check what your JAVA_HOME points t
dom4j is a simple and flexible open source library for working with XML,
XPath and XSLT on the Java platform using the Java Collections Framework
with full integration with DOM, SAX and JAXP.
The new release and further documentation can be found at:-
http://dom4j.org
This release is primarily
dom4j is a simple and flexible open source library for working with XML,
XPath and XSLT on the Java platform using the Java Collections Framework
with full integration with DOM, SAX and JAXP.
The new release and further documentation can be found at:-
http://dom4j.org
This release is primarily
Hi Toby
> I added the persitence package last evening. Please have quick look at it.
I
> uses the SAX-Interfaces of XML:DB API in order to store a dom4j Document
> into a native XML DB that supports XML:DB API. It would be nice if you
revisted
> dom4j/SAX code, as I'm not a expert :0). Unfortunat
Hi Jonathan!
Funnily enough, I spotted that too on Thursday / Friday and I think its now
fixed it in CVS.
You can browse the code from CVS here:-
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dom4j/dom4j/src/java/org/dom4
j/tree/
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dom4j/dom4j/src/j
Hi Stefan
From: <[EMAIL PROTECTED]>
> I've tried out your Dom4J Package (0.8) for some days and I'm very happy
with
> it.
Great - glad to hear it.
> I've found 2 errors, but I don't know, if this is the right place to
report it.
Sure, its as good a place as any.
> Anyway:
>
> I think, the U
Hi Mats
From: "Mats Noren" <[EMAIL PROTECTED]>
> Hi,
> I have the following xml snippet:
>
>
>
>
>
>
> In my Java code, I want to lookup any element of the type value-of with
> the attribute select="$test"..
>
> service.selectNodes("//value-of[@select='$" + paramName + "']");
>
> where servi
How about the XPath expression
customer[age >= 25 and age <=
30]
unless you don't want to include ages of 25 and 30
in which case this should do
customer[age > 25 and age < 30]
James
- Original Message -
From:
ShamJowsaki
To: [EMAIL PROTECTED]
Sent: Tuesday,
Hi Stefan
Sorry for the delay in getting back to you.
From: <[EMAIL PROTECTED]>
> since I'm using DOM4J 0.9, I can't use Xerces (1.4.1 or 1.4.2).
>
> Part of my source code:
>
> SAXReader reader = new
SAXReader("org.apache.xerces.parsers.SAXParser");
> reader.setValidation (true
Hi Jeff
Sorry to spring that one on you - I meant to send an email describing the
experimental change to see what people thought.
I tried to document it in the patches section on the website
http://dom4j.org/todo.html
The quick answer is I'm going to change the code back again.
Now the longer a
lt namespace URI
List list = element.elements( element.getQName( "foo" ) );
// find all elements which match the local name "foo"
// and the namespace URI mapped to the "x" prefix
List list = element.elements( element.getQName( "x:foo" ) )
We are close to releasing 1.0 of dom4j. From that point on we will have a
stable API on which to build.
For the 1.0 release I'd like to make a couple of minor changes. These do not
affect the core Node / Attribute / Element / Document etc interfaces so they
will hopefully have very minor impact.
Hi Luis
Right now there is no simple way to find all the DataType instances for a
document. The current implementation works like this:-
* a schema is loaded explicitly using SchemaDocumentFactory.loadSchema() or
via the presence of a noNamespaceSchemaLocation attribute. (the
schemaLocation attr
working properly I think Xerces is the best alternative.
James
- Original Message -
From: "Luis Peña" <[EMAIL PROTECTED]>
To: "'James Strachan'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 8:37 AM
Subject: RE: [do
> I tried to use MSV recently but hit a few problems that I've mailed the
> author, Kohsuke Kawaguchi, about.
A quick status update. Kohsuke-san is back from vacation and has kindly
helped us out with MSV support.
I've just checked into CVS a sample program in
dom4/src/samples/validate/MSVDemo t
Hi Laurent
Your patch is a good idea - I've thought of doing something similar. I'm
tempted to go one further - lets use XSLT patterns. What are XSLT patterns?
Well essentially they are like XPath expressions, they are used in XSLT in
the tag.
Using your example for a moment...
From: "Develope
The new JAXM reference implementation is out which uses dom4j internally.
Many thanks to those nice folks at Sun for choosing dom4j.
JAXM = Java Api for Xml Messaging. You can download it here:-
http://developer.java.sun.com/developer/earlyAccess/xml/jaxm/
A nice side effect of this is that usi
Hi Toby
From: <[EMAIL PROTECTED]>
> > If you want to use MSV I'd recommend looking at this sample to see how
to
> do
> > it - there are a few problems with the current MSV release's
> documentation.
> > hopefully there will be a new release soon. Also watch out for version
> > conflicts with Xerc
dom4j is a simple and flexible open source library for working with XML,
XPath and XSLT on the Java platform using the Java Collections Framework
with full integration with DOM, SAX and JAXP.
The new release and further documentation can be found at:-
http://dom4j.org
This release includes:-
*
You could try using your own DocumentFactory to parse the xml schema
instance documents. e.g.
DocumentFactory factory = new DocumentFactory();
SAXReader reader = new SAXReader();
reader.setDocumentFactory( factory );
Document document = reader.parse( "foo.xml" );
List qnames = factory.getQNames()
Hi Toby
Inside the full dom4j 1.0 distribution there are 2 jars, dom4j.jar and
dom4j-full.jar.
The dom4j.jar doesn't contain SAX or DOM interfaces, though the
dom4j-full.jar does. (Thats the only real difference between them).
For those who just want to upgrade just the dom4j.jar rather than
dow
Hi Dominique
Please don't think I'm ignoring you. I've been on vacation and am in the
middle of a trans-atlantic excursion for my day job. I've taken a look and
think I know what the problem is - I'll be trying to fix it in the next day
or so and trying to change your code into a JUnit test case
I've applied a patch to DocumentFactory which should fix this problem - its
in CVS now. It would be nice to create a test applet to test this out to be
sure it works. Any takers? Toby could the applet you're working on be
refactored in any way into the src/samples/applet area?
James
- Origina
Hi Laurent
That sounds a reasonable idea - I just wondered what if you need multiple
context objects or better typesafety.
e.g. consider
...
where you want to know the parent foo and bar. Another way to tackle the
problem could be for the ElementHandler objects
Hi Toby
Thanks for sending me a sample applet! I've committed it to CVS in
dom4j/src/samples/applets and tried it and using appletviewer at least, it
appears dom4j and XPath (and so Jaxen too) works fine in Applets.
James
- Original Message -
From: <[EMAIL PROTECTED]>
Hi Laurent
Yes I think I understand the problem much better now - thanks for that.
I just wondered if ModuleContext needs to implement ElementHandler at all?
Would just having a ModuleStack, which just implements the stack of modules,
be easier & simpler? Then different ElementHandler's could pu
1 - 100 of 196 matches
Mail list logo