jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sridhar Raman" <sridhar.ra...@gmail.com>
Subject Problem with importing using Document View - why is xmlns needed again? and how do I import non well-formed xml?
Date Thu, 09 Nov 2006 17:32:49 GMT
I made my Document View, and did the importing, and assigned the references
programmatically. That works fine.

But I have another small problem - concerning namespaces.

This is the structure of the nodes:

There can be many DIM nodes, and all should be under the main node of
/CON/ENTS. So I create an XML document in Document View format, that will be

The first time, I created a file in this style:
<ents ...>

And I did the importXML("/con", ...) using this method call. It worked fine,
with just a small hitch. I had to define all the namespaces again as part of
the <ent> element. Else, the import kept throwing unrecognised prefix
exceptions. I did that and it worked.

Now I want to do a second set of import to this same workspace. And I
created the Document View in the same style as earlier. The import gives me
something like this.

..[DATA from first import]
..[DATA from second import]

What should be done to get the new list of <dim> nodes to go under the
earlier <ent>?

I tried this kind of Document View
and importing using the call importXML("/con/ent/", ..)

This gives 2 problems:
1) it's not well formed
2) namespaces not found

What do I do?? Is there any solution to this?
I would be glad if you could help me with this.

Thanks in advance,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message