Justin,
as Peter has clearly explained, prefixes are arbitrary; they are not what is
important; namespaces are what matters.
It appears that some people are hung up over the prefixes that get used to
represent the namespaces ("the correct namespace prefix"). If your (or your
customer's) code relies on some fixed prefixes, then, as Geir wrote, "I am
afraid you may be in deep shit." That deep shit is not the fault of XMLBeans;
it is the fault of bad code/software.
- Wing Yew
_____
From: Justin Bailey [mailto:[email protected]]
Sent: Thursday, July 08, 2010 2:08 PM
To: [email protected]
Subject: Re: XMLBeans does not correctly propagate namespaces
Follow-up...
After some more searching, I found this thread which seems to describe exactly
what the problem is:
http://www.opensubscriber.com/message/[email protected]/1601039.html
So it looks like this is a deficiency in XMLBeans, which is very disappointing.
:( Anyway, I have resolved the issue by adding a regular expression parser
which inspects the prefix that XMLBeans assigns to the namespace, then replaces
it with the expected prefix. It's not what I would have preferred, but it does
solve the problem.
Thanks to the people who were kind enough to reply and provide assistance. I
remain hopeful that this functionality will be added to XMLBeans in the future,
since XMLBeans is in all other respects a very good library.
Thanks,
Justin