Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 89786 invoked from network); 8 Aug 2007 20:32:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2007 20:32:02 -0000 Received: (qmail 566 invoked by uid 500); 8 Aug 2007 20:31:55 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 497 invoked by uid 500); 8 Aug 2007 20:31:55 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 488 invoked by uid 99); 8 Aug 2007 20:31:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 13:31:55 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vlsergey@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 20:31:45 +0000 Received: by ug-out-1314.google.com with SMTP id c2so312393ugf for ; Wed, 08 Aug 2007 13:31:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=CUkFeOWwBXfZbuehxUN0AHnXzSa6mb2/TJ1pA9k9pqaYo7ck2CUkijM9bOA+5EHYnqiRCZ1BFbd2wRDsjVWpzVkxwaJvc2VoEqw2FMOMgtAOkMXz9KYhqz5vW+ZMgp8fWMR9erfwsrr7HBmVLF42lSmV6Kz3VCf0i3ESE0aWhqY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=o7ZAWD6OIutSKf4dstUnHNevipjxE9iX10IlPhSpLCZTLLTct6NBGVrHbdyb7lDbbNpW3aiSvuIN9y1ZgMUwx+vILY8udOwtjXymY77Snut+/dkJ2ZbrmyDcPkiujQ2MERu3IbbZ9CnZnTnjdhsXK/T2NDr6Qc2cKf1LHi29z6Y= Received: by 10.142.178.13 with SMTP id a13mr37609wff.1186605081531; Wed, 08 Aug 2007 13:31:21 -0700 (PDT) Received: by 10.142.116.10 with HTTP; Wed, 8 Aug 2007 13:31:21 -0700 (PDT) Message-ID: <18e049e20708081331r5a44a642tdd734b5615f7b65e@mail.gmail.com> Date: Thu, 9 Aug 2007 00:31:21 +0400 From: "Sergey Vladimirov" To: "Jakarta Commons Users List" Subject: Re: Problem with JXPath 1.3 - Registering Namespaces In-Reply-To: <18e049e20708081306h5bee038s290ab14f98885b79@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7830_31896530.1186605081033" References: <3839570ACE75F74EA214500F4F5FA29961DEBF@MSIS-GH1-UEA04.corp.nsa.gov> <621890.46614.qm@web55113.mail.re4.yahoo.com> <18e049e20708081306h5bee038s290ab14f98885b79@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_7830_31896530.1186605081033 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Joe, I was able to produce XML from XPath with following code (1.3 version): // create container Document document = DocumentBuilderFactory.*newInstance* ().newDocumentBuilder().newDocument(); // create root context JXPathContext context = JXPathContext.*newContext*(document); // set abstract factory - need to specify type of objects to create context.setFactory(*new* AbstractFactory() { *public* *boolean* createObject(JXPathContext context, Pointer pointer,Object parent, String name, *int* index) { Node domNode = (Node) pointer.getNode(); Document document = domNode *instanceof* Document ? (Document) domNode: domNode.getOwnerDocument(); domNode.appendChild(document.createElement(name)); *return* *true*; } }); // registry namespaces context.registerNamespace("A", "http://A"); context.createPathAndSetValue("/MAIN/A:ElementA", "Test value"); // output XML Transformer transformer = TransformerFactory.*newInstance* ().newTransformer(); transformer.transform(*new* DOMSource(document), *new* StreamResult(System.* out*)); The result was
Test value
BR, Sergey 2007/8/9, Sergey Vladimirov : > > Matt, Joe, > > Seems like a bug for me. Will check with HEAD. > > Sergey. > > 2007/8/8, Matt Benson : > > > > > > --- "Mcduffey, Joe" wrote: > > > > > Guess that's not what I meant. If JXPath isn't > > > robust enough to support me what package is? > > > > :) I am not the XML guru, that's for sure. As such I > > couldn't recommend a better package for your needs. > > If I haven't said it enough times, I became a user of > > JXPath for its ability to apply XPath to a Java object > > graph. I became the steward of JXPath because, as a > > user, I had an interest in seeing a new version > > released, and nobody else seemed to be making it > > happen. Since coming to commons to work on JXPath I > > have had to learn a lot about XML standards, but > > there's still much I don't know, I'm sure. Again, I > > tend to agree that once the ri is working in DOM or > > JDOM, those pointer types should be able to create > > nested child elements with as much ease as they can > > attributes; because this is not the case wrt Java > > object graphs, and (I assume) because the Java side > > was JXPath's original focus, the XML handling > > delegates to AbstractFactory as does the Java side. > > To preserve backward compatibility we should still > > delegate to the AbstractFactory first, but I don't see > > that causing a problem. I will try to add this in the > > near future--very near; again, before 1.3 goes out the > > door! > > > > -Matt > > > > > Once again my Concept of Operations is: > > > 1. I get a list of XPaths > > > 2. I read the XPaths to be able to create node > > > 3. Once the nodes are created I perform an XPath > > > Query to obtain a result set > > > > > > -----Original Message----- > > > From: Matt Benson [mailto: gudnabrsam@yahoo.com] > > > Sent: Wednesday, August 08, 2007 2:53 PM > > > To: Jakarta Commons Users List > > > Subject: RE: Problem with JXPath 1.3 - Registering > > > Namespaces > > > > > > > > > > > > --- "Mcduffey, Joe" wrote: > > > > > > > > > > > Yes an example of using AbstractFactory in this > > > way. > > > > > > There are examples in the testcases in the > > > org.apache.commons.jxpath.ri.model.dom and > > > org.apache.commons.jxpath.ri.model.jdom packages. > > > > > > -Matt > > > > > > > > > > > -----Original Message----- > > > > From: Matt Benson [mailto:gudnabrsam@yahoo.com] > > > > Sent: Wednesday, August 08, 2007 2:28 PM > > > > To: Jakarta Commons Users List > > > > Subject: RE: Problem with JXPath 1.3 - Registering > > > > Namespaces > > > > > > > > > > > > > > > > --- "Mcduffey, Joe" wrote: > > > > > > > > > Matt, > > > > > Do you have any code that would implement > > > > support > > > > > of Namespaces on elements? > > > > > > > > > > > > > Short answer: No. > > > > > > > > Longer answer: What do you mean? Examples of > > > using > > > > AbstractFactory this way? > > > > > > > > > > > > Observation: JXPath's XML support is probably not > > > > the > > > > most robust, mature, or to-the-point for basic XML > > > > work. IMHO it's a nice way to support the most > > > > common > > > > cases for working with graphs of mixed Java > > > objects > > > > and XML. That said one might be able to argue the > > > > case that XML elements are more straightforward to > > > > create than Java objects, and that, like as in the > > > > case of attributes, JXPath's DOM/JDOM > > > > implementations > > > > should support this. > > > > > > > > Hmm... > > > > > > > > -Matt > > > > > > > > > -----Original Message----- > > > > > From: Matt Benson [mailto:gudnabrsam@yahoo.com ] > > > > > Sent: Wednesday, August 08, 2007 1:46 PM > > > > > To: Jakarta Commons Users List > > > > > Subject: RE: Problem with JXPath 1.3 - > > > Registering > > > > > Namespaces > > > > > > > > > > > > > > > > > > > > --- "Mcduffey, Joe" wrote: > > > > > > > > > > > Matt, > > > > > > With JXPath 1.2 I cannot create xpaths with > > > xml > > > > > > namespace prefixes. > > > > > > > > > > > > > > > JXPathContext.registerNamespace("A","http://A "); > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > JXPathContext.createPathAndSetValue("A:ElementB[1],"value"); > > > > > > > > > > > > > > > > > > MY VALUE > > > > > > > > > > > > I get an exception > > > > > > "Exception trying to create xpath" > > > > > > > > > > > > There are no problems when there is a > > > namespace > > > > > > prefix associated with an attribute. What is > > > the > > > > > > deal with Elements? Thanks. > > > > > > > > > > Hi, Joe. It's more a case of "what is the deal > > > > with > > > > > attributes?" It just so happens that a DOM or > > > > JDOM > > > > > element node knows how to set its attributes. > > > Not > > > > > so > > > > > for elements. In this case you must implement > > > and > > > > > set > > > > > an AbstractFactory on your JXPathContext. > > > > > > > > > > HTH, > > > > > Matt > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Matt Benson > > > [mailto:gudnabrsam@yahoo.com ] > > > > > > Sent: Thursday, July 26, 2007 12:10 PM > > > > > > To: Jakarta Commons Users List > > > > > > Subject: RE: Problem with JXPath 1.3 - > > > > Registering > > > > > > Namespaces > > > > > > > > > > > > > > > > > > > > > > > > --- "Mcduffey, Joe" wrote: > > > > > > > > > > > > > You may want to remove the Snapshot view. > > > > > Thanks. > > > > > > > > > > > > Joe: My history is as a JXPath user like > > > > yourself > > > > > > who > > > > > > happened to have existing ties to the ASF > > > > (Apache > > > > > > Ant). I stepped up to push JXPath to a 1.3 > > > > > release > > > > > > because there wasn't an active resource on it. > > > > > > > I > > > > > > honestly never noticed this outdated API was > > > on > > > > > the > > > > > > site. Let me see what I can do about moving > > > > that. > > > > > > > > > > > Sorry for the inconvenience. > > > > > > > > > > > > -Matt > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Matt Benson > > > > [mailto:gudnabrsam@yahoo.com ] > > > > > > > Sent: Thursday, July 26, 2007 11:28 AM > > > > > > > To: Jakarta Commons Users List > > > > > > > Subject: RE: Problem with JXPath 1.3 - > > > > > Registering > > > > > > > Namespaces > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- "Mcduffey, Joe" wrote: > > > > > > > > > > > > > > > Concerning problem 2 I thought you all > > > were > > > > > > going > > > > > > > > to specify a default Namespace so that > > > this > > > > > > > wouldn't > > > > > > > > be required. > > > > > > > > > > > > > > Problem 1, you mean? > > > > > > > > > > > > > > > > > > > > > > > for JXPathContext: > > > > > > > > void > > > > registerDefaultNamespace(java.lang.String > > > > > > > uri) > > > > > > > > Binds a namespace URI for XPath > > > > > QNames > > > > > > > > that are missing the prefix. > > > > > > > > > > > > > > > > > > > > > > > > I did not see this in the nightly build. > > > Are > > > > > you > > > > > > > all > > > > > > > > backing away from this? Thanks. > > > > > > > > > > > > > > > > > > > > > > Exactly. In the JIRA issue I referenced the > > > > > > > discussion went on about this for over a > > > year. > > > > > > > > > > > During > > > > > > > this time a leading XML guru, Elliotte Rusty > > > > > > Harold > > > > > > > (http://www.cafeconleche.org), was able to > > > > > > convince > > > > > > > all concerned that JXPath would be more true > > > > to > > > > > > the > > > > > > > XPath 1.0 spec _not_ to implement this XPath > > > > > > > 2.0-specific behavior, and furthermore that > > > > this > > > > > > was > > > > > > > the correct thing to do. > > > > > > > > > > > > > > -Matt > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Matt Benson > > > > > [mailto:gudnabrsam@yahoo.com] > > > > > > > > Sent: Wednesday, July 25, 2007 5:45 PM > > > > > > > > To: Jakarta Commons Users List > > > > > > > > Subject: RE: Problem with JXPath 1.3 - > > > > > > Registering > > > > > > > > Namespaces > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- "Mcduffey, Joe" > > > wrote: > > > > > > > > > > > > > > > > > Matt, > > > > > > > > > Thanks for getting back... > > > > > > > > > There are 2 problems: > > > > > > > > > 1. What steps should be taken if you > > > have > > > > an > > > > > > > > default > > > > > > > > > namespace defined? see below > > > > > > > > > > > > > > > > > A:myAttr="Mytype"> > > > > > > > > > MY VALUE > > > > > > > > > > > > > > > > > > > > > > > > > > > I get no results from > > > > > > > > > > > > > JXPathContext.selectNodes("//ElementB"); > > > > > > > > > However if I register a namespace as the > > > > > > default > > > > > > > > > namespace uri I can get my results: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > JXPathContext.registerNamespace ("myns","urn:/myspace"); > > > > > > > > > // Default Namespace > > > > > > > > > then query > > > > > > > > > > > > > > > XPathContext.selectNodes ("//myns:ElementB"); > > > > > > > > > > > > > > > > Joe: this is as it should be. See > > > > > > > > > > > > > https://issues.apache.org/jira/browse/JXPATH-61 > > > > > > > for > > > > > > > > a > > > > > > > > LENGTHY discussion. > > > > > > > > > > > > > > > > > > > > > > > > > > 2. The next problem is that I thought if > > > I > > > > > > > > register > > > > > > > > > namespaces e.g. > > > > > > > > > JXPathContext.registerNamespace(); > > > > > > > > > Then I would not have to worry about the > > > > > > > document > > > > > > > > > not having them. However when I call > > > > > > > > > > > > > > > > > > > > > > > > > > > JXPathContext.registerNamespace("A","http://A "); > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > JXPathContext.createPathAndSetValue("ElementA[1]/@A:mystuff,"value"); > > > > > > > > > > > > > > > > > > For the following > > > > > > > > > > > > > > > > > > > > > > > > > > > MY > > > > > > > > VALUE > > > > > > > > > > > > > > > > > > > > > > > > > > > I get an exception thrown saying A > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.common.ri.model.dom.DOMNodePointer.createAttribute > > > > > > > > > unknown namespace prefix: A > > > > > > > > > > > > > > > > > > > > > > > > > It is my understanding that I have fixed > > > > this > > > > > > > issue > > > > > > > > this afternoon in svn trunk. If you can > > > > > verify > > > > > > > > this, > > > > > > > > I'd appreciate it. > > > > > > > > > > > > > > > > > HELP! > > > > > > > > > > > > > > > > If you don't mind some helpful advice in > > > the > > > > > way > > > > > > > of > > > > > > > > protocol, all-caps shouts of "HELP" will > > > > > > generally > > > > > > > > not > > > > > > > > help your cause. This subject, among > > > > others, > > > > > is > > > > > > > > covered in the document > > > > > > > > > > > > > > > > > > http://www.catb.org/~esr/faqs/smart-questions.html > > > > > > > . > > > > > > > > > > > > > > > > Regards, > > > > > > > > Matt > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: Matt Benson > > > > > > [mailto: gudnabrsam@yahoo.com] > > > > > > > > > Sent: Wednesday, July 25, 2007 3:48 PM > > > > > > > > > To: Jakarta Commons Users List > > > > > > > > > Subject: RE: Problem with JXPath 1.3 - > > > > > > > Registering > > > > > > > > > Namespaces > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- "Mcduffey, Joe" < jdmcduf@nsa.gov> > > > > wrote: > > > > > > > > > > > > > > > > > > > I have an instance with a default > > > > > namespace > > > > > > > > > however > > > > > > > > > > I cannot get any results from a > > > > > > selectNodes() > > > > > > > > > call. > > > > > > > > > > However if I register a > > > > > > > namespaceNamespace("A", > > > > > > > > > > "http://A/ ") with the Default > > > namespace > > > > > the > > > > > > > > query > > > > > > > > > > works e.g. > > > > > > > > > > JXpathContext.selectNodes(//A:Element) > > > > > > > > > > but if I did not register the > > > namespace > > > > > and > > > > > > > try > > > > > > > > to > > > > > > > > > > run the query as > > > > > > > > > > JXpathContext.selectNodes(//Element) I > > > > get > > > > > > no > > > > > > > > > > Results. > > > > > > > > > > > > > > > > > > > > HELP!!!!!!!!!!!!!!!! > > > > > > > > > > > > > > > > > > Whoa... calm down! :) I can't follow > > > all > > > > > > that. > > > > > > > > > > > > > > > > Give > > > > > > > > > me a breakdown of exactly how to evoke > > > the > > > > > > > > > (mis-)behavior you're seeing. Also, > > > note > > > > > that > > > > > > > in > > > > > > > > a > > > > > > > > > few minutes' time I'll be committing > > > what > > > > is > > > > > > > > > intended > > > > > > > > > to fix your problems with > > > > > > > createPathAndSetValue() > > > > > > > > > for > > > > > > > > > externally-registered namespaced > > > > attributes. > > > > > > > > > > > > > > > > > > -Matt > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: Mcduffey, Joe > > > > > [mailto:jdmcduf@nsa.gov] > > > > > > > > > > Sent: Wednesday, July 25, 2007 11:37 > > > AM > > > > > > > > > > To: Jakarta Commons Users List > > > > > > > > > > Subject: RE: Problem with JXPath 1.3 - > > > > > > > > Registering > > > > > > > > > > Namespaces > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Having a problem after registering a > > > > > > namespace > > > > > > > > as > > > > > > > > > in > > > > > > > > > > your example then executing the > > > > following: > > > > > > > > > > - > > > > > > > createPathAndSetValue( element/@A:attribute); > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: Matt Benson > > > > > > > [mailto: gudnabrsam@yahoo.com] > > > > > > > > > > Sent: Wednesday, July 25, 2007 11:15 > > > AM > > > > > > > > > > To: Jakarta Commons Users List > > > > > > > > > > Subject: RE: Problem with JXPath 1.3 - > > > > > > > > Registering > > > > > > > > > > Namespaces > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Joe: Did you test Sergey's patch or > > > the > > > > > > > latest > > > > > > > > > 1.3 > > > > > > > > > > trunk as of Tuesday afternoon/evening? > > > > > > > As > > > > > > of > > > > > > > > that > > > > > > > > > > time the svn trunk version worked for > > > me > > > > > > > against > > > > > > > > > > your > > > > > > > > > > submitted example. If not, please > > > > attach > > > > > > more > > > > > > > > > code > > > > > > > > > > which shows how to break the current > > > ns > > > > > > > handling > > > > > > > > > and > > > > > > > > > > reopen JXPATH-97 in JIRA. I'm trying > > > to > > > > > get > > > > > > > all > > > > > > > > > > bugs > > > > > > > > > > resolved for a 1.3 release and this > > > > > > definitely > > > > > > > > > > sounds > > > > > > > > > > like something we want to have working > > > > > > > properly. > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > Matt > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- "Mcduffey, Joe" > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > This still doesn't work properly see > > > > > > > previous > > > > > > > > > > > message from 7/20/07... > > > > > > > > > > > > > > > > > > > > > > ------------------ FROM PREVIOUS > > > > > MESSAGE > > > > > > > > > > > ------------------ > > > > > > > > > > > After registering Namespaces in > > > JXPath > > > > > 1.3 > > > > > > > and > > > > > > > > > > then > > > > > > > > > > > calling > > > > > > > > > > > > > > > > > > > > > JXPathContext.createPathAndSetValue(key,value) > > > > > > > > > > > I get an exception > > > > > > > > > > > Unknown namespace prefix > > > > > > > > > > > > > > > > > > > > > > However it had been successfully > > > > > > registered > > > > > > > as > > > > > > > > I > > > > > > > > > > > checked with the method call > > > > > > > > > > > JXPathContext.getPrefix(); > > > > > > > > > > > > > > > > > > > > > > Any help in this area???? > > > > > > > > > > > ------------------ FROM PREVIOUS > > > > > MESSAGE > > > > > > > > > > > ------------------ > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > > From: Sergey Vladimirov > > > > > > > > > > [mailto: vlsergey@gmail.com] > > > > > > > > > > > Sent: Saturday, July 21, 2007 10:12 > > > AM > > > > > > > > > > > To: Jakarta Commons Users List > > > > > > > > > > > Subject: Re: Problem with JXPath 1.3 > > > - > > > > > > > > > Registering > > > > > > > > > > > Namespaces > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Joe, > > > > > > > > > > > > > > > > > > > > > > Please, look at the following issue > > > > and > > > > > > fix > > > > > > > :) > > > > > > > > > > > > > > > > > > > > > http://issues.apache.org/jira/browse/JXPATH-97 > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > Sergey > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2007/7/16, Mcduffey, Joe > > > > > > : > > > > > > > > > > > > > > > > > > > > > > > > Can someone tell me how to > > > register > > > > > > > > namespaces > > > > > > > > > > so > > > > > > > > > > > that attributes with > > > > > > > > > > > > namespaces does not cause the > > > > > exception > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.common.ri.model.dom.DOMNodePointer.createAttribute > > > > > > > > > > > > unknown namespace prefix: xsi > > > > > > > > > > > > > > > > > > > > > > > > For example the following > > > > > > > > > > > > > > > > > > > > > > > > MY > > > VALUE > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Would result in the following > > > > > exception: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.common.ri.model.dom.DOMNodePointer.createAttribute > > > > > > > > > > > > unknown namespace prefix: A > > > > > > > > > > > > > > > > > > > > > > > > FYI: In this example there was a > > > > > > namespace > > > > > > > > > > > decaration in the file and I > > > > > > > > > > > > also manually called the > > > > > > > > > > > > registerNamespace(A,"/http..."); > > > > > > > > > > > > registerNamespace(B,"/http..."); > > > > > > > > > > > > > > > > > > > > > > > > There was no problem encountered > > > for > > > > > > > > elements. > > > > > > > > > > > Only attributes. Can > > > > > > > > > > > > someone help? Thanks. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > Sergey Vladimirov > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > > > > To unsubscribe, e-mail: > > > > > > > > > > > > > > > > > commons-user-unsubscribe@jakarta.apache.org > > > > > > > > > > > For additional commands, e-mail: > > > > > > > > > > > commons-user-help@jakarta.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > > > > > > > Shape Yahoo! in your own image. Join > > > > our > > > > > > > > Network > > > > > > > > > > Research Panel today! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > > > To unsubscribe, e-mail: > > > > > > > > > > > > > > > commons-user-unsubscribe@jakarta.apache.org > > > > > > > > > > For additional commands, e-mail: > > > > > > > > > > commons-user-help@jakarta.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > > > To unsubscribe, e-mail: > > > > > > > > > > > > > > > commons-user-unsubscribe@jakarta.apache.org > > > > > > > > > > For additional commands, e-mail: > > > > > > > > > > commons-user-help@jakarta.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > > > To unsubscribe, e-mail: > > > > > > > > > > user-unsubscribe@commons.apache.org > > > > > > > > > > For additional commands, e-mail: > > > > > > > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > > > > > > Park yourself in front of a world of > > > > choices > > > > > > in > > > > > > > > > alternative vehicles. Visit the Yahoo! > > > > Auto > > > > > > > Green > > > > > > > > > Center. > > > > > > > > > http://autos.yahoo.com/green_center/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > > To unsubscribe, e-mail: > > > > > > > > > user-unsubscribe@commons.apache.org > > > > > > > > > For additional commands, e-mail: > > > > > > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > > To unsubscribe, e-mail: > > > > > > > > > user-unsubscribe@commons.apache.org > > > > > > > > > For additional commands, e-mail: > > > > > > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > > > > > Choose the right car based on your needs. > > > > > Check > > > > > > > out > > > > > > > > Yahoo! Autos new Car Finder tool. > > > > > > > > http://autos.yahoo.com/carfinder/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > To unsubscribe, e-mail: > > > > > > > > user-unsubscribe@commons.apache.org > > > > > > > > For additional commands, e-mail: > > > > > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > To unsubscribe, e-mail: > > > > > > > > user-unsubscribe@commons.apache.org > > > > > > > > For additional commands, e-mail: > > > > > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > > > > Get the Yahoo! toolbar and be alerted to new > > > > > email > > > > > > > wherever you're surfing. > > > > > > > > > > > > > > > > > > > > > > > > > > > http://new.toolbar.yahoo.com/toolbar/features/mail/index.php > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > To unsubscribe, e-mail: > > > > > > > user-unsubscribe@commons.apache.org > > > > > > > For additional commands, e-mail: > > > > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > To unsubscribe, e-mail: > > > > > > > user-unsubscribe@commons.apache.org > > > > > > > For additional commands, e-mail: > > > > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > > > > > Looking for a deal? Find great prices on > > > flights > > > > > and > > > > > > hotels with Yahoo! FareChase. > > > > > > http://farechase.yahoo.com/ > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: > > > > > > user-unsubscribe@commons.apache.org > > > > > > For additional commands, e-mail: > > > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: > > > > > > user-unsubscribe@commons.apache.org > > > > > > For additional commands, e-mail: > > > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > > > > Be a better Globetrotter. Get better travel > > > > answers > > > > > from someone who knows. Yahoo! Answers - Check > > > it > > > > > out. > > > > > > > > > > > > > > http://answers.yahoo.com/dir/?link=list&sid=396545469 > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: > > > > > user-unsubscribe@commons.apache.org > > > > > For additional commands, e-mail: > > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: > > > > > user-unsubscribe@commons.apache.org > > > > > For additional commands, e-mail: > > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > > > Yahoo! oneSearch: Finally, mobile search > > > > that gives answers, not web links. > > > > > > > > > http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > > > > user-unsubscribe@commons.apache.org > > > > For additional commands, e-mail: > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > > > > user-unsubscribe@commons.apache.org > > > > For additional commands, e-mail: > > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > Park yourself in front of a world of choices in > > > alternative vehicles. Visit the Yahoo! Auto Green > > > Center. > > > http://autos.yahoo.com/green_center/ > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > > user-unsubscribe@commons.apache.org > > > For additional commands, e-mail: > > > user-help@commons.apache.org > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > > user-unsubscribe@commons.apache.org > > > For additional commands, e-mail: > > > user-help@commons.apache.org > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > Be a better Heartthrob. Get better relationship answers from someone who > > knows. Yahoo! Answers - Check it out. > > http://answers.yahoo.com/dir/?link=list&sid=396545433 > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > > For additional commands, e-mail: user-help@commons.apache.org > > > > > > > -- > Sergey Vladimirov -- Sergey Vladimirov ------=_Part_7830_31896530.1186605081033--