You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by frank fischer <fr...@yahoo.com> on 2007/12/16 09:25:28 UTC

Namespace Problems during filling elements from Java

Hi at all.

I have a problem with the handling of the namespaces.

There is a case, in which I got a string and with the
content of this string, I have to create the objects
for the xml.


How the string could be filled is of course defined in
the schema file. But to split the string, so that it
possible the create the objects seperately would be a
big overhead.

So I made a schema, with which I can parse the string
into the object, that is the parent of the element,
which I want to fill with data.


So, I get the object and when I am reading the object,
I always get the <xml-fragment> at the root position
of the object.

This leads to the fact, that the xml is stored and at
the position of the object, there is the namespace,
where it shouldnt be. 

I only need the content of the element without the
namespace, but all my tries did not work.

The crazyness about that is, that generally the
namespace could be let off over the
XmlOptions.setAggressiveNamespaces() in combination
with XmlOptions.UseDefaultNamespaces(). But in this
case, this does not matter. 

Do you have any ideas?

Lg,

Frank 



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org