Younes Boukdir wrote:

hi,

I need some help please. I m trying to execute this xupdate query

_________
<xupdate:modifications version="1.0"
xmlns:rdf="http://www.w3.org/1999/02/22-rf-syntax-ns#";
xmlns:xupdate="http://www.xmldb.org/xupdate"; >
<xupdate:append select="//root">



Why not "/root"?


<xupdate:element name="component">



Why do you use xupdate:element here?


<data rdf:about="uuuu">
<first>x</first>
<last>y</last>
</data>
</xupdate:element>



Try this instead of what is above (no guarantee that it will help but you can try anyway):


<component>
<data rdf:about="uuuu" xmlns:rdf="http://www.w3.org/1999/02/22-rf-syntax-ns#";>
<first>x</first>
<last>y</last>
</data>
</component>



(and remove rdf ns declaration in the root element) If above won't help, you need to get yourself sources of lexus and try debug those:


java.lang.NullPointerException
at
org.xmldb.xupdate.lexus.commands.InsertAttribute.execute(InsertAttrib
ute.java:96)




Vadim




Reply via email to