You might be able to pre-process the file and wrap the three files in one root element. Or parse each seperately and grab their root elements. Then detach those roots from the documents, add them to a wrapper element that had a document that included all possible namesapces that might occur in the three documents.
This is off the top of my head, I am sure there are lots of ways to approach this, but I still wonder how you got to this approach.
Let us know more...
Dave
David Thielen wrote:
Hi;
Is there a way to set up dom4j where I can give it multiple xml files and treat it as a single document? (So dom4j does the work of handling namespaces, etc.)
And if the answer is no, any suggestions for a good way to handle a case where I need to perform xpath on 3 xml files at once aside from parsing it for the namespaces myself?
thanks - dave
--
+------------------------------------------------------------+ | David Lucas mailto:[EMAIL PROTECTED] | | Lucas Software Engineering, Inc. (740) 964-6248 Voice | | Unix,Java,C++,CORBA,XML,EJB (614) 668-4020 Mobile | | Middleware,Frameworks (888) 866-4728 Fax/Msg | +------------------------------------------------------------+ | GPS Location: 40.0150 deg Lat, -82.6378 deg Long | | IMHC: "Jesus Christ is the way, the truth, and the life." | | IMHC: "I know where I am; I know where I'm going." <>< | +------------------------------------------------------------+
Notes: PGP Key Block=http://www.lse.com/~ddlucas/pgpblock.txt IMHO="in my humble opinion" IMHC="in my humble conviction" All trademarks above are those of their respective owners.
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user