Re: [xml] namespace problem



On Mon, 2010-01-04 at 17:35 +0100, Andreas Wagner wrote:

<param parName="parameter1" type="DOUBLE" val="0.0"/>    <----- these
attributes ... but i cant ...strange ... the line above works

do u have an idea what can be wrong?

Note that unprefixed attributes are not in any namespace.

The problem is that there are namespace (as you can see).
But they are never declared and i can not parse the file correctly.So
you need to fix the file. A possible way to do that would be to make a
DTD with some FIXED attribute values declared, to add the
"xmlns:scenario=..." and so forth.  Another might be to use
entities in a wrapper,
<!DOCTYPE wrapper [
  <!ENTITY include SYSTEM "myfile.xml">
]>
<wrapper>&example;</wrapper>

With libxml, you may also be able to do this with xinclude.

Liam
        


-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]